Seems like your VGA driver is the problem.

Pyglet runs perfectly on my Win7 x64, with a nVidia 9800GT and official x64 196.21drivers.



El 03/05/2010 18:39, Hello3171 escribió:
The simplest hello world example ("hello_world.py") is not working on
windows 7 (x64) with pyglet 1.1.4.

There are a two different error messages which come up: (strange
enough that it varies)

Traceback (most recent call last):
   File "D:\My Dropbox\Qasim\code\invasion_from_space\src\game
\run_game.py", line 10, in<module>
     window = pyglet.window.Window()
   File "C:\Python26\lib\site-packages\pyglet\__init__.py", line 306,
in __getattr__
     __import__(import_name)
   File "C:\Python26\lib\site-packages\pyglet\window\__init__.py", line
1684, in<module>
     gl._create_shadow_window()
   File "C:\Python26\lib\site-packages\pyglet\gl\__init__.py", line
494, in _create_shadow_window
     _shadow_window = Window(width=1, height=1, visible=False)
   File "C:\Python26\lib\site-packages\pyglet\window
\win32\__init__.py", line 423, in __init__
     super(Win32Window, self).__init__(*args, **kwargs)
   File "C:\Python26\lib\site-packages\pyglet\window\__init__.py", line
686, in __init__
     self._create()
   File "C:\Python26\lib\site-packages\pyglet\window
\win32\__init__.py", line 523, in _create
     self.switch_to()
   File "C:\Python26\lib\site-packages\pyglet\window
\win32\__init__.py", line 556, in switch_to
     self._context.set_current()
   File "C:\Python26\lib\site-packages\pyglet\gl\__init__.py", line
345, in set_current
     self._info.set_active_context()
   File "C:\Python26\lib\site-packages\pyglet\gl\gl_info.py", line 91,
in set_active_context
     self.vendor = cast(glGetString(GL_VENDOR), c_char_p).value
   File "C:\Python26\lib\site-packages\pyglet\gl\lib.py", line 105, in
errcheck
     raise GLException(msg)
pyglet.gl.lib.GLException: invalid operation

or

Traceback (most recent call last):
   File "D:\My Dropbox\Qasim\code\invasion_from_space\src\game
\run_game.py", line 10, in<module>
     window = pyglet.window.Window()
   File "C:\Python26\lib\site-packages\pyglet\window
\win32\__init__.py", line 423, in __init__
     super(Win32Window, self).__init__(*args, **kwargs)
   File "C:\Python26\lib\site-packages\pyglet\window\__init__.py", line
629, in __init__
     screen = display.get_default_screen()
   File "C:\Python26\lib\site-packages\pyglet\window\__init__.py", line
218, in get_default_screen
     return self.get_screens()[0]
IndexError: list index out of range

Any ideas on what the problem is?


--
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to