Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3.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.025 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'syntax': 0.04; 'importing': 0.05; 'python3': 0.07; 'setup.py': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; "%s'": 0.16; 'build_py': 0.16; 'skip:/ 60': 0.16; 'subject:...?': 0.16; 'sudo': 0.16; 'syntaxerror:': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'thu,': 0.19; 'import': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'install': 0.23; 'error': 0.23; 'cc:2**0': 0.24; 'skip:" 20': 0.27; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; '"",': 0.31; '25,': 0.31; '>>>>': 0.31; 'accidentally': 0.31; 'file': 0.32; 'linux': 0.33; 'running': 0.33; '(most': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'picking': 0.36; 'changing': 0.37; 'skip:. 20': 0.38; 'pm,': 0.38; 'recent': 0.39; 'removing': 0.60; 'john': 0.61; "you're": 0.61; 'back': 0.62; 'more': 0.64; 'talking': 0.65; 'invalid': 0.68; 'home': 0.69; 'jul': 0.74; '3.3.1': 0.84; 'email name:john': 0.84; 'skip:/ 30': 0.84; '2013,': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=tVXqarYcO5+Ak5TJoA2Oq8gXkHwFjnBSkq84kviPEm4=; b=nLECw+7CT+LdayZfCuw0Qc414sfuifMj9C7LqTHGwLs7peNKGz6vJwUf1dnrx6x1nw ovNeGY6rudKvi58scOnjSi6FlZWL5RNF/9cf48eVAOzG7nvPHDSPuO4LEmIjccq6hPeg HEDFJXT76vAuMZVpVjpSNo/B9ffORiNHC+f3KP15hpGkCK8niXZBcUmB7XgfYs7502Ou ytc6HsbCS46gIPezSr/Au/DleeSz62Jflzt3Xx8ME2S+GuWGhacCoh2EtSUlOXJDRkgD FOzV3H6bfh18gSe2J88KMb8umvY3V5Aew6jF9/E7TSU/nWVv1wk3PY4sAg7cni+EpOUU L/Iw== MIME-Version: 1.0 X-Received: by 10.68.131.133 with SMTP id om5mr53981633pbb.148.1374845994771; Fri, 26 Jul 2013 06:39:54 -0700 (PDT) In-Reply-To: References: <4ddada8b-81fd-46e7-bd5d-eeab550a9fa7@googlegroups.com> <5c35c252-67ed-4810-88b2-6708ed321bee@googlegroups.com> Date: Fri, 26 Jul 2013 09:39:54 -0400 Subject: Re: PyGLet, 2to3...? From: Jerry Hill To: John Ladasky Content-Type: text/plain; charset=UTF-8 Cc: "python-list \(General\)" 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: 41 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1374846007 news.xs4all.nl 15883 [2001:888:2000:d::a6]:35760 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:51302 On Thu, Jul 25, 2013 at 7:49 PM, John Ladasky wrote: > ======================================= > > john@john:~/Desktop/pyglet-1.2alpha1$ sudo python3 setup.py install > > [sudo] password for john: > > running install > running build > running build_py > running install_lib > running install_egg_info > Removing /usr/local/lib/python3.3/dist-packages/pyglet-1.2alpha1.egg-info > Writing /usr/local/lib/python3.3/dist-packages/pyglet-1.2alpha1.egg-info Pyglet was installed to /usr/local/lib/python3.3/dist-packages ... > john@john:~/Desktop/pyglet-1.2alpha1$ python3 > > Python 3.3.1 (default, Apr 17 2013, 22:30:32) > [GCC 4.7.3] on linux > Type "help", "copyright", "credits" or "license" for more information. >>>> import pyglet > Traceback (most recent call last): > File "", line 1, in > File "./pyglet/__init__.py", line 276 > print '[%d] %s%s %s' % (thread, indent, name, location) > ^ > SyntaxError: invalid syntax ... But here, the error message is talking about ./pyglet/__init__.py. I think you're accidentally importing the pyglet package from the local directory instead of from the proper location in dist-packages. Try changing back to your home directory and trying this again. I think you're picking up the code from ~/Desktop/pyglet-1.2alpha1/pyglet instead of from /usr/local/lib/python3.3/dist-packages. -- Jerry