Splunk Dev

Getting "invalid syntax" error using AppInspect while Python version was detected.

tpavlik_splunk
Splunk Employee
Splunk Employee

Reposting a question from our support channel in case others run into this:

root@splunk:~# splunk-appinspect --help

Traceback (most recent call last):

 File "/usr/local/bin/splunk-appinspect", line 5, in <module>

    from splunk_appinspect import main

  File "/usr/local/lib/python3.5/dist-packages/splunk_appinspect/__init__.py", line 2, in <module>

    from . import environment_validator

  File "/usr/local/lib/python3.5/dist-packages/splunk_appinspect/environment_validator.py", line 15

    f"Python version {version_detected} was detected."

                                                     ^

SyntaxError: invalid syntax

 

Here's my current Python version:

root@splunk:~# python --version
Python 3.5.3

Labels (2)
Tags (1)
1 Solution

tpavlik_splunk
Splunk Employee
Splunk Employee

Answer: AppInspect requires Python  Version 3.7 exactly . Versions 3.5,3.6, and 3.8 are not supported

View solution in original post

0 Karma

tpavlik_splunk
Splunk Employee
Splunk Employee

Answer: AppInspect requires Python  Version 3.7 exactly . Versions 3.5,3.6, and 3.8 are not supported

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...