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!

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...