[solved] PhysX problem @ _PhysX_

Gurrier

23-04-2010 10:19:18

Hello,

I just had to reinstall my windows and before it my project worked fine.

Python version: 2.6
Python-ogre version: 1.7RC1
PhysX Version: PhysX_2.8.3.21

I use PhysX for the physics but now the compiler gives me this error:

import ogre.physics.PhysX as physx
File "C:\Python26\lib\site-packages\ogre\physics\PhysX\__init__.py", line 4, in <module>
from _physx_ import *
ImportError: No module named _physx_


So I checked to see if _physx_ was there. It wasn't... As far as I know It was there the last time I installed python-ogre. The 1.7RC1.

I then downloaded Python-Ogre-1.6.0RC1. Went to C:\PythonOgre\packages_2.5\ogre\physics\PhysX and copied the files there to C:\Python26\Lib\site-packages\ogre\physics\PhysX.

Runned my program again to get this error:

import ogre.physics.PhysX as physx
File "C:\Python26\lib\site-packages\ogre\physics\PhysX\__init__.py", line 4, in <module>
from _physx_ import *
ImportError: DLL load failed: The specified module could not be found.


I also tries to copy all the physX sdk DLL to this folder but still had teh same error.

Did I forget something here?



As far as I know I didn't

andy

24-04-2010 10:18:00

Physx is not part of the latest binary release for Windows -- I'm focusing the physics support on Bullet as it's open source and cross platform...

However you can certainly build it from source (should work fine as there haven't been any Physx updates) and if you really need a copy then PM me

Andy

Gurrier

24-04-2010 15:09:30

ok, tkx Andy. I'll build it first and if it doesn't work I'll send you a PM.

Gurrier

28-04-2010 14:30:18

I looked the _physx_ file up with dependency walker and found I was missing dll that I didn't expect to be needed.
The dll that are needed are

boost_python-vc90-mt-1_41.dll
ieframe.dll
IEShims.dll
NxCharacter.dll
NxCooking.dll
PhysXLoader.dll

I have no idea why ieframes and EIShims are needed.

You can find the NxCharacter.dll, NxCooking.dll, PhysXLoader.dll in the 1.7 not the 1.7RC1
And ieframe.dll ==> http://www.dll-files.com/ieframe.zip?0VJeQEYMgT
IEshims.dll ==> program files/Internet explorer (this comes with internet explorer 8)