pyglet - WindowsError:exception:访问冲突读取0x00000000

时间:2016-04-14 01:56:00

标签: python python-2.7 pyglet

我正在使用以下代码在笔记本电脑上测试pyglet:

import pyglet

window = pyglet.window.Window()

@window.event
def on_key_press(symbol, modifiers):
    print 'A key was pressed'

@window.event
def on_draw():
    window.clear()

pyglet.app.run() 

我收到此错误:

Traceback (most recent call last):
  File "F:\Python Games\New Game\main.py", line 3, in <module>
    window = pyglet.window.Window()
  File "_build\bdist.win32\egg\pyglet\__init__.py", line 357, in __getattr__
  File "_build\bdist.win32\egg\pyglet\window\__init__.py", line 1817, in <module>
  File "_build\bdist.win32\egg\pyglet\gl\__init__.py", line 205, in _create_shadow_window
  File "_build\bdist.win32\egg\pyglet\window\win32\__init__.py", line 131, in __init__
  File "_build\bdist.win32\egg\pyglet\window\__init__.py", line 559, in __init__
  File "_build\bdist.win32\egg\pyglet\window\win32\__init__.py", line 263, in _create
  File "_build\bdist.win32\egg\pyglet\gl\win32.py", line 203, in attach
WindowsError: exception: access violation reading 0x00000000
[Finished in 2.313s]

我的笔记本电脑很老了。我正在运行Windows 10;

0 个答案:

没有答案