ruining python script

61 views
Skip to first unread message

ABDULJABBAR ALSHARIF

unread,
Aug 7, 2023, 7:10:15 AM8/7/23
to ns-3-...@googlegroups.com
hello ,

Does anyone know about such an error? I build an open flow model and configure the python script to get such an error.

Traceback (most recent call last):
  File "/home/genius/workspace/bake/source/ns-3.39/scratch/first.py", line 16, in <module>
    from ns import ns
  File "/home/genius/workspace/bake/source/ns-3.39/build/bindings/python/ns/__init__.py", line 595, in <module>
    ns = load_modules()  # can be imported via 'from ns import ns'
  File "/home/genius/workspace/bake/source/ns-3.39/build/bindings/python/ns/__init__.py", line 467, in load_modules
    cppyy.include(f"ns3/{module}-module.h")
  File "/root/.local/lib/python3.9/site-packages/cppyy/__init__.py", line 245, in include
    raise ImportError('Failed to load header file "%s"%s' % (header, err.err))
ImportError: Failed to load header file "ns3/openflow-module.h"
In file included from input_line_52:1:
In file included from /home/genius/workspace/bake/source/ns-3.39/build/include/ns3/openflow-module.h:6:
In file included from /home/genius/workspace/bake/source/ns-3.39/build/include/ns3/openflow-switch-helper.h:1:
In file included from /home/genius/workspace/bake/source/ns-3.39/src/openflow/helper/openflow-switch-helper.h:24:
In file included from /home/genius/workspace/bake/source/ns-3.39/build/include/ns3/openflow-interface.h:1:
/home/genius/workspace/bake/source/ns-3.39/src/openflow/model/openflow-interface.h:37:10: fatal error: 'openflow/ericsson-ext.h' file not found
#include "openflow/ericsson-ext.h"

Jabbar
" if you want the rainbow you have deal with rains"


Gabriel Ferreira

unread,
Aug 7, 2023, 11:20:46 AM8/7/23
to ns-3-users
You need to include the directory with openflow/ericsson-next.h, before cppyy.include() is called. 
This can be done with the following 
ns.cppyy.add_include_path(...)

That wasn't supposed to happen, but then again, haven't been testing with bake. 

ABDULJABBAR ALSHARIF

unread,
Aug 7, 2023, 3:30:42 PM8/7/23
to ns-3-...@googlegroups.com
 hi, right it works but there's some issue with the Python script for example, 

I attempted to obtain " lte-simple.py " but it shows that the ns application model is not found. I suspect this error may have occurred during the creation of the python script , and the necessary ns model available at runtime 
 error import ns application is not found?

Jabbar
 


track model ns application not available 

" if you want the rainbow you have deal with rains"


--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/312b05f0-4e9a-4ba0-b9a0-ecd3cbae3fd8n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages