[PyOpenGL-Users] py2exe with (py)openGL
Brought to you by:
mcfletch
From: Astan C. <st...@al...> - 2008-04-02 23:37:09
|
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. |