wubinbindeMacBook-Air:cmake-build wubinbin$ sudo python /Users/wubinbin/Downloads/pythonocc-core/examples/core_display_export_to_image.py
Traceback (most recent call last):
File "/Users/wubinbin/Downloads/pythonocc-core/examples/core_display_export_to_image.py", line 21, in
from OCC.BRepPrimAPI import BRepPrimAPI_MakeBox
File "/Library/Python/2.7/site-packages/OCC/BRepPrimAPI.py", line 32, in
_BRepPrimAPI = swig_import_helper()
File "/Library/Python/2.7/site-packages/OCC/BRepPrimAPI.py", line 28, in swig_import_helper
_mod = imp.load_module('_BRepPrimAPI', fp, pathname, description)
ImportError: dlopen(/Library/Python/2.7/site-packages/OCC/_BRepPrimAPI.so, 2): Library not loaded: libTKAdvTools.9.dylib
Referenced from: /Library/Python/2.7/site-packages/OCC/_BRepPrimAPI.so
Reason: unsafe use of relative rpath libTKAdvTools.9.dylib in /Library/Python/2.7/site-packages/OCC/_BRepPrimAPI.so with restricted binary
How can I fix it?
I have colsed the SIP. I think it's not the reason.
If I wanna reinstall the OX, which version should I choice?
@WBB-Badtaste where are your oce libs installed?
Oh, It's working well now. THX.