Python tab error

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(   
at org.python.core.PyFrame.getname(   
at org.python.pycode._pyx317.f$0(string:4)   
at org.python.pycode._pyx317.call_function(string)   
at org.python.core.Py.runCode(   
at org.python.core.Py.exec(   
at org.python.util.PythonInterpreter.exec(   
at org.myrobotlab.service.Python$

Thanks for your help

ps: where can i download Nixie for testing?



AutonomicPerfectionist's picture

Undefined name

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')