From: Derek L. <dl...@ma...> - 2009-07-23 08:32:04
|
When I compile my code to a executable using py2exe the vtest.exe is created successfully but I get the following error when I run the compiled file: Traceback (most recent call last): File "vtest.py", 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:\\Documents and Settings\\D-man\\Desktop\\Research\\'09\\Forign Study\\Python\\CopyforComp\\dist\\vtest.exe\\visual/turbulence3.tga" I get the same error with several different vpython scripts, as an example: """ Start vtest.py """ from visual import * box(pos=(0,0,0), size=(1,1,1)) """ End vtest.py """ """ Start mysetup.py """ from distutils.core import setup import py2exe setup( console = ["stars.py"], ) """ End mysetup.py """ (from the command line) >python mysetup.py py2exe Has anyone encountered this before? Any idea on what I'm doing wrong? |