0

I am running a python script that uses the requests and de pymysql module, I had to install it manually from a tar.gz file in the server (because the server doesn't have access to the internet, and those packages are not available).

I installed it, and it works, but when I try to execute that script from Jenkins:

Traceback (most recent call last):
  File "/var/tmp/xxx.py", line 8, in <module>
    import pymysql
ImportError: No module named pymysql
Build step 'Execute shell' marked build as failure
aldegalan
  • 33
  • 5
  • are you sure the package is available for the jenkins user too? May be the build is running in docker? Or using some kind of virtualization like pyhotn `virtualenv`? – redseven Jul 14 '22 at 12:41

0 Answers0