【发布时间】:2018-12-20 18:10:40
【问题描述】:
我已经在虚拟机中安装了jenkins模块,但仍然无法导入模块并使用。
Python 2.7.5(默认,2014 年 6 月 17 日,18:11:42) [GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] 在 linux2 上 输入“help”、“copyright”、“credits”或“license”了解更多信息。
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 的过程中是否收到任何错误消息。
标签: python python-2.7 python-module