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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...