简体   繁体   English

库未加载:libboost_python.dylib

[英]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.

相关问题 库未加载:@ rpath / libboost_thread.dylib - Library not loaded: @rpath/libboost_thread.dylib 库 (dylib) 未加载 - 找不到图像 - Python IDE - Library (dylib) not loaded - image not found - Python IDE Python:MySQLdb和“未加载库:libmysqlclient.16.dylib” - Python: MySQLdb and “Library not loaded: libmysqlclient.16.dylib” python import pymssql: Library not loaded:libsybdb.5.dylib - python import pymssql : Library not loaded:libsybdb.5.dylib Python mysqldb:未加载库:libmysqlclient.18.dylib - Python mysqldb: Library not loaded: libmysqlclient.18.dylib Python导入MySQLdb:库未加载:libmysqlclient.18.dylib - Python import MySQLdb: Library not loaded: libmysqlclient.18.dylib 未加载库:@ rpath / libpng16.16.dylib - Library not loaded: @rpath/libpng16.16.dylib 我的 mac 上的 python mysqldb 错误:未加载库:@rpath/libmysqlclient.21.dylib - python mysqldb err on my mac :Library not loaded: @rpath/libmysqlclient.21.dylib Python MacOS 上的导入错误:`import scipy.integrate` 引发`Library not loaded: ibgfortran.5.dylib` - Python import error on MacOS: `import scipy.integrate` raises `Library not loaded: ibgfortran.5.dylib` 如何解决 python 上的 openCV 问题 - 未加载库:@rpath/libglib-2.0.0.dylib - How could I solve the openCV issues on python - library not loaded : @rpath/libglib-2.0.0.dylib
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM