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


Groups > comp.lang.python > #51302

Re: PyGLet, 2to3...?

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 <malaclypse2@gmail.com>
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 <d5edc756-bcdd-4e67-a659-68aaf575a8f0@googlegroups.com>
References <4ddada8b-81fd-46e7-bd5d-eeab550a9fa7@googlegroups.com> <a548b0e1-4d48-4667-ae97-f356771140e6@googlegroups.com> <mailman.5103.1374763156.3114.python-list@python.org> <5c35c252-67ed-4810-88b2-6708ed321bee@googlegroups.com> <d5edc756-bcdd-4e67-a659-68aaf575a8f0@googlegroups.com>
Date Fri, 26 Jul 2013 09:39:54 -0400
Subject Re: PyGLet, 2to3...?
From Jerry Hill <malaclypse2@gmail.com>
To John Ladasky <john_ladasky@sbcglobal.net>
Content-Type text/plain; charset=UTF-8
Cc "python-list \(General\)" <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.5145.1374846007.3114.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Thu, Jul 25, 2013 at 7:49 PM, John Ladasky
<john_ladasky@sbcglobal.net> 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 "<stdin>", line 1, in <module>
>   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

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


Thread

Python3, GUIs, game APIs, PyGLet, 2to3...? John Ladasky <john_ladasky@sbcglobal.net> - 2013-07-24 22:26 -0700
  Re: Python3, GUIs, game APIs, PyGLet, 2to3...? John Ladasky <john_ladasky@sbcglobal.net> - 2013-07-24 23:56 -0700
    Re: Python3, GUIs, game APIs, PyGLet, 2to3...? Kushal Kumaran <kushal.kumaran+python@gmail.com> - 2013-07-25 14:05 +0530
      Re: Python3, GUIs, game APIs, PyGLet, 2to3...? John Ladasky <john_ladasky@sbcglobal.net> - 2013-07-25 15:26 -0700
        PyGLet, 2to3...? John Ladasky <john_ladasky@sbcglobal.net> - 2013-07-25 16:49 -0700
          Re: PyGLet, 2to3...? Jerry Hill <malaclypse2@gmail.com> - 2013-07-26 09:39 -0400
          Re: PyGLet, 2to3...? Kushal Kumaran <kushal.kumaran+python@gmail.com> - 2013-07-26 10:22 +0530
          Re: PyGLet, 2to3...? John Ladasky <john_ladasky@sbcglobal.net> - 2013-07-26 16:35 -0700
            Re: PyGLet, 2to3...? John Ladasky <john_ladasky@sbcglobal.net> - 2013-07-26 18:19 -0700
              Re: PyGLet, 2to3...? John Ladasky <john_ladasky@sbcglobal.net> - 2013-07-26 21:00 -0700

csiph-web