[JdeRobot] VisualStates

Okan Aşık asik.okan at gmail.com
Sat Nov 18 14:03:42 CET 2017


Dear Jesus,

The older examples do not work with the current version of the tool due to
the changes on the xml file format. Unfortunately, there is not any example
right now but, in the following week, I will add some examples and provide
a simple tutorials for using the visualStates tool.

Best,

On Fri, Nov 17, 2017 at 10:36 PM, Jesus Saiz <jesussaizcolomina at gmail.com>
wrote:

> Hi to all,
>
> I am trying to use the component VisualStates on my computer but I can't
> run any example. When I open the file .xml to create my own automata I
> get the following error:
>
>
> Traceback (most recent call last):
>   File "/opt/jderobot/lib/python2.7/visualStates_py/gui/visualstates.py",
> line 197, in openAction
>     (self.rootState, self.config, self.libraries) =
> self.fileManager.open(fileDialog.selectedFiles()[0])
>   File "/opt/jderobot/lib/python2.7/visualStates_py/gui/filemanager.py",
> line 68, in open
>     rootState.parse(rootNode)
>   File "/opt/jderobot/lib/python2.7/visualStates_py/gui/state.py", line
> 121, in parse
>     if len(stateElement.getElementsByTagName('functions')[0].childNodes)
> > 0:
> IndexError: list index out of range
> /opt/jderobot/bin/visualStates_py: línea 3: 15863 Abortado
> (`core' generado) python /opt/jderobot/lib/python2.7/visualStates_py/visualStates.py
> $*
>
>
> Moreover when I create my awn code with VisualStates and I try to save it, appears
> that:
>
>
> Traceback (most recent call last):
>   File "/opt/jderobot/lib/python2.7/visualStates_py/gui/visualstates.py",
> line 223, in saveAsAction
>     self.fileManager.save(self.rootState, self.config, self.libraries)
>   File "/opt/jderobot/lib/python2.7/visualStates_py/gui/filemanager.py",
> line 44, in save
>     root.appendChild(config.createNode(doc))
> AttributeError: 'NoneType' object has no attribute 'createNode'
> /opt/jderobot/bin/visualStates_py: línea 3: 16112 Abortado
> (`core' generado) python /opt/jderobot/lib/python2.7/visualStates_py/visualStates.py
> $*
>
>
> Someone knows if the tool for python is updated or has an example that
> works.
>
> Regards and thanks.
>
> _______________________________________________
> Jde-developers mailing list
> Jde-developers at gsyc.urjc.es
> https://gsyc.urjc.es/cgi-bin/mailman/listinfo/jde-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gsyc.urjc.es/pipermail/jde-developers/attachments/20171118/a9319b92/attachment.html>


More information about the Jde-developers mailing list