Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #51503
| From | Lee Harr <missive@hotmail.com> |
|---|---|
| Subject | Re: Has anyone gotten Pyglet to work |
| Date | 2013-07-30 02:04 +0430 |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5274.1375133764.3114.python-list@python.org> (permalink) |
> $ ./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.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Has anyone gotten Pyglet to work Lee Harr <missive@hotmail.com> - 2013-07-30 02:04 +0430
csiph-web