[visionegg] Re: py2exe and VisionEgg
- From: "Gabriel Nevarez" <NevarezG@xxxxxxxxxxxxx>
- To: <visionegg@xxxxxxxxxxxxx>
- Date: Tue, 18 Jan 2005 14:43:37 +0000
Hi, Andrew,
Fixed the problem below, as had forgotten to add the file pyz_support.py.
I modified the build-win-exe-demos.py script to work with just one simple demo
file (such as texture.py) instead of all the VisionEgg demos, for testing
purposes. After adding pyz_support.py, now I am getting an executable in the
sumo directory, albeit with less-than-stellar results (i.e, executing the file
does nothing). I have made sure to copy PyWinTypes23.dll into the sumo
directory.
Running the build-win-exe-demos.py script now gives the following results:
C:\Python23\VISION~1>build-win-exe-demos.py
C:\Python23\python.exe C:\python23\lib\site-packages\Installer\Makespec.py --noc
onsole --tk --ascii demo\texture.py
wrote C:\Python23\VISION~1\texture.spec
C:\Python23\python.exe -O C:\python23\lib\site-packages\Installer\Build.py
sumo.spec
checking Analysis
building because C:\Python23\lib\popen2.pyo changed
running Analysis out0.toc
Analyzing: pyz_support.py
C:\Python23\VISION~1\buildsumo\out0.toc no change!
checking Analysis
checking PYZ
checking PKG
checking ELFEXE
checking PYZ
checking Tree
checking Tree
checking COLLECT
Converting newlines in sumo\VisionEgg.cfg
Traceback (most recent call last):
File "C:\Python23\VISION~1\build-win-exe-demos.py", line 169, in ?
shutil.copy2(file,dest)
File "C:\Python23\lib\shutil.py", line 82, in copy2
copyfile(src, dst)
File "C:\Python23\lib\shutil.py", line 37, in copyfile
fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory: 'README-BINARY-DEMOS.txt'
*********
I've gotten Installer to work fine with simpler pygame scripts, but still having
trouble with visionegg. any ideas as to why the build-win-exe-demos.py script
is failing?
thanks!
-=gabe
>>> NevarezG@xxxxxxxxxxxxx 18/01/05 12:25 PM >>>
Hi, Andrew,
Thanks for the tips! Theoretically, working just fine, but I think I might have
a problem, either with my python install or with some other little issue.
running the build-win-exe-demos.py file gets the following errors:
.... snip ....
C:\Python23\python.exe -O C:\Installer\Build.py sumo.spec
Traceback (most recent call last):
File "C:\Installer\Build.py", line 823, in ?
build(sys.argv[1])
File "C:\Installer\Build.py", line 41, in build
exec open(spec, 'r').read()+'\n'
File "<string>", line 5, in ?
File "C:\Installer\Build.py", line 67, in __init__
raise ValueError, "script '%s' not found" % script
ValueError: script 'pyz_support.py' not found
Converting newlines in sumo\VisionEgg.cfg
Traceback (most recent call last):
File "C:\Python23\VisionEgg\build-win-exe-demos.py", line 221, in ?
shutil.copy2(file,dest)
File "C:\Python23\lib\shutil.py", line 82, in copy2
copyfile(src, dst)
File "C:\Python23\lib\shutil.py", line 37, in copyfile
fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory: 'README-BINARY-DEMOS.txt'
C:\Python23\VisionEgg>
Let me know if you have any tips....probably a small issue. Thanks!
-=gabe
>>> astraw@xxxxxxxxxxx 13/01/05 9:14 PM >>>
Hi Gabriel,
Finally a question I can easily answer! (I'll hopefully be getting to
some of the more difficult ones piling up later today...)
I've had some success with Gordon McMillan's "Installer" with Vision Egg
apps, but I haven't tried py2exe (although that has worked well for me
for other scripts I've written).
To see the how I ran Installer (a while ago now!), you check out this
script, which builds .exe files from most of the Vision Egg demos:
http://cvs.sourceforge.net/viewcvs.py/visionegg/visionegg/build-win-exe-demos.py?view=markup
It's a little funky because it generates .exe files for each of many
Vision Egg scripts, and tries to keep the common dependencies in other
.dlls within the same directory.
Good luck, and if you have recipe for py2exe, I've be more than happy to
include it with the Vision Egg source.
Cheers!
Andrew
Gabriel Nevarez wrote:
> Hello all,
>
> We're trying to run some standalone python scripts on some cluster
> pc's and found that py2exe
> (http://starship.python.net/crew/theller/py2exe/) would be ideal for
> this, as we're not allowed to alter the standard cluster pc disk image.
>
> py2exe works great with simpler scripts but I have trouble getting all
> the dependencies set for a typical visionegg demo (given the numerous
> dependencies).
>
> Anybody run across this with any luck?
>
> -=Gabriel Nevarez
> Research Programmer
> Psychology Department
> Cardiff University
> nevarezg@xxxxxxxx
> ======================================
> The Vision Egg mailing list
> Archives: http://www.freelists.org/archives/visionegg
> Website: http://www.visionegg.org/mailinglist.html
--
Andrew D. Straw Post-doctoral scholar
,-. Dickinson Lab
\_/ California Institute of Technology
8||} Mailcode 138-78
/ \ Pasadena CA 91125, USA
`-^
email: astraw@xxxxxxxxxxx
office: +1 626 395 5828
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
- Follow-Ups:
- [visionegg] Re: py2exe and VisionEgg
- From: Andrew Straw
Other related posts:
- » [visionegg] py2exe and VisionEgg
- » [visionegg] Re: py2exe and VisionEgg
- » [visionegg] Re: py2exe and VisionEgg
- » [visionegg] Re: py2exe and VisionEgg
- » [visionegg] Re: py2exe and VisionEgg
- » [visionegg] Re: py2exe and VisionEgg
- » [visionegg] Re: py2exe and VisionEgg
- » [visionegg] Re: py2exe and VisionEgg
- » [visionegg] Re: py2exe and VisionEgg
- » [visionegg] Re: py2exe and VisionEgg
- [visionegg] Re: py2exe and VisionEgg
- From: Andrew Straw