Question

I'm attempting to use the python version of the FBX SDK and keep running into import errors. My first attempts were running under Python 3.2.3 and importing fbx gives me the

>>> import fbx
Traceback (most recent call last):
  File "<stdin>", line 1, in <module> 
ImportError: DLL load failed: The specified module could not be found

I checked under dependency walker and found that it was looking for Python31.DLL and couldn't find it (along with MSVCR90.DLL, GPSVC.DLL, and IESHIMS.DLL)

My first thought was to try it under Python 3.1, because it needed Python31.DLL, so I got that and ran it and got this error when trying to import fbx:

>>> import fbx
Traceback (most recent call last):
  File "<stdin>", line 1, in <module> 
ImportError: DLL load failed: %1 is not a valid Win32 application

Now I've gone and double checked and Dependency Walker still says I'm missing all of those DLLs and I went and looked and I have all of them in C:\Windows\system32 or C:\Windows\winsxs.

Does anyone know why Dependancy Walker would say that these DLLs can't be found? Are there any other tools for figuring out, or fixing the dll load failure I am having?

Was it helpful?

Solution

I found the problem.

I did need to use Python 3.1 but I mistakenly installed the 64 bit version which caused the second error you see about not being a valid Win32 application. I just reinstalled Python 3.1 32-bit and it is working fine now.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top