How To Import *.pyc File From Different Version Of Python?
Solution 1:
"DLL load failed" can't directly refer to the .pyc
, since that's a bytecode file, not a DLL; a DLL would be .pyd
on Windows. So presumably that _irit.pyc
bytecode file tries to import some .pyd
and that .pyd
is not available in a 2.6-compatible version in the appropriate directory. Unfortunately it also appears that the source file _irit.py
isn't around either, so the error messages end up less informative that they could be. I'd try to run python -v
, which gives verbose messages on all module loading and unloading actions -- maybe that will let you infer the name of the missing .pyd
when you compare its behavior in 2.5 and 2.6.
Solution 2:
Pyc files are not guaranteed to be compatible across python versions, so even if you fix the missing dll, you could still run in to problems.
Post a Comment for "How To Import *.pyc File From Different Version Of Python?"