Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #51503 > unrolled thread

Re: Has anyone gotten Pyglet to work

Started byLee Harr <missive@hotmail.com>
First post2013-07-30 02:04 +0430
Last post2013-07-30 02:04 +0430
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Re: Has anyone gotten Pyglet to work Lee Harr <missive@hotmail.com> - 2013-07-30 02:04 +0430

#51503 — Re: Has anyone gotten Pyglet to work

FromLee Harr <missive@hotmail.com>
Date2013-07-30 02:04 +0430
SubjectRe: 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. 		 	   		  

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web