I can't use Pyglet 1.2alpha1 (which should be able to run under Py3) from Python 3.
I followed the instructions and installed it correctly, yet it doesn't run on Py3, but I know I installed everything right because I can use it from Python 2.7.
Every time I try to import piglet using the interpreter, I get this error:
>>> 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
Reading the errore message it's quite obvious that the error is in the print being written in Python 2 style (print foo
instead of print(foo)
).
So my question is: is it real that one can run pyglet under Python 3?
I know of people who use it correctly, so what should I do? May it be that there is a wrong version of Pyglet uploaded on the website? Should I convert it with 2to3?