On Sun, Mar 31, 2013 at 11:32 PM, Matthias Grüter <[email protected]>wrote:

> Hi
>
> I am getting a "WindowsError: exception: access violation reading" when
> I'm attempting to create a pyglet window on a Windows 7 64-bit machine. The
> error I get looks exactly like issue 
> 387<https://code.google.com/p/pyglet/issues/detail?id=397> but
> I still encounter the error even when using 32-bit Python.
>
> Pyglet version: 1.1.4 and 1.2alpha1
> Python: 2.5 (32-bit) and 2.7 (32-bit)
> OS: Windows 7 Premium Home 64-bit
> HW: Toshiba Satellite laptop with Intel HD graphics
>
> The following code causes the error:
>
> import pyglet
> w = pyglet.winow.Window()
>
>
> The full output:
>
> Traceback (most recent call last):
>   File "D:\workspace\pyglet-gauges\**src\gauge.py", line 104, in <module>
>     App().main()
>   File "D:\workspace\pyglet-gauges\**src\gauge.py", line 69, in main
>     window = pyglet.window.Window()
>   File "C:\Python25\Lib\site-**packages\pyglet\__init__.py", line 306, in
> __getattr__
>     __import__(import_name)
>   File "C:\Python25\Lib\site-**packages\pyglet\window\__init_**_.py",
> line 1684, in <module>
>     gl._create_shadow_window()
>   File "C:\Python25\Lib\site-**packages\pyglet\gl\__init__.**py", line
> 494, in _create_shadow_window
>     _shadow_window = Window(width=1, height=1, visible=False)
>   File "C:\Python25\Lib\site-**packages\pyglet\window\win32\_**_init__.py",
> line 423, in __init__
>     super(Win32Window, self).__init__(*args, **kwargs)
>   File "C:\Python25\Lib\site-**packages\pyglet\window\__init_**_.py",
> line 636, in __init__
>     config = screen.get_best_config(**template_config)
>   File "C:\Python25\Lib\site-**packages\pyglet\window\__init_**_.py",
> line 288, in get_best_config
>     configs = self.get_matching_configs(**template)
>   File "C:\Python25\Lib\site-**packages\pyglet\window\win32\_**_init__.py",
> line 192, in get_matching_configs
>     return self._get_pixel_format_**descriptor_matching_configs(**
> template)
>   File "C:\Python25\Lib\site-**packages\pyglet\window\win32\_**_init__.py",
> line 240, in _get_pixel_format_descriptor_**matching_configs
>     pf = _gdi32.ChoosePixelFormat(hdc, byref(pfd))
> WindowsError: exception: access violation reading 0x0000013C
>
>
> Any ideas?
>


Can you double-check and make _sure_ that you really have 32-bit python?
 Do this:

>>> import sys
>>> sys.maxint

9223372036854775807 means a 64-bit system, 2147483647 means a 32-bit system.

~ Nathan

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


Reply via email to