Re: [PyOpenGL-Users] py2exe with (py)openGL
Brought to you by:
mcfletch
From: R. D. <re...@gm...> - 2008-04-03 23:46:57
|
hey, yeah, I'm not really sure. I think it's mainly because setuptools does not work with py2exe. On Thu, Apr 3, 2008 at 12:06 PM, Astan Chee <st...@al...> wrote: > > Thanks for the info. I was just wondering why this is happening? The import > of modules are not in run-time,right? > Oh well, looks like I'll have to wait them. > Cheers > > > > René Dudfield wrote: > Hi, > > pyopengl 2.x seems to work with py2exe. Maybe you could use that. I > haven't heard of anyone getting 3.x working at all with it. > > Here's a more recent build of 2.x for python2.5. It doesn't support > numeric, or togl. > http://thorbrian.com/pyopengl/builds.php > > > cheers, > > > On undefined, Astan Chee <st...@al...> wrote: > > > Hi, > Im trying to make a .exe out of a pygame/pyopengl script using py2exe. > The headers of my script looks like this: > import sys > from OpenGL.GL import * > from OpenGL.GLU import * > from OpenGL.arrays import formathandler > formathandler.FormatHandler.chooseOutput( 'ctypesarrays' ) > import os, math, random > import pygame > from pygame.locals import * > if sys.platform == 'win32' or sys.platform == 'win64': > os.environ['SDL_VIDEO_CENTERED'] = '1' > > Im using py2exe 0.6.6 and pyopengl 3.0.0b1, and my steup.py file looks > like this: > > #!/usr/bin/env python > from distutils.core import setup > import py2exe > > setup(console=["script.py"]) > > And I can make the .exe fine, but when I try to run the .exe, I keep > getting this error: > > Traceback (most recent call last): > File "script.py", line 2, in <module> > File "OpenGL\GL\__init__.pyc", line 2, in <module> > File "OpenGL\raw\GL\__init__.pyc", line 6, in <module> > File "OpenGL\raw\GL\constants.pyc", line 7, in <module> > File "OpenGL\platform\__init__.pyc", line 57, in <module> > File "OpenGL\platform\__init__.pyc", line 53, in _load > RuntimeError: Unable to find an implementation for the 'win32' ('nt') > platform > > I've tried various things like copying the openGL folder to the .exe > folder and such, but it didnt work. What am I doing wrong here? > Thanks > Astan > > -- > "Formulations of number theory: Complete, Consistent, Non-trivial. Choose > two." > > > Animal Logic > http://www.animallogic.com > > Please think of the environment before printing this email. > > This email and any attachments may be confidential and/or privileged. If > you are not the intended recipient of this email, you must not disclose or > use the information contained in it. Please notify the sender immediately > and delete this document if you have received it in error. We do not > guarantee this email is error or virus free. > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > > > > > -- > "Formulations of number theory: Complete, Consistent, Non-trivial. Choose > two." > > > > > > Please think of the environment before printing this email. > > This email and any attachments may be confidential and/or privileged. If you > are not the intended recipient of this email, you must not disclose or use > the information > contained in it. Please notify the sender immediately and delete this > document if you have received it in error. We do not guarantee this email is > error or virus free. > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > > |