[visionegg] Re: py2exe and VisionEgg

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

Other related posts: