Message170113
| 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. |
|