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


Groups > comp.lang.python > #51503

Re: Has anyone gotten Pyglet to work

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <missive@hotmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.055
X-Spam-Evidence '*H*': 0.89; '*S*': 0.00; 'importing': 0.05; 'attribute': 0.07; 'import': 0.22; 'to:name:python- list@python.org': 0.22; 'module,': 0.24; 'received:65.55.116': 0.24; 'skip:" 20': 0.27; 'skip:p 30': 0.29; '(most': 0.33; 'something': 0.35; 'module.': 0.36; 'to:addr:python-list': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'name': 0.63; 'charset:windows-1256': 0.64
X-TMN [G6PSwR9bwk14LoHPgM8Tpf7B8wElYAv1]
X-Originating-Email [missive@hotmail.com]
From Lee Harr <missive@hotmail.com>
To "python-list@python.org" <python-list@python.org>
Subject Re: Has anyone gotten Pyglet to work
Date Tue, 30 Jul 2013 02:04:56 +0430
Importance Normal
Content-Type text/plain; charset="windows-1256"
Content-Transfer-Encoding base64
MIME-Version 1.0
X-OriginalArrivalTime 29 Jul 2013 21:34:56.0545 (UTC) FILETIME=[7841A910:01CE8CA3]
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5274.1375133764.3114.python-list@python.org> (permalink)
Lines 8
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1375133764 news.xs4all.nl 15908 [2001:888:2000:d::a6]:52908
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:51503

Show key headers only | View raw


> $ ./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


Thread

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

csiph-web