[kepler-users] Python execution within the Kepler Python actor...
Tomasz Żok
tzok at man.poznan.pl
Mon Mar 5 00:22:58 PST 2012
I forgot to attach the log from Kepler in the first message, here it is now,
sorry for double post.
Best regards,
Tomek
On 03/05/12 at 09:14am, Tomasz Żok wrote:
> Hi,
>
> I am aware that this topic is few months old, but I would like to reopen the
> discussion. It seems that the current version of Kepler is still not working
> with Jython 2.5.2
>
> First of all, I have my Kepler from trunk (with Ptolemy set to HEAD revision)
> and it is up-to-date. Here is my Jython version:
>
> $ java -jar ptolemy/src/lib/jython.jar
> Jython 2.5.2 (Release_2_5_2:7206, Mar 2 2011, 23:12:06)
> [OpenJDK 64-Bit Server VM (Oracle Corporation)] on java1.7.0_03-icedtea
>
> However the actor ptolemy.actor.lib.python.PythonScript does not work. When I
> try to instantiate it, I get the following error: (a more detailed log is
> attached)
>
> java.lang.NoClassDefFoundError: org/python/core/PyJavaInstance
>
>
> >From the discussion I assumed there is a workaround implemented in Kepler to
> use PyJavaType.wrapJavaObject instead of PyJavaInstance, but the error I get
> indicates the opposite. So what is the status of PythonScript actor? Is this
> update to Jython 2.5.2 supported?
>
> Best regards,
> Tomek
>
> --
> Tomasz Zok
> Poznan Supercomputing and Networking Center
> ul. Noskowskiego 10, 61-704 Poznan, POLAND
> http://www.man.poznan.pl
> _______________________________________________
> Kepler-users mailing list
> Kepler-users at kepler-project.org
> http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users
--
Tomasz Zok
Poznan Supercomputing and Networking Center
ul. Noskowskiego 10, 61-704 Poznan, POLAND
http://www.man.poznan.pl
-------------- next part --------------
com.microstar.xml.XmlException: XML element "entity" triggers exception. in [external stream] at line 1 and column 86
Caused by:
java.lang.Exception: -- ptolemy.actor.lib.python.PythonScript:
java.lang.NoClassDefFoundError: org/python/core/PyJavaInstance
ptolemy.actor.lib.python.PythonScript: XmlException:
-- no protocol: ptolemy/actor/lib/python/PythonScript.xml
-- XML file not found relative to classpath.
-- /home/tzok/code/kepler-codebase/ptolemy/actor/lib/python/PythonScript.xml
/home/tzok/code/kepler-codebase/ptolemy/actor/lib/python/PythonScript.xml (Nie ma takiego pliku ani katalogu)
in [external stream] at line 1 and column 86
at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:3642)
at com.microstar.xml.XmlParser.parseElement(XmlParser.java:922)
at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1105)
at com.microstar.xml.XmlParser.parseElement(XmlParser.java:925)
at com.microstar.xml.XmlParser.parseDocument(XmlParser.java:481)
at com.microstar.xml.XmlParser.doParse(XmlParser.java:159)
at com.microstar.xml.XmlParser.parse(XmlParser.java:132)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1538)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1510)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1666)
at ptolemy.moml.MoMLChangeRequest._execute(MoMLChangeRequest.java:289)
at ptolemy.kernel.util.ChangeRequest.execute(ChangeRequest.java:171)
at ptolemy.kernel.util.NamedObj.executeChangeRequests(NamedObj.java:738)
at ptolemy.kernel.util.NamedObj.requestChange(NamedObj.java:1778)
at ptolemy.actor.CompositeActor.requestChange(CompositeActor.java:1922)
at ptolemy.vergil.actor.ActorGraphFrame$InstantiateEntityAction.actionPerformed(ActorGraphFrame.java:735)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3312)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2713)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707)
at java.awt.EventQueue.access$000(EventQueue.java:101)
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:680)
at java.awt.EventQueue$4.run(EventQueue.java:678)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:677)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.Exception: -- ptolemy.actor.lib.python.PythonScript:
java.lang.NoClassDefFoundError: org/python/core/PyJavaInstance
ptolemy.actor.lib.python.PythonScript: XmlException:
-- no protocol: ptolemy/actor/lib/python/PythonScript.xml
-- XML file not found relative to classpath.
-- /home/tzok/code/kepler-codebase/ptolemy/actor/lib/python/PythonScript.xml
/home/tzok/code/kepler-codebase/ptolemy/actor/lib/python/PythonScript.xml (Nie ma takiego pliku ani katalogu)
in [external stream] at line 1 and column 86
at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:4146)
at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2694)
... 53 more
Caused by: java.lang.Exception: -- ptolemy.actor.lib.python.PythonScript:
java.lang.NoClassDefFoundError: org/python/core/PyJavaInstance
ptolemy.actor.lib.python.PythonScript: XmlException:
-- no protocol: ptolemy/actor/lib/python/PythonScript.xml
-- XML file not found relative to classpath.
-- /home/tzok/code/kepler-codebase/ptolemy/actor/lib/python/PythonScript.xml
/home/tzok/code/kepler-codebase/ptolemy/actor/lib/python/PythonScript.xml (Nie ma takiego pliku ani katalogu)
in [external stream] at line 1 and column 86
at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:4146)
at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2694)
at com.microstar.xml.XmlParser.parseElement(XmlParser.java:922)
at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1105)
at com.microstar.xml.XmlParser.parseElement(XmlParser.java:925)
at com.microstar.xml.XmlParser.parseDocument(XmlParser.java:481)
at com.microstar.xml.XmlParser.doParse(XmlParser.java:159)
at com.microstar.xml.XmlParser.parse(XmlParser.java:132)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1538)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1510)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1666)
at ptolemy.moml.MoMLChangeRequest._execute(MoMLChangeRequest.java:289)
at ptolemy.kernel.util.ChangeRequest.execute(ChangeRequest.java:171)
at ptolemy.kernel.util.NamedObj.executeChangeRequests(NamedObj.java:738)
at ptolemy.kernel.util.NamedObj.requestChange(NamedObj.java:1778)
at ptolemy.actor.CompositeActor.requestChange(CompositeActor.java:1922)
at ptolemy.vergil.actor.ActorGraphFrame$InstantiateEntityAction.actionPerformed(ActorGraphFrame.java:735)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3312)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2713)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707)
at java.awt.EventQueue.access$000(EventQueue.java:101)
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:680)
at java.awt.EventQueue$4.run(EventQueue.java:678)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:677)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
More information about the Kepler-users
mailing list