Hi, I was trying to run the Discovery web service inside NOX using the following command, and I got the accompanying error: ./nox_core -v -i ptcp:2525 monitor discoveryws
00071|nox|ERR:Cannot change the state of 'discoveryws' to INSTALLED: 'discoveryws' ran into an error: cannot import a Python module 'nox.netapps.discovery.discoveryws': Traceback (most recent call last): File "./nox/netapps/discovery/discoveryws.py", line 26, in <module> from nox.webapps.webserver.webservice import json_parse_message_body ImportError: No module named webservice On looking at nox/netapps/discovery/discoveryws.py, I see that webservice is referenced erroneously to be inside webserver (lines 26, 27). The following change makes it run fine: diff --git a/src/nox/netapps/discovery/discoveryws.py b/src/nox/netapps/discovery/discoveryws.py index 610308c..51f26ce 100644 --- a/src/nox/netapps/discovery/discoveryws.py +++ b/src/nox/netapps/discovery/discoveryws.py @@ -23,8 +23,8 @@ from nox.netapps.switchstats.switchstats import switchstats from nox.webapps.webservice import webservice -from nox.webapps.webserver.webservice import json_parse_message_body -from nox.webapps.webserver.webservice import NOT_DONE_YET +from nox.webapps.webservice.webservice import json_parse_message_body +from nox.webapps.webservice.webservice import NOT_DONE_YET from nox.lib.core import * Did I find a bug in the code, or am I doing something wrong here? I made sure that I am synced with the latest git revision. Thanks, Karthik -- Karthik Swaminathan Nagaraj, PhD student Purdue University, Computer Science http://www.cs.purdue.edu/~knagara _______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org