Hi my friends,

problem in Python tab (InMoov):

every time with any gesture, this error. Where am I wrong?

------Traceback (most recent call last):
File string, line 1, in moduleNameError: name i01 is not defined   
at org.python.core.Py.NameError(Py.java:284)   
at org.python.core.PyFrame.getname(PyFrame.java:257)   
at org.python.pycode._pyx317.f$0(string:4)   
at org.python.pycode._pyx317.call_function(string)   
at org.python.core.PyTableCode.call(PyTableCode.java:167)   
at org.python.core.PyCode.call(PyCode.java:18)   
at org.python.core.Py.runCode(Py.java:1386)   
at org.python.core.Py.exec(Py.java:1430)   
at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:267)   
at org.myrobotlab.service.Python$PIThread.run(Python.java:160)------

Thanks for your help

ps: where can i download Nixie for testing?

Umberto

 

AutonomicPerfe…

5 years 8 months ago

Your python code is trying to access a variable that does not exist (i01). You need to define the variable before you can access it. Add this to the top of your script:

i01 = Runtime.getService('i01')

If you want your script to run before the i01 service is started use this line instead of the above one:

i01 = Runtime.createAndStart('i01', 'InMoov')

DieffeU

5 years 8 months ago

In reply to by AutonomicPerfe…

thanks, now it works but blocks all the mlr. No problem, I needed that of python tab only. Thanks again