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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...