2011/1/25 Bill Bedford <bi...@mousa.biz> > Down loaded the precompiled pythonOCC-0.5 of OSX today and got error:- >
The precompiled binaries were generated from my MacBook Pro on top of the default python2.6. Importing those libraries with python 2.7 fails. You have to compile your own pythonOCC with your python version if it's not 2.6. > > >>> 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 > Be sure the libpython2.7.dylib is in your DYLD_LIBRARY_PATH and LD_LIBRARY_PATH before compiling. > > > I'm beginning to feel that pythonOCC doesn't like me or my > system........... > It sometimes does not like my or my machine either and has nothing to do with you! > > > > -- > Bill Bedford > Thomas
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users