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!

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

❄️ Celebrate the season with our December lineup of Community Office Hours, Tech Talks, and Webinars! ...

Splunk and Fraud

Watch Now!Watch an insightful webinar where we delve into the innovative approaches to solving fraud using the ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...