This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author darabos
Recipients alexis, darabos, eric.araujo, r.david.murray, tarek, techtonik
Date 2012-09-09.16:09:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1347206998.28.0.821923501054.issue15419@psf.upfronthosting.co.za>
In-reply-to
Content
I've had the same issue. I was installing Pyglet. I first installed it under Python 2, then:

$ sudo python3 setup.py install
running install
running build
running build_py
running install_lib
[...]
creating /Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/pyglet/window/xlib
copying build/lib/pyglet/window/xlib/__init__.py -> /Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/pyglet/window/xlib
byte-compiling /Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/pyglet/__init__.py to __init__.cpython-32.pyc
  File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/pyglet/__init__.py", line 276
    print '[%d] %s%s %s' % (thread, indent, name, location)
                       ^
SyntaxError: invalid syntax


Deleting the 'build' directory from the Python 2 run fixed the problem and I could install the package under Python 3.
History
Date User Action Args
2012-09-09 16:09:58darabossetrecipients: + darabos, techtonik, tarek, eric.araujo, r.david.murray, alexis
2012-09-09 16:09:58darabossetmessageid: <1347206998.28.0.821923501054.issue15419@psf.upfronthosting.co.za>
2012-09-09 16:09:57daraboslinkissue15419 messages
2012-09-09 16:09:57daraboscreate