Error using python run NS-3

85 views
Skip to first unread message

Nguyễn Tấn Xuân (Xuân)

unread,
Sep 3, 2023, 10:12:55 AM9/3/23
to ns-3-users
Hello everyone, 
I try using python to run NS-3 from this code : https://github.com/knonm/ns3-manet-compare/tree/master
I'm following step:

Setup:
-  python3 -m pip install --user cppyy
- pip install --user ns3
- ./ns3 configure --enable-python-bindings
Run:  ./ns3 run manet_compare/manet_routing_compare.py

but is show error result:

Trace back (most recent call last):

import ns.aodv
ModuleNotFoundError: No module named 'ns.aodv'


Thank you. 


Gabriel Ferreira

unread,
Sep 3, 2023, 12:11:09 PM9/3/23
to ns-3-users
Choose one, you install the packaged version from pip, or built it from source using the ns3 script. 

Not both. 

Then, you use
 import ns from ns #ns.aodv is an attribute of ns namespace object, which is created by the ns module 

ABDULJABBAR ALSHARIF

unread,
Sep 3, 2023, 2:04:12 PM9/3/23
to ns-3-...@googlegroups.com

Gabriel Ferreira how are you doing do you have any idea about implementing the 


erliest dead lien first  scheduling algorithm  in terms of LTE and how it will work 


Jabbar

" 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/ae2a115b-f91c-4125-9d50-095ef0fafae0n%40googlegroups.com.

ABDULJABBAR ALSHARIF

unread,
Sep 3, 2023, 2:13:15 PM9/3/23
to ns-3-...@googlegroups.com
recofigure and build it will work i got same error 

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



Nguyễn Tấn Xuân

unread,
Sep 5, 2023, 9:03:38 AM9/5/23
to ns-3-users
Thank you.

Vào lúc 23:11:09 UTC+7 ngày Chủ Nhật, 3 tháng 9, 2023, Gabriel Ferreira đã viết:
Reply all
Reply to author
Forward
0 new messages