Has anyone gotten Pyglet to work
Lee Harr
missive at hotmail.com
Mon Jul 29 17:34:56 EDT 2013
> $ ./pyglet.py
> Traceback (most recent call last):
> File "./pyglet.py", line 2, in <module>
> import pyglet
> File "/home/collier/pyglet.py", line 3, in <module>
> song = pyglet.media.load('./boot.ogg')
> AttributeError: 'module' object has no attribute 'media'
Name your program something other than "pyglet.py"
import pyglet
is importing your module, instead of the pyglet module.
More information about the Python-list
mailing list