2011/1/25 Bill Bedford <bi...@mousa.biz> > On Tue, 25 Jan 2011 21:36:56 +0100, Thomas Paviot wrote: > > 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. > > Mmm... I got the same error if I used the system python2.6 >
I would be amazed that the binaries work for both python2.6 and 2.7. > > > > > Be sure the libpython2.7.dylib is in your DYLD_LIBRARY_PATH and > > LD_LIBRARY_PATH before compiling. > > There are 3 libpython2.7 > > /Library/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib > > /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.a > > /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.dylib > > all are simlinks pointing to > /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 > > Putting any of these into the DYLD_LIBRARY_PATH fails with the same > error. > hmmm... weird. I'd like to know whether it comes from my binaries or your system. According to the trace, the error seems to come from the line: 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 The _TopoDS.so dynamic library is not linked to libJPEG.dylib. So I suspect a conflict somewhere with the libraries you installed. The default libTIFF.dylib is linked to /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib (on my machine). You have another libJPEG.dylib in your /usr/local/lib, and they may conflict. Googling "Symbol not found: __cg_jpeg_resync_to_restart" will give you hundreds of answers! A possible fix seems to force the system to look for libJPEG.dylib in the default dir first: set LIBRARY_PATH and DYLD_LIBRARY_PATH=/System/Library/Frameworks/ApplicationServices.framework/Versi ons/A/Frameworks/ImageIO.framework/Versions/A/Resources:/whatever (see http://osdir.com/ml/apple.fink.tracker/2005-05/msg00182.html). Just another question: since this problem may come from X or the Window Manager, did you try to only 'import OCC.TopoDS' from your python prompt and check the result? Is the trace the same? > > > -- > Bill Bedford > Thomas
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users