Splunk Dev

Dependency Issues in Python - Using cmd python

phauck
New Member

When running python with Splunk Ent 7.1 I am having trouble finding the issue with dependencies when importing requests, and requests cache.

Python:

!/usr/bin/env python

import requests
import requests_cache

Error:

/bin/requests_cache/backends/init.py", line 54, in create_backend
_backend_dependencies[backend_name])
ImportError: You must install the python package: sqlite3

I have included the packages certfil, chardet, idna, requests, requests_cache and urllib3 in the TA bin directory..

Any suggestions?

Tags (1)
0 Karma

phauck
New Member

Yes I have - still did not work. sqlte3 is a backend module included with requests_cache. Both is not working.

For the moment I have changed over to REDIS cache and everything is working

0 Karma

xpac
SplunkTrust
SplunkTrust

Did you try including the sqlite3 package too?

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

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