We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpProcessing Implementations › python syntax via jython
Pages: 1 2 
python syntax via jython (Read 13242 times)
Re: python syntax via jython
Reply #15 - May 9th, 2010, 3:16pm
 
hi,
I'd love to give jython + processing a try, but when running the example (from the first posting), I get the following error:

Code:

Traceback (most recent call last):
 File "processing.py", line 16, in <module>
   pawt.test(HelloProcessing())
 File "C:\Program Files (x86)\jython2.5.1\Lib\pawt\__init__.py", line 7, in test
   panel.init()
       at processing.core.PApplet.makeGraphics(Unknown Source)
       at org.python.proxies.__main__$HelloProcessing$2.makeGraphics(Unknown Source)
       at processing.core.PApplet.init(Unknown Source)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)

java.lang.RuntimeException: java.lang.RuntimeException: You need to use "Import Library" to add processing.core.PGraphicsJava2D to your sketch.


(jython 2.5.1, processing 1.1)

does anyone know what the problem is?
thanks!
Re: python syntax via jython
Reply #16 - May 12th, 2010, 3:07pm
 
solved.
+ I should have looked here first:
http://processing.org/hacks/hacks:livecoding#python-jython
Re: python syntax via jython
Reply #17 - Jun 17th, 2010, 8:36am
 
tuhrelorit, I am having exactly the same problem. How exactly did you solve it - I couldn't find the solution under the link you posted.

best,
opcode
Pages: 1 2