From: Ethan Glasser-C. <gl...@cs...> - 2010-01-10 19:23:10
|
Daniele Varrazzo wrote: > It is a fairly standard 32 bit Ubuntu Karmic, using the ode library > packaged with the OS (packages libode-dev (2:0.11-4), libode1 > (2:0.11-4)). Python version 2.6 (the system version). Pyrex version > 0.9.8.5. > > I built the module regularly (python setup.py build/install), against > the correct library (checked with ldd). Tutorials 1 and 2 run > perfectly, in 3 the pieces fall without meeting the plane. I also made > the explosion happen earlier to make the falling pieces hit each > other, and there is no contact between them either. A print in the > callback function confirms it gets never called. > > Tell me if you need other details. Thank you very much for your efforts. I'm kind of grasping at straws here, since I can't reproduce it. I've tried on my 64-bit Karmic machine, running the same packages you are, and now I just tried on my 32-bit Debian machine (which is sorta running whatever). The only thing that strikes me as likely to be different is that instead of doing "python setup.py install", I ran: PYTHONPATH=build/lib.linux-i686-2.5/ python examples/tutorial3.py (Or whatever -- substitute the correct build directory on your machine.) I guess one thing I'd suggest is doing: import ode print ode.__file__ to make sure you're running the just-built version. I suspect you are -- if you weren't, I think you'd probably be seeing more severe problems. If that doesn't help, I'd start putting print statements in Space.collide (defined in src/space.pyx) to make sure that was getting called successfully, and if that didn't help I'd do the same thing in the ODE library (which I don't know that well -- sorry). Ethan |