From: Chris C. <scc...@gm...> - 2009-07-23 17:01:37
|
Derek, with some python modules, py2exe doesnt bring along enough of the backend and you'll run into missing file issues quite often. (this is especially true of the ETS tool suite). I prefer a program called bbfreeze: http://pypi.python.org/pypi/bbfreeze/0.95.4 your application will be larger, because it brings along EVERYTHING that is imported whether it is used or not. (this can be configured in the setup scripts however). But because of this, you dont get missing file issues. Try it, (i've never used it on vpython) and let me know if you need any help. BTW, you spelled "foreign" wrong in your directory path ;) Chris On Thu, Jul 23, 2009 at 4:02 AM, Derek Lura<dl...@ma...> wrote: > 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? > > ------------------------------------------------------------------------------ > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |