[英]Library not loaded: libboost_python.dylib
when I import modules, error occurs : 当我导入模块时,发生错误:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhangshirui/pynaoqi-python2.7-2.1.4.13-mac64/naoqi.py", line 7, in <module>
import qi
File "/Users/zhangshirui/pynaoqi-python2.7-2.1.4.13-mac64/qi/__init__.py", line 72, in <module>
from _qi import Application as _Application
ImportError: dlopen(/Users/zhangshirui/pynaoqi-python2.7-2.1.4.13-mac64/_qi.so, 2): Library not loaded: libboost_python.dylib
Referenced from: /Users/zhangshirui/pynaoqi-python2.7-2.1.4.13-mac64/_qi.so
Reason: unsafe use of relative rpath libboost_python.dylib in /Users/zhangshirui/pynaoqi-python2.7-2.1.4.13-mac64/_qi.so with restricted binary
Same thing happened to me when I updated my OSX. 我更新OSX时也发生了同样的事情。 I always have system integrity protection disabled on my laptop and when I updated OSX, my preference got overridden and it got enabled again. 我总是在笔记本电脑上禁用系统完整性保护,并且在更新OSX时,我的首选项被覆盖,并且再次启用。
Looking at the permissions issue it seemed related to it. 查看权限问题,它似乎与此有关。 So I ran csrutil disable
in recovery mode. 所以我在恢复模式下运行了csrutil disable
。
Please refer to this to find out about disabling system integrity protection. 请参考此内容以了解有关禁用系统完整性保护的信息。
http://www.macworld.com/article/2986118/security/how-to-modify-system-integrity-protection-in-el-capitan.html http://www.macworld.com/article/2986118/security/how-to-modify-system-integrity-protection-in-el-capitan.html
That made it work. 这使它起作用。
Thanks, 谢谢,
Dinesh 丁什
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.