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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...