Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #51503 > unrolled thread
| Started by | Lee Harr <missive@hotmail.com> |
|---|---|
| First post | 2013-07-30 02:04 +0430 |
| Last post | 2013-07-30 02:04 +0430 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
Re: Has anyone gotten Pyglet to work Lee Harr <missive@hotmail.com> - 2013-07-30 02:04 +0430
| From | Lee Harr <missive@hotmail.com> |
|---|---|
| Date | 2013-07-30 02:04 +0430 |
| Subject | Re: Has anyone gotten Pyglet to work |
| Message-ID | <mailman.5274.1375133764.3114.python-list@python.org> |
> $ ./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 top | Article view | comp.lang.python
csiph-web