I am having trouble using py2exe with visual python 5. This problem appears even with the simple examples that are included with the visual-python package.
If I do a standard “setup.py py2exe” with the option "skip_archive":1 to avoid making library.zip, and then I try to run my newly created exe in the dist folder, it complains about being unable to find the file turbulence3.tga.
If I then copy the three tga files from site-packages\visual into my dist\visual folder, it all works fine.
Next, if I do a standard “setup.py py2exe”, which makes a big library.zip, and then I run the myProgram.exe, I get this:
Traceback (most recent call last):
File "Tashe-001.py", line 6, in <module>
File "AnimTools.pyc", line 1, in <module>
File "visual\init.pyc", line 66, in <module>
File "visual\ui.pyc", line 3, in <module>
File "visual\materials.pyc", line 151, in <module>
File "visual\materials.pyc", line 129, in loadTGA
IOError: [Errno 2] No such file or directory: 'C:\\DOCUME~1\\092710\\MYDOCU~1\\p
If I then use either winzip or python's zipfile to add those three tga files to the visual folder inside library.zip, I still get the same traceback.
Any ideas? How to get py2exe to find those three files and put them in library.zip? Or should I try to import less than * everything from visual in myProgram?—-I'm not using those tga files at all.