Re: [nox-dev] Error on importing nox/netapps/monitoring.py
I added "monitoring" to the dependency list of my component and I no longer get an ImportError. Thanks Murphy! - Dushyant - Original Message - From: "Murphy McCauley" To: "Dushyant Arora" Cc: "Dushyant Arora" , nox-dev@noxrepo.org Sent: Friday, December 30, 2011 2:24:57 AM Subject: Re: [nox-dev] Error on importing nox/netapps/monitoring.py 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: > > 1|nox|INFO:Starting nox_core > (/home/openflow/noxcore/build/src/.libs/lt-nox_core) > 2|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 > from nox.netapps.monitoring.monitoring import Monitoring > File "./nox/netapps/monitoring/monitoring.py", line 33, in > from nox.coreapps.messenger.pyjsonmsgevent import JSONMsg_event > File "./nox/coreapps/messenger/pyjsonmsgevent.py", line 25, in > _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
Re: [nox-dev] Error on importing nox/netapps/monitoring.py
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 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: > > > > 1|nox|INFO:Starting nox_core > > (/home/openflow/noxcore/build/src/.libs/lt-nox_core) > > 2|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 > > from nox.netapps.monitoring.monitoring import Monitoring > > File "./nox/netapps/monitoring/monitoring.py", line 33, in > > > > from nox.coreapps.messenger.pyjsonmsgevent import JSONMsg_event > > File "./nox/coreapps/messenger/pyjsonmsgevent.py", line 25, in > > > > _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
Re: [nox-dev] Error on importing nox/netapps/monitoring.py
No. - Dushyant 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: > > 1|nox|INFO:Starting nox_core > (/home/openflow/noxcore/build/src/.libs/lt-nox_core) > 2|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 > from nox.netapps.monitoring.monitoring import Monitoring > File "./nox/netapps/monitoring/monitoring.py", line 33, in > from nox.coreapps.messenger.pyjsonmsgevent import JSONMsg_event > File "./nox/coreapps/messenger/pyjsonmsgevent.py", line 25, in > _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
Re: [nox-dev] Error on importing nox/netapps/monitoring.py
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: > > 1|nox|INFO:Starting nox_core > (/home/openflow/noxcore/build/src/.libs/lt-nox_core) > 2|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 > from nox.netapps.monitoring.monitoring import Monitoring > File "./nox/netapps/monitoring/monitoring.py", line 33, in > from nox.coreapps.messenger.pyjsonmsgevent import JSONMsg_event > File "./nox/coreapps/messenger/pyjsonmsgevent.py", line 25, in > > _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
[nox-dev] Error on importing nox/netapps/monitoring.py
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: 1|nox|INFO:Starting nox_core (/home/openflow/noxcore/build/src/.libs/lt-nox_core) 2|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 from nox.netapps.monitoring.monitoring import Monitoring File "./nox/netapps/monitoring/monitoring.py", line 33, in from nox.coreapps.messenger.pyjsonmsgevent import JSONMsg_event File "./nox/coreapps/messenger/pyjsonmsgevent.py", line 25, in _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