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


Groups > comp.lang.python > #51495

Has anyone gotten Pyglet to work

Date 2013-07-29 16:56 -0400
From Devyn Collier Johnson <devyncjohnson@gmail.com>
Subject Has anyone gotten Pyglet to work
Newsgroups comp.lang.python
Message-ID <mailman.5269.1375131377.3114.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

I tried Pyglet in a Python3 and a Python2 script, but both fail. The 
error code is below and the script is attached. The 'boot.ogg' file is 
Ubuntu's default bootup sound. I got my code from this link 
(http://guzalexander.com/2012/08/17/playing-a-sound-with-python.html).

collier@Nacho-Laptop:~$ ./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'


Mahalo,

DCJ

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Has anyone gotten Pyglet to work Devyn Collier Johnson <devyncjohnson@gmail.com> - 2013-07-29 16:56 -0400
  Re: Has anyone gotten Pyglet to work Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-07-29 21:41 +0000

csiph-web