[JdeRobot] VisualStates

Jesus Saiz jesussaizcolomina at gmail.com
Fri Nov 17 20:36:41 CET 2017


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gsyc.urjc.es/pipermail/jde-developers/attachments/20171117/f6b14e68/attachment.html>


More information about the Jde-developers mailing list