Skip to content

Instantly share code, notes, and snippets.

@Bentley4
Created July 2, 2012 09:26
Show Gist options
  • Save Bentley4/3032266 to your computer and use it in GitHub Desktop.
Save Bentley4/3032266 to your computer and use it in GitHub Desktop.
pyglet-walk.py runtime error
Traceback (most recent call last):
File "ircex.py", line 55, in <module>
pyglet.app.run()
File "/usr/local/lib/python2.7/dist-packages/pyglet/app/__init__.py", line 264, in run
EventLoop().run()
File "/usr/local/lib/python2.7/dist-packages/pyglet/app/xlib.py", line 93, in run
sleep_time = self.idle()
File "/usr/local/lib/python2.7/dist-packages/pyglet/app/__init__.py", line 193, in idle
window.dispatch_event('on_draw')
File "/usr/local/lib/python2.7/dist-packages/pyglet/window/__init__.py", line 1219, in dispatch_event
EventDispatcher.dispatch_event(self, *args)
File "/usr/local/lib/python2.7/dist-packages/pyglet/event.py", line 349, in dispatch_event
return getattr(self, event_type)(*args)
File "pyglet-walk.py", line 37, in on_draw
self.player.draw()
AttributeError: 'NoneType' object has no attribute 'draw'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment