'module' object has no attribute 'NqosWifiMacHelper'

49 views
Skip to first unread message

mand...@gmail.com

unread,
Aug 8, 2018, 12:37:17 AM8/8/18
to ns-3-users
Hi team,

I have created a python file and included the following lines.

wifiPhy = ns.wifi.YansWifiPhyHelper.Default()
wifiMac = ns.wifi.NqosWifiMacHelper.Default()

When I run the python file, even it executes above the first line, it will fail to execute the second line and displaying the following error. 

AttributeError: 'module' object has no attribute 'NqosWifiMacHelper'

When I run the relevant c++ file which includes the following, it will run without errors.

YansWifiPhyHelper wifiPhy =  YansWifiPhyHelper::Default ();
NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default ();

So anyone can help me to figure it out this issue?

Thanks & Regards,
Mandula


Sebastien Deronne

unread,
Aug 8, 2018, 2:33:29 PM8/8/18
to ns-3-users
The API has been changed, please check documentation and example.
Reply all
Reply to author
Forward
0 new messages