- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Upgrade Readiness App
AndyC2
Observer
12-19-2023
12:28 AM
Hi, this app is reporting one of my private apps is not compatible with Python 3.
Issue:
File path designates Python 2 library.
App:TA-LoRaWAN_decoders
File Path:.../bin/br_uncompress.py
Issue No.
Issues
1.
Error while checking the script:
Can't parse /opt/splunk/etc/apps/TA-LoRaWAN_decoders/bin/br_uncompress.py: ParseError: bad input: type=1, value='print', context=(' ', (24, 8))
File Path:.../bin/br_uncompress.py
Issue No.
Issues
1.
Error while checking the script:
Can't parse /opt/splunk/etc/apps/TA-LoRaWAN_decoders/bin/br_uncompress.py: ParseError: bad input: type=1, value='print', context=(' ', (24, 8))
Any suggestions as to what the issue is?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
diogofgm

SplunkTrust
04-11-2024
01:56 AM
Since September 2021, Splunk does not include python 2. so you need to update your code if its not compatible with python 3.
------------
Hope I was able to help you. If so, some karma would be appreciated.
Hope I was able to help you. If so, some karma would be appreciated.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
AndyC2
Observer
04-11-2024
04:11 AM
Hi, yep I understand that but I don't understand what the error is telling me:
Error while checking the script:
Can't parse /opt/splunk/etc/apps/TA-LoRaWAN_decoders/bin/br_uncompress.py: ParseError: bad input: type=1, value='print', context=(' ', (25, 8))
I think it's referring to line 25 which is:
def print(self, message, end="\n"):
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
diogofgm

SplunkTrust
04-19-2024
01:54 AM
Is this TA hosted somewhere so we could have a better picture of what the complete python code looks like?
------------
Hope I was able to help you. If so, some karma would be appreciated.
Hope I was able to help you. If so, some karma would be appreciated.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
AndyC2
Observer
04-19-2024
02:18 AM
Hi, yes the code is here
Codec-Report-Batch-Python/br_uncompress.py at main · Watteco/Codec-Report-Batch-Python · GitHub
Thanks
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
y2000maxima
Engager
04-10-2024
12:20 PM
Hi. Were you able to overcome this issue?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
AndyC2
Observer
04-11-2024
01:26 AM
Hi, no, I still don't know what the message means!
