Hi all,

I am trying to create a simple component (python) that get the routes from
the connected switch. When I am trying to run the component it gives me
Import error

 ./nox_core -i ptcp:7788 -v pywaqas
00001|nox|INFO:Starting nox_core (/home/nox/src/.libs/lt-nox_core)
00002|pyrt|DBG:Loading a component description file
'nox/coreapps/simple_c_py_app/meta.xml'.
00003|pyrt|DBG:Loading a component description file
'nox/coreapps/switch/meta.xml'.
00004|pyrt|DBG:Loading a component description file
'nox/coreapps/testharness/meta.xml'.
00005|pyrt|DBG:Loading a component description file
'nox/coreapps/simple_c_app/meta.xml'.
00006|pyrt|DBG:Loading a component description file
'nox/coreapps/pyrt/meta.xml'.
00007|pyrt|DBG:Loading a component description file
'nox/coreapps/hub/meta.xml'.
00008|pyrt|DBG:Loading a component description file
'nox/coreapps/coretests/meta.xml'.
00009|pyrt|DBG:Loading a component description file
'nox/coreapps/examples/meta.xml'.
00010|pyrt|DBG:Loading a component description file
'nox/coreapps/examples/t/meta.xml'.
00011|pyrt|DBG:Loading a component description file
'nox/netapps/discovery/meta.xml'.
00012|pyrt|DBG:Loading a component description file
'nox/netapps/switchstats/meta.xml'.
00013|pyrt|DBG:Loading a component description file
'nox/netapps/topology/meta.xml'.
00014|pyrt|DBG:Loading a component description file
'nox/netapps/tests/meta.xml'.
00015|pyrt|DBG:Loading a component description file
'nox/netapps/data/meta.xml'.
00016|pyrt|DBG:Loading a component description file
'nox/netapps/storage/meta.xml'.
00017|pyrt|DBG:Loading a component description file
'nox/netapps/storage/t/meta.xml'.
00018|pyrt|DBG:Loading a component description file
'nox/netapps/switch_management/meta.xml'.
00019|pyrt|DBG:Loading a component description file
'nox/netapps/flow_fetcher/meta.xml'.
00020|pyrt|DBG:Loading a component description file
'nox/netapps/routing/meta.xml'.
00021|pyrt|DBG:Loading a component description file
'nox/netapps/bindings_storage/meta.xml'.
00022|pyrt|DBG:Loading a component description file
'nox/netapps/bindings_storage/t/meta.xml'.
00023|pyrt|DBG:Loading a component description file
'nox/netapps/authenticator/meta.xml'.
00024|pyrt|DBG:Loading a component description file
'nox/netapps/user_event_log/meta.xml'.
00025|pyrt|DBG:Loading a component description file
'nox/webapps/webserver/meta.xml'.
00026|pyrt|DBG:Loading a component description file
'nox/webapps/webservice/meta.xml'.
00027|pyrt|DBG:Loading a component description file
'nox/webapps/miscws/meta.xml'.
00028|pycomponent|DBG:Importing Python module nox.coreapps.examples.pywaqas
00029|nox|DBG:Application installation report:
00030|nox|DBG:built-in event dispatcher:
        Current state: INSTALLED
        Required state: INSTALLED
        Dependencies:

00031|nox|DBG:pywaqas:
        Current state: ERROR
        Required state: INSTALLED
        Dependencies: 'python' OK, 'python' OK
        Error:
                cannot import a Python module
'nox.coreapps.examples.pywaqas':
                Traceback (most recent call last):
                  File "./nox/coreapps/examples/pywaqas.py", line 7, in
<module>
                    from nox.netapps.authenticator.pyflowutil import
Flow_in_event
                  File "./nox/netapps/authenticator/pyflowutil.py", line 7,
in <module>
                    import _pyflowutil
                ImportError: ./nox/netapps/authenticator/_pyflowutil.so:
undefined symbol: vigil::Flow_expr::set_pred(unsigned int,
vigil::Flow_expr::Pred_t, long long)


00032|nox|DBG:built-in DSO deployer:
        Current state: INSTALLED
        Required state: INSTALLED
        Dependencies:

00033|nox|DBG:python:
        Current state: INSTALLED
        Required state: INSTALLED
        Dependencies:

00034|nox|ERR:Cannot change the state of 'pywaqas' to INSTALLED:
'pywaqas' ran into an error:
        cannot import a Python module 'nox.coreapps.examples.pywaqas':
        Traceback (most recent call last):
          File "./nox/coreapps/examples/pywaqas.py", line 7, in <module>
            from nox.netapps.authenticator.pyflowutil import Flow_in_event
          File "./nox/netapps/authenticator/pyflowutil.py", line 7, in
<module>
            import _pyflowutil
        ImportError: ./nox/netapps/authenticator/_pyflowutil.so: undefined
symbol: vigil::Flow_expr::set_pred(unsigned int, vigil::Flow_expr::Pred_t,
long long)

but when I initiate the pyrouting module before running the pywaqas
component it runs without any errors.

00036|pycomponent|DBG:Importing Python module
nox.netapps.data.datatypes_impl
00037|pycomponent|DBG:Importing Python module
nox.netapps.data.datacache_impl
00038|pycomponent|DBG:Importing Python module
nox.netapps.user_event_log.pyuser_event_log
00039|pycomponent|DBG:Importing Python module
nox.netapps.discovery.discovery
00040|pycomponent|DBG:Importing Python module nox.netapps.routing.pyrouting
00041|pycomponent|DBG:Importing Python module nox.coreapps.examples.pywaqas
00042|nox|DBG:Application installation report:
00043|nox|DBG:storage-common:
        Current state: INSTALLED
        Required state: INSTALLED
        Dependencies:

00044|nox|DBG:link event:
        Current state: INSTALLED
        Required state: INSTALLED
        Dependencies:

00045|nox|DBG:data_cache:
        Current state: INSTALLED
        Required state: INSTALLED
        Dependencies: 'datatypes' OK

00046|nox|DBG:python:
        Current state: INSTALLED
        Required state: INSTALLED
        Dependencies:

00047|nox|DBG:pydatatypes:
        Current state: INSTALLED
        Required state: INSTALLED
        Dependencies: 'datatypes' OK, 'python' OK

00048|nox|DBG:pyrouting:
        Current state: INSTALLED
        Required state: INSTALLED
        Dependencies: 'routing_module' OK, 'python' OK

00049|nox|DBG:discovery:
        Current state: INSTALLED
        Required state: INSTALLED
        Dependencies: 'link event' OK, 'pybindings_storage' OK,
'pyuser_event_log' OK, 'python' OK

00050|nox|DBG:bindings_storage:
        Current state: INSTALLED
        Required state: INSTALLED
        Dependencies: 'storage-backend' OK, 'datatypes' OK, 'data_cache' OK

00051|nox|DBG:topology:
        Current state: INSTALLED
        Required state: INSTALLED
        Dependencies: 'discovery' OK

00052|nox|DBG:storage-backend:
        Current state: INSTALLED
        Required state: INSTALLED
        Dependencies: 'storage-common' OK

00053|nox|DBG:pyuser_event_log:
        Current state: INSTALLED
        Required state: INSTALLED
        Dependencies: 'user_event_log' OK, 'pydatatypes' OK, 'pydatacache'
OK, 'python' OK

00054|nox|DBG:pywaqas:
        Current state: INSTALLED
        Required state: INSTALLED
        Dependencies: 'python' OK, 'python' OK

00055|nox|DBG:built-in DSO deployer:
        Current state: INSTALLED
        Required state: INSTALLED
        Dependencies:

00056|nox|DBG:nat_enforcer:
        Current state: INSTALLED
        Required state: INSTALLED
        Dependencies: 'flow_util' OK

00057|nox|DBG:pydatacache:
        Current state: INSTALLED
        Required state: INSTALLED
        Dependencies: 'data_cache' OK, 'python' OK

00058|nox|DBG:datatypes:
        Current state: INSTALLED
        Required state: INSTALLED
        Dependencies:

00059|nox|DBG:built-in event dispatcher:
        Current state: INSTALLED
        Required state: INSTALLED
        Dependencies:

Because when we run the sample_routing module we dont have to initiate the
pyrouting module why is it so ?
_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org

Reply via email to