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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...