help me plzzzz

87 views
Skip to first unread message

Azar Bavarsad

unread,
May 19, 2014, 2:47:48 AM5/19/14
to ns-3-...@googlegroups.com
hi.i need help very very soon
when i run aodv there is no problem and i see this:
azar@azar-ns3:~/ns3/ns-allinone-3.19/ns-3.19$ ./waf --run aodv
Waf: Entering directory `/home/azar/ns3/ns-allinone-3.19/ns-3.19/build'
Waf: Leaving directory `/home/azar/ns3/ns-allinone-3.19/ns-3.19/build'
'build' finished successfully (7.697s)
Creating 10 nodes 100 m apart.
Starting simulation for 10 s ...
PING  10.0.0.10 56(84) bytes of data.
64 bytes from 10.0.0.10: icmp_seq=0 ttl=56 time=176 ms
64 bytes from 10.0.0.10: icmp_seq=1 ttl=56 time=7 ms
64 bytes from 10.0.0.10: icmp_seq=2 ttl=56 time=7 ms
64 bytes from 10.0.0.10: icmp_seq=3 ttl=56 time=7 ms
--- 10.0.0.10 ping statistics ---
10 packets transmitted, 4 received, 60% packet loss, time 9999ms
rtt min/avg/max/mdev = 7/49.25/176/84.5 ms
azar@azar-ns3:~/ns3/ns-allinone-3.19/ns-3.19$

but when i execute my codes i see this:where is my problem?
azar@azar-ns3:~/ns3/ns-allinone-3.19/ns-3.19$ ./waf --run aodv
Waf: Entering directory `/home/azar/ns3/ns-allinone-3.19/ns-3.19/build'
Traceback (most recent call last):
  File "/home/azar/ns3/ns-allinone-3.19/ns-3.19/.waf-1.7.13-5a064c2686fe54de4e11018d22148cfc/waflib/Scripting.py", line 97, in waf_entry_point
    run_commands()
  File "/home/azar/ns3/ns-allinone-3.19/ns-3.19/.waf-1.7.13-5a064c2686fe54de4e11018d22148cfc/waflib/Scripting.py", line 153, in run_commands
    ctx=run_command(cmd_name)
  File "/home/azar/ns3/ns-allinone-3.19/ns-3.19/.waf-1.7.13-5a064c2686fe54de4e11018d22148cfc/waflib/Scripting.py", line 146, in run_command
    ctx.execute()
  File "/home/azar/ns3/ns-allinone-3.19/ns-3.19/.waf-1.7.13-5a064c2686fe54de4e11018d22148cfc/waflib/Scripting.py", line 351, in execute
    return execute_method(self)
  File "/home/azar/ns3/ns-allinone-3.19/ns-3.19/.waf-1.7.13-5a064c2686fe54de4e11018d22148cfc/waflib/Build.py", line 106, in execute
    self.execute_build()
  File "/home/azar/ns3/ns-allinone-3.19/ns-3.19/.waf-1.7.13-5a064c2686fe54de4e11018d22148cfc/waflib/Build.py", line 109, in execute_build
    self.recurse([self.run_dir])
  File "/home/azar/ns3/ns-allinone-3.19/ns-3.19/.waf-1.7.13-5a064c2686fe54de4e11018d22148cfc/waflib/Context.py", line 128, in recurse
    user_function(self)
  File "/home/azar/ns3/ns-allinone-3.19/ns-3.19/wscript", line 709, in build
    bld.recurse('src')
  File "/home/azar/ns3/ns-allinone-3.19/ns-3.19/.waf-1.7.13-5a064c2686fe54de4e11018d22148cfc/waflib/Context.py", line 128, in recurse
    user_function(self)
  File "/home/azar/ns3/ns-allinone-3.19/ns-3.19/src/wscript", line 316, in build
    bld.recurse(list(all_modules))
  File "/home/azar/ns3/ns-allinone-3.19/ns-3.19/.waf-1.7.13-5a064c2686fe54de4e11018d22148cfc/waflib/Context.py", line 128, in recurse
    user_function(self)
  File "/home/azar/ns3/ns-allinone-3.19/ns-3.19/src/aodv/wscript", line 26, in build
    headers = bld.new_task_gen(features=['ns3header'])
AttributeError: 'BuildContext' object has no attribute 'new_task_gen'

Konstantinos

unread,
May 19, 2014, 4:59:14 AM5/19/14
to ns-3-...@googlegroups.com
You have changed something in the aodv module? In particular, have you changed THE aodv module and copied something you found online from someone else which was developed in an order ns-3 released?

The fact that it has the same name (aodv) does not mean it is the same module. You should read the manual on how you add a new module in NS-3 here 
http://www.nsnam.org/docs/manual/html/new-modules.html

The problem is the wscript file and the structure you use. It has been changed and in particular your error is here

headers = bld.new_task_gen(features=['ns3header'])

Reply all
Reply to author
Forward
0 new messages