Down loaded the precompiled pythonOCC-0.5 of OSX today and got error:-
>>> from OCC.Display.SimpleGui import *
>>> set_backend('x')
>>> display, start_display, add_menu, add_function_to_menu = init_display()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OCC/Display/SimpleGui.py",
line 173, in init_display
from XDisplay import XOCCWindow
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OCC/Display/XDisplay.py",
line 28, in <module>
import OCCViewer
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OCC/Display/OCCViewer.py",
line 2, in <module>
from OCC.TopoDS import *
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OCC/TopoDS.py",
line 28, in <module>
_TopoDS = swig_import_helper()
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OCC/TopoDS.py",
line 24, in swig_import_helper
_mod = imp.load_module('_TopoDS', fp, pathname, description)
ImportError:
dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OCC/_TopoDS.so,
2): Symbol not found: __cg_jpeg_resync_to_restart
Referenced from:
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
Expected in: /usr/local/lib/libJPEG.dylib
in
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
Decided to download the source an got this error when I tried to
compile it:-
c++ -F. --no_undefined -bundle -dynamic_lookup -arch x86_64 -m64 -L.
-lm -lstdc++ -lpython2.7
build/temp.macosx-10.5-fat3-2.7/Volumes/Persimmon/admin/Downloads/PyOCC/pythonocc-0.5/src/wrapper/SWIG/linux_darwin/Standard_wrap.o
-L/Library/OpenCASCADE/6.3.0/lib -L/usr/local/lib/GEOM-5.1.2.7
-L/usr/local/lib/SMESH-5.1.2.2 -lBinLPlugin -lBinPlugin -lBinXCAFPlugin
-lFWOSPlugin -lPTKernel -lStdLPlugin -lStdPlugin -lTKAdvTools -lTKBin
-lTKBinL -lTKBinTObj -lTKBinXCAF -lTKBO -lTKBool -lTKBRep -lTKCAF
-lTKCDF -lTKernel -lTKFeat -lTKFillet -lTKG2d -lTKG3d -lTKGeomAlgo
-lTKGeomBase -lTKHLR -lTKIGES -lTKLCAF -lTKMath -lTKMesh -lTKMeshVS
-lTKNIS -lTKOffset -lTKOpenGl -lTKPCAF -lTKPLCAF -lTKPrim -lTKPShape
-lTKService -lTKShapeSchema -lTKShHealing -lTKStdLSchema -lTKStdSchema
-lTKSTEP -lTKSTEP209 -lTKSTEPAttr -lTKSTEPBase -lTKSTL -lTKTObj
-lTKTopAlgo -lTKV2d -lTKV3d -lTKVRML -lTKXCAF -lTKXCAFSchema
-lTKXDEIGES -lTKXDESTEP -lTKXMesh -lTKXml -lTKXmlL -lTKXmlTObj
-lTKXmlXCAF -lTKXSBase -lXCAFPlugin -lXmlLPlugin -lXmlPlugin
-lXmlXCAFPlugin -o build/lib.macosx-10.5-fat3-2.7/OCC/_Standard.so
ld: library not found for -lpython2.7
collect2: ld returned 1 exit status
error: command 'c++' failed with exit status 1
I'm beginning to feel that pythonOCC doesn't like me or my
system...........
--
Bill Bedford
"Man is an animal suspended in webs of significance he himself has spun"
-- Clifford Geertz
_______________________________________________
Pythonocc-users mailing list
[email protected]
https://mail.gna.org/listinfo/pythonocc-users