You should.  If your component interacts with the monitoring component, you 
should be running the monitoring component -- your component is dependent on it.

The proper way to do this is to add "monitoring" to the list of dependencies in 
your component's meta.json.  As a shortcut, you can just specify monitoring on 
the commandline along the lines of:  ./nox_core monitoring NOXSwitch

Hope that helps.

-- Murphy

On Dec 29, 2011, at 11:18 PM, Dushyant Arora wrote:

> No.
> 
> On Fri, Dec 30, 2011 at 2:16 AM, Murphy McCauley <jam...@nau.edu> wrote:
> Are you also running the monitoring component, either on the commandline 
> before your component or by adding it as a dependency in your component's 
> meta.json?
> 
> -- Murphy
> 
> On Dec 29, 2011, at 10:25 PM, Dushyant Arora wrote:
> 
> > Hello,
> >
> > I have created a NOX application NOXSwitch.py which calls 
> > send_flow_stats_request() from the module monitoring.py. However I get the 
> > following ImportError:
> >
> > 00001|nox|INFO:Starting nox_core 
> > (/home/openflow/noxcore/build/src/.libs/lt-nox_core)
> > 00002|nox|ERR:Cannot change the state of 'NOXSwitch' to INSTALLED:
> > 'NOXSwitch' ran into an error:
> >         cannot import a Python module 'nox.coreapps.examples.NOXSwitch':
> >         Traceback (most recent call last):
> >           File "./nox/coreapps/examples/NOXSwitch.py", line 37, in <module>
> >             from nox.netapps.monitoring.monitoring import Monitoring
> >           File "./nox/netapps/monitoring/monitoring.py", line 33, in 
> > <module>
> >             from nox.coreapps.messenger.pyjsonmsgevent import JSONMsg_event
> >           File "./nox/coreapps/messenger/pyjsonmsgevent.py", line 25, in 
> > <module>
> >             _pyjsonmsgevent = swig_import_helper()
> >           File "./nox/coreapps/messenger/pyjsonmsgevent.py", line 21, in 
> > swig_import_helper
> >             _mod = imp.load_module('_pyjsonmsgevent', fp, pathname, 
> > description)
> >         ImportError: ./nox/coreapps/messenger/_pyjsonmsgevent.so: undefined 
> > symbol: vigil::JSONMsg_event::JSONMsg_event(vigil::core_message const*)
> >
> > How do I correct this?
> >
> > I am trying to follow this earlier thread: 
> > http://noxrepo.org/pipermail/nox-dev/2011-November/008246.html
> >
> > Thanks,
> >
> > Dushyant
> > _______________________________________________
> > nox-dev mailing list
> > nox-dev@noxrepo.org
> > http://noxrepo.org/mailman/listinfo/nox-dev
> 
> 

_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev

Reply via email to