[visionegg] Re: py2exe and VisionEgg
- From: Gabriel Nevarez <nevarezg@xxxxxxxx>
- To: visionegg@xxxxxxxxxxxxx
- Date: Tue, 18 Jan 2005 19:34:20 +0000
Hi, Andrew,
The executable has a null response... it does nothing at all. Just
tried your suggestion of creating the "missing files", seems to work
(at least the build goes through flawless).
However, still no output upon running the executable. Task Manager
in XP lists the process for the executable momentarily then it is
gone. The original scripts themselves are still working fine through
the python interpreter.
Do you recall any peculiarities or specifics for making win32
executables from VisionEgg scripts? It may likely be an Installer
issue, since I just ran a "hello world" script (no includes) through
and still no output when running the executable.
(NB: As I'm not particularly familiar with Installer, I simply
modified your built-win-exe-demos.py script by changing the
scripts_orig file list, but leaving the rest intact. I assume the
script was written for Python 2.2 (as the "don't forget to copy
PyWinTypes22.dll..." warning at the end suggests). I don't think
this would cause any problems, though... I hope)
Next step is to trace through the Installer source and docs to see if
I can find the problem....what fun!
Let me know if you have any suggestions on what might be holding the build up.
cheers!
gabe
p.s. Also tried using freezePython but that presents its own problems.
Hi Gabirel,
If you run the .exe from the command line, do you see any error messages?
Also, I see the following error in your log: "IOError: [Errno 2] No
such file or directory: 'README-BINARY-DEMOS.txt'"
If you have a (dummy) file of that same name, does it work?
Let us know.
Cheers!
Andrew
Gabriel Nevarez wrote:
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
- References:
- [visionegg] Re: py2exe and VisionEgg
- From: Gabriel Nevarez
- [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
Hi Gabirel,
If you run the .exe from the command line, do you see any error messages?
Also, I see the following error in your log: "IOError: [Errno 2] No such file or directory: 'README-BINARY-DEMOS.txt'"
If you have a (dummy) file of that same name, does it work?
Let us know.
Cheers! Andrew
Gabriel Nevarez wrote:
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
Hi, Andrew,NevarezG@xxxxxxxxxxxxx 18/01/05 12:25 PM >>>
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
- [visionegg] Re: py2exe and VisionEgg
- From: Gabriel Nevarez
- [visionegg] Re: py2exe and VisionEgg
- From: Andrew Straw