Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #51519
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <joshua.landau.ws@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'anyway.': 0.05; 'preferably': 0.05; 'url:pipermail': 0.05; 'distutils': 0.07; 'problem:': 0.07; 'python3': 0.07; 'reason,': 0.07; 'tool,': 0.07; '2to3': 0.09; 'executed': 0.09; 'executes': 0.09; 'moderator': 0.09; 'setup.py': 0.09; 'runs': 0.10; 'cc:addr:python-list': 0.11; 'python': 0.11; 'gui': 0.12; 'suggest': 0.14; 'itself.': 0.14; '(these': 0.16; 'advice,': 0.16; 'fine.': 0.16; 'guilty': 0.16; 'keyerror': 0.16; 'mine.': 0.16; 'site).': 0.16; 'subject:problems': 0.16; 'thread,': 0.16; 'traceback.': 0.16; 'url:detail': 0.16; 'url:issues': 0.16; '\xc2\xa0i': 0.16; '\xc2\xa0if': 0.16; 'student': 0.16; 'sender:addr:gmail.com': 0.17; 'fix': 0.17; 'wrote:': 0.18; 'looked': 0.18; 'bit': 0.19; 'trying': 0.19; 'everyone,': 0.19; 'first.': 0.19; 'help.': 0.21; 'seems': 0.21; '>>>': 0.22; 'programming': 0.22; 'import': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'install': 0.23; 'error': 0.23; '>>>': 0.24; 'finally,': 0.24; 'issue,': 0.24; 'module,': 0.24; 'oriented': 0.24; 'package.': 0.24; 'earlier': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'script': 0.25; 'first,': 0.26; 'posts': 0.26; 'post': 0.26; 'downloaded': 0.26; 'asking': 0.27; 'certain': 0.27; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'appear': 0.29; 'skip:p 30': 0.29; 'reporting': 0.29; 'url:code': 0.29; 'errors': 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'getting': 0.31; 'towards': 0.31; 'approve': 0.31; 'crash': 0.31; 'invoke': 0.31; 'produces': 0.31; 'anyone': 0.31; 'file': 0.32; 'there.': 0.32; 'thanks!': 0.32; 'run': 0.32; 'up.': 0.33; 'week.': 0.33; 'url:python': 0.33; 'running': 0.33; 'entirely': 0.33; 'core': 0.34; 'could': 0.34; 'problem': 0.35; 'agree': 0.35; 'test': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'joined': 0.36; 'limitations': 0.36; 'ubuntu': 0.36; 'done': 0.36; 'url:org': 0.36; 'error.': 0.37; 'so,': 0.37; 'two': 0.37; 'starting': 0.37; 'problems': 0.38; 'process,': 0.38; 'window': 0.38; 'whatever': 0.38; 'files': 0.38; 'issue': 0.38; 'that,': 0.38; 'skip:& 20': 0.39; 'does': 0.39; 'generating': 0.39; 'reported': 0.39; 'system.': 0.39; 'skip:p 20': 0.39; 'then,': 0.60; 'url:%20': 0.61; 'john': 0.61; 'first': 0.61; 'back': 0.62; 'offer': 0.62; 'july': 0.63; 'myself': 0.63; 'teaching': 0.64; 'url:p': 0.64; 'teach': 0.65; 'hours': 0.66; 'direct': 0.67; 'statement,': 0.68; 'attention': 0.75; 'saw': 0.77; 'potentially': 0.81; 'deadline.': 0.84; 'discussions,': 0.84; 'games.': 0.84; 'researching': 0.84; 'tomorrow,': 0.84; 'url:lang': 0.84; 'sorry.': 0.91; 'works!': 0.91; 'hand,': 0.93; '2013': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=Sk30J1MN9iHJX+vn1V67sxx6h+4tDK8k5glhx6bbMIo=; b=t1WtysTe/9AaBivuTA/waUQSE4uoXWnevb+7LhlWNxBCwTbIXA9fQl57nEe2htPraj uY6KRVLIPY+mYZOxYZK4V/BFJgQgyEG6nj0uNoKykfSmo6hFCUdFi0zsd063P5vz5tpz K480FmO7KZItPg7YoglDo3Qq4SW95066VcOTHWQkvv2I44YTEXrWwrtNLhYUVuPBWtu4 kXChfkNkHdgrdMAirQtZcd/Dl24QzSLWh8QWpUrGY2vms+t/Ipds2WZZhbjbD5CQqxpy g9OJWpj/JYDub0sM9bikJiGWoRQAGUVp4u8UYd9Dga9M+/C/MVB7VJ/bOJ24Mtpn2FoZ H5vg== |
| X-Received | by 10.152.19.70 with SMTP id c6mr1205546lae.25.1375139689578; Mon, 29 Jul 2013 16:14:49 -0700 (PDT) |
| MIME-Version | 1.0 |
| Sender | joshua.landau.ws@gmail.com |
| In-Reply-To | <cc9a7c29-5851-48ea-b2e1-22c5192071cf@googlegroups.com> |
| References | <cc9a7c29-5851-48ea-b2e1-22c5192071cf@googlegroups.com> |
| From | Joshua Landau <joshua@landau.ws> |
| Date | Tue, 30 Jul 2013 00:14:09 +0100 |
| X-Google-Sender-Auth | CWzZ4WMAALzCD0PeJurKFROT0m4 |
| Subject | Re: Pyglet on Python3.x, problems |
| To | John Ladasky <john_ladasky@sbcglobal.net> |
| Content-Type | multipart/alternative; boundary=089e013d1b9cb6c52d04e2aea87f |
| Cc | python-list <python-list@python.org> |
| 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.5284.1375139697.3114.python-list@python.org> (permalink) |
| Lines | 221 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1375139697 news.xs4all.nl 15938 [2001:888:2000:d::a6]:59132 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:51519 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
On 29 July 2013 23:04, John Ladasky <john_ladasky@sbcglobal.net> wrote: > For whatever reason, the pyglet package is getting a lot of attention on > c.l.python these past few days. I am guilty of generating some of that > potentially off-topic conversation myself. At the end of my last thread, I > reported that I had found the pyglet-users newsgroup, and would direct my > questions there. > > https://groups.google.com/d/msg/comp.lang.python/ARtI0GC9RHc/_6URRrhz7nUJ I suggest you redirect to the archives from http://mail.python.org/pipermail/python-list/. > Well, I joined pyglet-users. I have waited for about 36 hours for the > moderator to approve my first post asking for help. Several other posts > have appeared, but not mine. I don't think that I was impolite. > > Apologies to everyone, but I'm going to ask my questions here. As you may > recall, I'm teaching some adolescent computer programming students. I need > a Python 3-compatible GUI, preferably one oriented towards games. I might > have that GUI in hand, but I need to test it myself first. I've been > researching this issue for over a week. I have a student tomorrow, so I'm > facing a bit of a deadline. (Yeah, I could teach him about B-trees > instead, but... you know, kids.) > > In my own defense, I'm not entirely certain that the problems I have > encountered are specific to pyglet. They might have to do with the > limitations of the 2to3 program. > > I'm starting with my own Ubuntu 13.04 system. I downloaded > pyglet-1.2alpha1, unzipped it and executed "sudo python3 setup.py install", > as I have done with many a package. Then I tried running various programs > in two directories (these programs are also on the pyglet.org web site). > > pyglet-1.2alpha1/examples/programming_guide/hello_world.py runs fine. > > pyglet-1.2alpha1/examples/programming_guide/image_viewer.py also runs fine. > > pyglet-1.2alpha1/examples/programming_guide/animation.py produces an > error. Here's the traceback. > ... > From earlier discussions, I know that distutils automatically executes > 2to3 on the pyglet core module, when you invoke pyglet's setup.py file from > Python 3. The setup script does not appear to run 2to3 on the code outside > of the package itself. And while I doubted that the KeyError I saw above > was a Python 2/3 compatibility issue, I tried running 2to3 on animation.py > anyway. 2to3 seems to agree with me, reporting back "RefactoringTool: No > files need to be modified." > > Finally, I got errors when trying to run pyglet-1.2alpha1/tests/test.py. > At first, it looked like the fix would be easy: > ... > Clearly this was a problem for 2to3, so I ran it on test.py. It corrected > that one print statement, and nothing else. Then I ran test.py again. > This time I got a deeper problem: > ... > This error suggests that, during the build and install process, 2to3 left > some code uncorrected in pyglet/__init__.py. This has me worried. Could > there be other code that 2to3 failed to correct? I don't want to offer my > students a tool, only to have it crash on them. > > So, there you have it, the two errors that I am encountering. If anyone > has any advice, I would appreciate it. Thanks! > Seems relevant: https://code.google.com/p/pyglet/issues/detail?id=615&colspec=ID%20Stars%20StatusType%20OpSys%20Modified%20Summary If https://code.google.com/p/pyglet/issues/detail?id=630&colspec=ID%20Stars%20StatusType%20OpSys%20Modified%20Summary is your problem then, for me: >>> import pyglet >>> pyglet.window <pyglet._ModuleProxy object at 0x7ffab02cf690> >>> pyglet.window.Window() <pyglet.window.xlib.XlibWindow object at 0x7ffab02c7b50> Window pops up. It works! Sorry. What happens when you help(pyglet) and help(pyglet.window) and help(pyglet.window.Window)?
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Pyglet on Python3.x, problems John Ladasky <john_ladasky@sbcglobal.net> - 2013-07-29 15:04 -0700
Re: Pyglet on Python3.x, problems Joshua Landau <joshua@landau.ws> - 2013-07-30 00:14 +0100
Re: Pyglet on Python3.x, problems John Ladasky <john_ladasky@sbcglobal.net> - 2013-07-29 17:34 -0700
Re: Pyglet on Python3.x, problems Ian Kelly <ian.g.kelly@gmail.com> - 2013-07-29 17:44 -0600
Re: Pyglet on Python3.x, problems John Ladasky <john_ladasky@sbcglobal.net> - 2013-07-29 17:47 -0700
Re: Pyglet on Python3.x, problems Chris Angelico <rosuav@gmail.com> - 2013-07-30 02:38 +0100
csiph-web