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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...