import ns.netanim - No module named netanim error

76 views
Skip to first unread message

mand...@gmail.com

unread,
Aug 11, 2018, 1:13:47 AM8/11/18
to ns-3-users
Hi team,

I have created a python file which is going to use netanim module. Then I tried to import netanim module which is located in outside the ns3-dev-git folder using `import ns.netanim`. But when I run the python file it is giving an error saying no module named netanim. But when I run the cpp file which includes netanim, it will run finely. So there may be a python binding issue. Anyone know where should it changes or any different solution?

Thanks & Regards,
Mandula

weilin zhong

unread,
Aug 11, 2018, 3:56:31 PM8/11/18
to ns-3-users
Hi Mandula,

Netanim is only support in c++. Maybe you can use matplotlib.pyplot? There is an example in src/core/examples/sample-rng-plot.py.

Best wishes,
Weilin
Reply all
Reply to author
Forward
0 new messages