From: Davidmh <dav...@gm...> - 2010-05-12 18:43:59
|
Where? In the setup for py2exe or in the original source code? Thanks for your help. On Wed, May 12, 2010 at 8:41 PM, Stef Mientki <ste...@gm...> wrote: > > On 12-05-2010 18:04, Davidmh wrote: > > Hello. > > > > I have compiled successfully several programs to Windows binaries usin > > py2exe, but when I try to execute a working program depending on > > VPython, I get the following error: > > > > Traceback (most recent call last): > > File "mirage.py", line 2, 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:\\pyex\\dist\\library.zip\\visual/turbulence3.tga' > > > > I use Python 2.5, and as I have seen, there have been more people with > > the same problem. The only solution reported I have found is simply > > deleting the definition on the module source code. Although inelegant, > > it could work, as long I am not using any materials in my program; but > > I don't like editing that kind of source. > > > > I think the option "excludes" could be used, but after several tries I > > haven't been successful. > > > > Any ideas? > > > > > I always include all the tga files explicitly: > if Include_VPython : > Data_Files.append ( ( r'visual', glob.glob ( > r'P:\Python\Lib\site-packages\visual\*.tga' ))) > chers, > Stef > > Thank you; > > > > David Menéndez. > > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > > Visualpython-users mailing list > > Vis...@li... > > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |