Python 3 pyprocessing

236 views
Skip to first unread message

anatoly techtonik

unread,
Jul 22, 2012, 2:09:27 PM7/22/12
to pyprocess...@googlegroups.com
Hi,

With pyglet 1.2alpha1 and attached patch, pyprocessing now works when everything is installed with Python 3. =)

P.S. I run out of time, so the patch is not complete - it needs a followup - for example there are still some errors when division is involved, because in Python 3 division returns floats. 

Ernesto Costa

unread,
Sep 13, 2013, 5:46:23 AM9/13/13
to pyprocess...@googlegroups.com
Hi

Some months ago I succeeded installing pyprocessing to run with python 3.2.3. The process involved the previous installation of pyglet '1.2alpha1' as you did. In what concerns pyprocessing itself I had to:

1- use the app 2to3-3.2 to convert the code to the 3.2 syntax.
$ 2to3-3.2 -w -n pyprocessing

(Here pyprocessing is the folder where all pyprocessing files are.)

2- Edit manually some files because of ctypes problems, due to the change of meaning of the divisions operators, namely:
 function on_resize (in file  __init__.py), primitives.py, PVector: change "/" to "//"

I played a little bit with it, wrote versions for some of the "normal" processing examples. I attach one of those examples. 
Of course pyprocessing is slow, notwithstanding for exemplifying concepts and teaching purposes is very good.

Ernesto Costa
artificial_ant.py
Reply all
Reply to author
Forward
0 new messages