Tubez
09-08-2006 20:15:33
Hey everyone!
I finally managed to create something that i found worth showing to a few friends, so i set out to make a stand-alone distribution that I could mail off and/or post on a website. After a bit of monkeying around with DLLs and things like that I managed to get py2exe to run through the whole process without complaining.
Funnily enough it worked at step 5 of http://www.ogre3d.org/wiki/index.php/PyOgreExecutable, and i didnt need 6 and 7 to have it run locally. (EDIT: I got most of the DLLs of step 7 in the "monkeying around" bit above. The .cfg files were already copied as I consider them application assets, not a part of pyogre. I do not seem to have any .pkg files in the specified directories though.)
It also works when run out of a different directory than the one it was built in (by just e.g. moving /dist to the desktop and running there.)
The real fun came when I copied the /dist directory and tried to run it on a machine without python installed:
Note that it does not say what DLL was not loaded. Pokign around in pyogre\ogre.py revealed nothing interesting at the specified lines, and certainly no __load statement. Running sysinternals' "filemon" revealed tons of disk activity, but nothing that I could easily identify as wrong. Python looks for files all over the place, and it's common to see "NOT FOUND" results in there anyway.
So... does anyoen ahve any bright ideas?
I finally managed to create something that i found worth showing to a few friends, so i set out to make a stand-alone distribution that I could mail off and/or post on a website. After a bit of monkeying around with DLLs and things like that I managed to get py2exe to run through the whole process without complaining.
Funnily enough it worked at step 5 of http://www.ogre3d.org/wiki/index.php/PyOgreExecutable, and i didnt need 6 and 7 to have it run locally. (EDIT: I got most of the DLLs of step 7 in the "monkeying around" bit above. The .cfg files were already copied as I consider them application assets, not a part of pyogre. I do not seem to have any .pkg files in the specified directories though.)
It also works when run out of a different directory than the one it was built in (by just e.g. moving /dist to the desktop and running there.)
The real fun came when I copied the /dist directory and tried to run it on a machine without python installed:
Traceback (most recent call last):
File "pathman.py", line 2, in ?
File "pyogre\ogre.pyc", line 4, in ?
File "pyogre\_ogre.pyc", line 9, in ?
File "pyogre\_ogre.pyc", line 7, in __load
ImportError: DLL load failed: This application has failed to start because the a
pplication configuration is incorrect. Reinstalling the application may fix this
problem.
Note that it does not say what DLL was not loaded. Pokign around in pyogre\ogre.py revealed nothing interesting at the specified lines, and certainly no __load statement. Running sysinternals' "filemon" revealed tons of disk activity, but nothing that I could easily identify as wrong. Python looks for files all over the place, and it's common to see "NOT FOUND" results in there anyway.
So... does anyoen ahve any bright ideas?