pythonocc-core icon indicating copy to clipboard operation
pythonocc-core copied to clipboard

When I try to run the sample, I got a problem.

Open WBB-Badtaste opened this issue 10 years ago • 4 comments

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?

WBB-Badtaste avatar Dec 21 '15 03:12 WBB-Badtaste

I have colsed the SIP. I think it's not the reason.

WBB-Badtaste avatar Dec 21 '15 12:12 WBB-Badtaste

If I wanna reinstall the OX, which version should I choice?

WBB-Badtaste avatar Dec 21 '15 15:12 WBB-Badtaste

@WBB-Badtaste where are your oce libs installed?

jf--- avatar Mar 29 '16 15:03 jf---

Oh, It's working well now. THX.

WBB-Badtaste avatar Apr 06 '16 03:04 WBB-Badtaste