[visionegg] Re: py2exe and VisionEgg
- From: "Gabriel Nevarez" <NevarezG@xxxxxxxxxxxxx>
- To: <visionegg@xxxxxxxxxxxxx>
- Date: Wed, 19 Jan 2005 17:40:37 +0000
Hi, Andrew
Eureka! Finally got it working!
I am using numarray 1.0 ,so don't know if it has the same API issue as 1.1.1.
Also, there are still a few demos that are crashing, for one reason or another.
The main crash is with the Text() module, such as with displayText.py:
**************
C:\Python23\VisionEgg\demo\dist>displaytext
2005-01-19 17:32:43,875 (2788) INFO: Script displaytext started Vision Egg
1.0-cvs with process id
788.
2005-01-19 17:32:44,125 (2788) INFO: No Vision Egg logo :( because of error
while trying to display
image in GUI.GraphicsConfigurationWindow: exceptions.IOError: [Errno 2] No such
file or directory:
C:\\Python23\\VisionEgg\\demo\\dist\\VisionEgg\\data\\visionegg.bmp'
2005-01-19 17:32:45,375 (2788) INFO: Requesting window 640 x 480 32 bpp (8 8 8 8
RGBA).
2005-01-19 17:32:45,453 (2788) INFO: Error while trying to set_icon:
pygame.error: Couldn't open C:
Python23\VisionEgg\demo\dist\VisionEgg\data\visionegg.bmp
2005-01-19 17:32:45,453 (2788) INFO: OpenGL 1.4.1, GeForce3/AGP/SSE2, NVIDIA
Corporation
2005-01-19 17:32:45,453 (2788) INFO: Video system reports 32 bpp (8 8 8 8 RGBA).
Pygame Parachute Traceback:
File "VisionEgg\Text.pyc", line 159, in __init__
Fatal Python error: (pygame parachute) Segmentation Fault
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
**********
Let me know if you know a quick fix for this one. In any case, I've got enough
to work with. Thanks!
-=gabe
>>> astraw@xxxxxxxxxxx 18/01/05 2:06 PM >>>
Hi Gabriel,
After dissuading you from using spy2exe, I've dusted off my Windows 2000
partition and gotten it working. (And failed with Installer, although
not admittedly working very hard at it before trying py2exe.)
Anyhow, there wasn't anything particularly difficult, but I did find a
few minor issues. First, my packages, which were downloaded tonight
(the Windows step-by-step install page should be updated after I verify
these packages seem to work):
Python version 2.3.4 (OK)
extra Python info: (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)]
Numeric version 23.6 (OK)
PyOpenGL (package "OpenGL") version 2.0.2.01 (OK)
pygame version 1.6 (OK)
Python Imaging Library (package "Image") version 1.1.4 (OK)
I had to make a small modification to
C:\Python23\Lib\site-packages\OpenGL/__init__.py to eliminate a file
opening to check its version and hard coded the value instead.
I had to de-install numarray 1.1.1 because it caused a Fatal Python
Error because apparently a numarray C API call was made without first
calling import_libnumarray().
I had to insert the lines "import OpenGL.GL.GL__init___; import
OpenGL.GL.ARB.multitexture" to allow py2exe to find these modules. (I
checked an equivalent change into CVS in src/GL.py .)
I debugged some of the above with: "import VisionEgg
VisionEgg.start_default_logging(); VisionEgg.watch_exceptions();
VisionEgg.logger.setLevel( VisionEgg.logging.DEBUG )"
Finally, here's my setup.py script:
from distutils.core import setup
import py2exe
setup(
console = ["gabor.py"],
)
Pretty simple, eh? :)
I hope this works for you...
Cheers!
Andrew
======================================
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