Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.035 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'attribute': 0.07; 'filename:fname piece:py': 0.07; 'python3': 0.07; 'python': 0.11; 'script,': 0.16; "ubuntu's": 0.16; 'url:html)': 0.16; 'import': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'script': 0.25; 'attached.': 0.26; 'skip:" 20': 0.27; 'tried': 0.27; 'skip:p 30': 0.29; 'code': 0.31; 'received:10.0.0': 0.31; 'file': 0.32; '(most': 0.33; 'skip:# 10': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'received:10.0': 0.36; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'recent': 0.39; 'url:2012': 0.39; 'to:addr:python.org': 0.39; 'url:17': 0.68; 'default': 0.69; 'fail.': 0.84; 'song': 0.84; 'sound.': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=61KMLPR/T+xzvJXiJ6ytkgcbqfeW2oUCZHHLtG/98/o=; b=YUS70mVDYCrGpQYUBrpWbvzzSMp6HZSGo89NP1O5+nvYs6W2g+usVfTLFWSG2G08On mJZcQJ/hGxZ5bdwNXHTismMA2xOh1sQ7HVetmMGaVhpyLoXQNgsaIQqyLk1IkvvGJ0Ld BqT138zpRyYMOI1OJS+k+Xic4nnEgXuEpdwOp8UNmEeXJF1NpelJ4mpHaSmonj+nZ5Q3 Zo5wHSoLVABgIIcB2WoakNd7IS6rEEIKQ9sBmy72w8aFzvhK8iaSOs7RaXU1oK0qRDo7 OriXQfj76d+cTAMYZwSTMw3JS0zopJz0xrbiRIdACnjrGSRH9EstcI8pDQu1Bk3BkGf4 KuAQ== X-Received: by 10.52.240.205 with SMTP id wc13mr22000848vdc.87.1375131369178; Mon, 29 Jul 2013 13:56:09 -0700 (PDT) Date: Mon, 29 Jul 2013 16:56:06 -0400 From: Devyn Collier Johnson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: Python Mailing List Subject: Has anyone gotten Pyglet to work Content-Type: multipart/mixed; boundary="------------050504010900060204060602" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 37 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1375131377 news.xs4all.nl 15990 [2001:888:2000:d::a6]:52273 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:51495 This is a multi-part message in MIME format. --------------050504010900060204060602 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 import pyglet File "/home/collier/pyglet.py", line 3, in song = pyglet.media.load('./boot.ogg') AttributeError: 'module' object has no attribute 'media' Mahalo, DCJ --------------050504010900060204060602 Content-Type: text/x-python; name="pyglet.py" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="pyglet.py" #!/usr/bin/env python import pyglet song = pyglet.media.load('./boot.ogg') song.play() pyglet.app.run() --------------050504010900060204060602--