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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...