我使用sudo easy_install python-jenkins在mac上安装了jenkins软件包。安装进行得很好,没有错误,但是当我打开python并键入import jenkins时,出现以下错误。在python中导入jenkins失败mac上
Traceback (most recent call last):
File "", line 1, in
File "build/bdist.macosx-10.7-intel/egg/jenkins.py", line 9, in
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 431, in LoadLibrary
return self._dlltype(name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 353, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Library/Python/2.7/site-packages/lookup3.so, 6): image not found
使用谷歌搜索这没有产生任何有用的结果。
回溯编辑
Traceback (most recent call last):
File "", line 1, in
File "jenkins.py", line 9, in
lookup3 = cdll.LoadLibrary(os.path.join(get_python_lib(), "lookup3.dynlib"))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 431, in LoadLibrary
return self._dlltype(name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 353, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Library/Python/2.7/site-packages/lookup3.dynlib, 6): image not found