All Apps and Add-ons

How to install a Python library 'PyJWT' , while installing a App/Add-on

sbel
Observer

In our App/Add-on  python code we need access to Python library which allows to encode and decode JSON Web Tokens (JWT).  Currently we packaged cffi and PyJWT under lib with necessary  cffi backend required for each OS.  I.e  for linux : _cffi_backend.cpython-37m-x86_64-linux-gnu.so and for Windows :  _cffi_backend.cp37-win_amd64.pyd.   

This worked until recently.  where we updated the Add-on Splunk-sdk-python to 2.0.2 and the Add-on started failing on Splunk Cloud environment.   Error: No module named '_cffi_backend'. 

What OS and version is running the splunk cloud? and Is there any way to invoke  python library install command 'pip install pyjwt' while add-on install ? 

Labels (2)
0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@sbel- It is not recommend to install the package on install of App/Add-on, for a lot of reasons, it always good idea to bundle it as part of the App/Add-on build.

Now the case of what OS version Splunk Cloud is running, you can ask this to Splunk Cloud Support.

 

I hope this helps!!! Kindly upvote if it does!!

0 Karma
Get Updates on the Splunk Community!

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

May 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...