Problem trying to run script

Hello, I am having a problem with kwatters script. When I run it, this is the error that I get

ear.addListener("publishText",, "heard");

Traceback (most recent call last):  File string, line 60, in moduleNameError: name python is not defined   at org.python.core.Py.NameError(        at org.python.core.PyFrame.getname(              at org.python.pycode._pyx3.f$0(string:98) at org.python.pycode._pyx3.call_function(string)              at             at at org.python.core.Py.runCode(           at org.python.core.Py.exec(              at org.python.util.PythonInterpreter.exec(        at org.myrobotlab.service.Python$

kwatters's picture

More info needed.

How are you launching it?  Are you using the latest build?

"python" is a default service that launches when you run myrobotlab from the command line like the following:

> java -jar myrobotlab.jar 

It's an odd error that you're seeing, it seems to indicate that the python service wasn't started.


The only thing in the script that I see that might be an issue is the following:

You could replace the following line:

ear.addListener("publishText",, "heard");


ear.addListener("publishText", "python", "heard");

(Or just remove this line all together because it's only used for debugging speech recognition back in python land.)

BillC's picture

MRL GUI 2016.06.10

I am using Eclipse Java Mars, I go into eclipse and press PF11

that will bring up the MRL menu I start the python service and then open the

I am using the latest build of MRL GUI 2016.06.10

kwatters's picture

Did you try the suggestion?

Hi BillC,  I saw you commented again, did my recommendation of commenting out that line work?  or did you try changing it to say "python" ?


BillC's picture

Sorry I did not answer you before now

Sorry, I could not answer you before now.

Yes I did try commenting out that line. However It did not work