Python 3 support?

85 views
Skip to first unread message

Ralph Moritz

unread,
Nov 7, 2011, 5:57:47 AM11/7/11
to pyglet-users
Hi everyone,

I'd just like to know if the 1.1.4 release supports Python 3, or
should I just wait for 1.2 to be released? Is there anything I can
help test to get 1.2 out the door?

Cheers,
Ralph

Andreas Schiefer

unread,
Nov 7, 2011, 7:12:27 AM11/7/11
to pyglet...@googlegroups.com
No, pyglet 1.1.4 does not support Python 3. But you can already use the 1.2 development version which you can get at http://code.google.com/p/pyglet/source/checkout - by testing the latest version (and maybe fixing some bugs) you also help getting it released.
As a general test, you can run the test suite with "python tests/test.py" and report your results.

Andy

Ralph Moritz

unread,
Nov 8, 2011, 3:52:56 AM11/8/11
to pyglet-users
On Nov 7, 2:12 pm, Andreas Schiefer <andreas.schie...@gmail.com>
wrote:

> As a general test, you can run the test suite with "python tests/test.py"
> and report your results.

Test window.WINDOW_OPEN fails with the following output:

Traceback (most recent call last):
File "tests/test.py", line 525, in <module>
main()
File "tests/test.py", line 521, in main
component.test(options)
File "tests/test.py", line 291, in test
child.test(options)
File "tests/test.py", line 291, in test
child.test(options)
File "tests/test.py", line 291, in test
child.test(options)
File "tests/test.py", line 242, in test
eval(input('Press return to begin test...'))
File "<string>", line 0

^
SyntaxError: unexpected EOF while parsing

All the Traceback (most recent call last):
File "tests/test.py", line 525, in <module>
main()
File "tests/test.py", line 521, in main
component.test(options)
File "tests/test.py", line 291, in test
child.test(options)
File "tests/test.py", line 291, in test
child.test(options)
File "tests/test.py", line 291, in test
child.test(options)
File "tests/test.py", line 242, in test
eval(input('Press return to begin test...'))
File "<string>", line 0

^
SyntaxError: unexpected EOF while parsing

I've run the following examples:

* opengl.py OK
* text_input.py OK
* events.py OK
* input.py OK (although Kaspersky flags it as a threat!)
* graphics.py OK
* window_platform_event.py CRASH

Traceback (most recent call last):
File "window_platform_event.py", line 51, in <module>
from pyglet.window.carbon import *
File "C:\Python32\lib\site-packages\pyglet\window\carbon
\__init__.py", line 52, in <module>
from pyglet.canvas.carbon import CarbonCanvas
File "C:\Python32\lib\site-packages\pyglet\canvas\carbon.py", line
12, in <module>
from pyglet.libs.darwin import *
File "C:\Python32\lib\site-packages\pyglet\libs\darwin\__init__.py",
line 17, in <module>
framework='/System/Library/Frameworks/Carbon.framework')
File "C:\Python32\lib\site-packages\pyglet\lib.py", line 124, in
load_library
raise ImportError('Library "%s" not found.' % names[0])
IndexError: tuple index out of range

* show_input.py OK (flagged as threat by Kaspersky)
* timer.py FAIL (messed up display, didn't start timer)

Andreas Schiefer

unread,
Nov 8, 2011, 7:06:59 AM11/8/11
to pyglet...@googlegroups.com
As a workaround for the first issue, you can try to run the tests with:
python tests/tests.py --no-interactive

Anyway, I'll have a look at these issues when I find some time.


Andy

Andreas Schiefer

unread,
Nov 8, 2011, 1:36:48 PM11/8/11
to pyglet...@googlegroups.com
I did a short test and couldn't reproduce the first issue on Windows 7 with Python 3.2.2. 
Which OS and Python version are you running?

Regarding the second issue, the window_platform_event.py example also crashes with Python 2.x - I guess the example is just buggy or outdated.


Andy
Reply all
Reply to author
Forward
0 new messages