From: Ethan Glasser-C. <gl...@cs...> - 2007-11-27 04:46:52
|
Forgot to send this to the list; sorry Samuel Mankins for the duplicate mail.. Samuel Mankins wrote: > Traceback (most recent call last): > File "pyodestuff.py", line 3, in <module> > import ode > File "build/bdist.macosx-10.3-fat/egg/ode.py", line 7, in <module> > File "build/bdist.macosx-10.3-fat/egg/ode.py", line 6, in __bootstrap__ > ImportError: > dlopen(/Users/.../.python-eggs/PyODE-1.2.0-py2.5-macosx-10.3-fat.egg-tmp/ode.so, > 2): Symbol not found: _dMassSetCappedCylinder > Referenced from: > /Users/.../.python-eggs/PyODE-1.2.0-py2.5-macosx-10.3-fat.egg-tmp/ode.so > Expected in: dynamic lookup That's pretty interesting. It looks to me like compatibility with the old dMassSetCappedCylinder function names is provided by ODE 0.8 using a #define in mass.h: #define dMassSetCappedCylinder dMassSetCapsule #define dMassSetCappedCylinderTotal dMassSetCapsuleTotal Pyrex should have compiled to C and used these definitions. I have to say I'm not familiar enough with Pyrex to understand what's going on. Attached is a patch which ought to move PyODE to the new "Capsule" names from the old CappedCylinder names -- this had been done with the Geom functions but I forgot to do the Mass functions. You could apply this and try to rebuild; I don't know if that would help or not. One other thought -- I see that you say you're running Mac OSX 10.4, but the filenames above say 10.3. Might there be a collision between two different versions of ODE? I really don't think this is what's going on either, but I thought I'd demonstrate my ignorance of OSX for your amusement. Ethan |