Splunk Dev

Splunk custom command ModuleNotFoundError ?!

irom77
Explorer


I am working on custom command with couple of external modules which I installed in my 'lib' directory

pip3 install -r requirements.txt --target=lib

After installing my custom command into Splunk (install from file) I keep getting ModuleNotFoundError even all modules live in app 'lib' directory i.e. 

ModuleNotFoundError: No module named 'importlib_metadata'

What I am doing wrong ? Had no issue before but I was only using 'requests' module so far, now trying a lot more, here is my requirements.txt

requests>=2.0.0resilient

resilient-lib

 

Labels (2)
0 Karma
Get Updates on the Splunk Community!

From Alert to Resolution: How Splunk Observability Helps SREs Navigate Critical ...

It's 3:17 AM, and your phone buzzes with an urgent alert. Wire transfer processing times have spiked, and ...

ATTENTION!! We’re MOVING (not really)

Hey, all! In an effort to keep this Slack workspace secure and also to make our new members' experience easy, ...

Splunk Admins: Build a Smarter Stack with These Must-See .conf25 Sessions

  Whether you're running a complex Splunk deployment or just getting your bearings as a new admin, .conf25 ...