Jenkins Python Module Import Error
I have installed jenkins module in the VM but still not able import the module and use. Python 2.7.5 (default, Jun 17 2014, 18:11:42) [GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on lin
Solution 1:
Have you installed jenkins by this command?
pip install jenkins
if yes you should try to install it with
pip install python-jenkins
Ref: Bug
Solution 2:
This is already answered by Daniel Salinas (imsplitbit)
on lunchpad
at
bug in jenkins lib
Close this bug, it appears pip was installing jenkins 1.0.2 not python-jenkins 0.2 which is actually used. These two modules use the same module namespace so it may be valuable to change that some how or even just add python-jenkins to the pip-requires so that this isn't an issue to begin with.
Solution 3:
I just met it. That's how it was solved
$ pip uninstall jenkins
Uninstalling jenkins-1.0.2:
/usr/local/lib64/python3.6/site-packages/__pycache__/jenkins.cpython-36.pyc
/usr/local/lib64/python3.6/site-packages/jenkins-1.0.2-py3.6.egg-info
/usr/local/lib64/python3.6/site-packages/jenkins.py
/usr/local/lib64/python3.6/site-packages/lookup3.cpython-36m-x86_64-linux-gnu.so
Proceed (y/n)?
here is a file: lookup3.cpython-36m-x86_64-linux-gnu.so, soft connection to the corresponding position is OK
sudo ln -s /usr/local/lib64/python3.6/site-packages/lookup3.cpython-36m-x86_64-linux-gnu.so /usr/lib/python3.6/site-packages/lookup3.so
Post a Comment for "Jenkins Python Module Import Error"