Installation

Splunk is not launching post installation on MacOS , ModuleNotFoundError: No module named 'splunk' error

kumarviv
Explorer

I did the installation as suggested of the installation page (https://docs.splunk.com/Documentation/SplunkLight/7.3.5/Installation/InstallonMacOSX) but when I launch the GUI it is throwing this error :

File "/Applications/Splunk/lib/python3.7/site-packages/splunk/clilib/cli.py", line 24, in
import splunk.clilib.cli_common as comm
ModuleNotFoundError: No module named 'splunk'

Labels (1)
Tags (3)
0 Karma
1 Solution

PavelP
Motivator

Hello @kumarviv,

You get this error because splunklight 7.3.5 was build for python 2.7 only and AFAIK not compatible with python 3.7. There is not such path "$SPLUNK_HOME/lib/python3.7/" in splunklight.

Try following:

  1. stop splunk process if any is running
  2. remove/deinstall splunklight
  3. delete /Application/Splunk folder
  4. reboot
  5. install splunklight with default parameters, do not change anything (path etc.)

Let me know if it worked for you.

View solution in original post

0 Karma

PavelP
Motivator

Hello @kumarviv,

You get this error because splunklight 7.3.5 was build for python 2.7 only and AFAIK not compatible with python 3.7. There is not such path "$SPLUNK_HOME/lib/python3.7/" in splunklight.

Try following:

  1. stop splunk process if any is running
  2. remove/deinstall splunklight
  3. delete /Application/Splunk folder
  4. reboot
  5. install splunklight with default parameters, do not change anything (path etc.)

Let me know if it worked for you.

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 ...