jenkins python 模块导入错误 [英] jenkins python module import error
本文介绍了jenkins python 模块导入错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经在 VM 中安装了 jenkins 模块,但仍然无法导入模块并使用.
I have installed jenkins module in the VM but still not able import the module and use.
Python 2.7.5(默认,2014 年 6 月 17 日,18:11:42)[GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] 在 linux2输入帮助"、版权"、信用"或许可"以了解更多信息.
Python 2.7.5 (default, Jun 17 2014, 18:11:42) [GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import jenkins
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/site-packages/jenkins.py", line 9, in <module>
lookup3 = cdll.LoadLibrary(os.path.join(get_python_lib(), "lookup3.so"))
File "/usr/lib64/python2.7/ctypes/__init__.py", line 438, in LoadLibrary
return self._dlltype(name)
File "/usr/lib64/python2.7/ctypes/__init__.py", line 360, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /usr/lib/python2.7/site-packages/lookup3.so: cannot open shared object file: No such file or directory
推荐答案
您是否通过此命令安装了 jenkins?
Have you installed jenkins by this command?
pip install jenkins
如果是,您应该尝试使用
if yes you should try to install it with
pip install python-jenkins
参考:错误
这篇关于jenkins python 模块导入错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文