pyglet on python 3.2a error - help please

124 views
Skip to first unread message

viper

unread,
Nov 26, 2010, 12:49:41 AM11/26/10
to pyglet-users
Hi,

I'm running python 3.2a for fun and tried to port pyglet to it. This
is what i did:
1) hg clone https://pyglet.googlecode.com/hg/ pyglet
2) cd pyglet
3) 2to3 -w -n pyglet
4) 2to3 -w -n examples
5) python setup.py install

All this seemed to go splendidly.

Now I tried to run an example, like opengl_3.py and I get this error
log:

Traceback (most recent call last):
File "X:\pyglet\hg\examples\opengl_3.py", line 34, in <module>
config = pyglet.gl.Config(major_version=3, minor_version=0)
File "C:\Python32\lib\site-packages\pyglet\__init__.py", line 313,
in __getattr__
__import__(import_name)
File "C:\Python32\lib\site-packages\pyglet\gl\__init__.py", line
232, in <module>
import pyglet.window
File "C:\Python32\lib\site-packages\pyglet\window\__init__.py", line
1809, in <module>
gl._create_shadow_window()
File "C:\Python32\lib\site-packages\pyglet\gl\__init__.py", line
205, in _create_shadow_window
_shadow_window = Window(width=1, height=1, visible=False)
File "C:\Python32\lib\site-packages\pyglet\window
\win32\__init__.py", line 131, in __init__
super(Win32Window, self).__init__(*args, **kwargs)
File "C:\Python32\lib\site-packages\pyglet\window\__init__.py", line
557, in __init__
self._create()
File "C:\Python32\lib\site-packages\pyglet\window
\win32\__init__.py", line 267, in _create
self.set_vsync(self._vsync)
File "C:\Python32\lib\site-packages\pyglet\window
\win32\__init__.py", line 302, in set_vsync
self.context.set_vsync(vsync)
File "C:\Python32\lib\site-packages\pyglet\gl\win32.py", line 227,
in set_vsync
if wgl_info.have_extension('WGL_EXT_swap_control'):
File "C:\Python32\lib\site-packages\pyglet\gl\wgl_info.py", line 66,
in have_extension
return extension in self.get_extensions()
File "C:\Python32\lib\site-packages\pyglet\gl\wgl_info.py", line 61,
in get_extensions
return wglGetExtensionsStringEXT().split()
File "C:\Python32\lib\site-packages\pyglet\gl\lib_wgl.py", line 87,
in __call__
address = wglGetProcAddress(self.name)
ctypes.ArgumentError: argument 1: <class 'TypeError'>: wrong type

Any ideas what is wrong? If so, how can this be fixed? I have time but
a lack of knowledge and would be willing to help get this working if
someone could point me in the right direction.

Thanks muchly

Andreas Schiefer

unread,
Nov 26, 2010, 6:41:40 AM11/26/10
to pyglet-users
Hi,

it seems Python 3.2 is now a little more strict than Python 3.1 was.
Nevertheless, I've just pushed two commits that fix the problems with
Python 3.2.

So the steps you already used to get, convert and install pyglet
should now also work with Python 3.2.

Thanks for your bug report!


Andy

viper

unread,
Nov 27, 2010, 7:29:10 AM11/27/10
to pyglet-users
Hahaha that's awesome! Thanks for the fast reply!
So far it works fine. I'm trying out the NeHe opengl tutorials.

Andy, allow me to send you a virtual beverage of your choice to enjoy
this weekend :)

Cheers

On Nov 26, 10:41 pm, Andreas Schiefer <andreas.schie...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages