我在ubuntu 12.04中使用ns-3.16。我对python和ns3都是新手。当我运行this ./waf (或任何其他waf命令)时,它会生成以下代码:
Waf: Entering directory `/home/hp/ns-3.16-git-master/build'
Waf: Leaving directory `/home/hp/ns-3.16-git-master/build'
Traceback (most recent call last):
File "/home/hp/ns-3.16-git-master/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Scripting.py", line 97, in waf_entry_point
run_commands()
File "/home/hp/ns-3.16-git-master/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Scripting.py", line 151, in run_commands
run_command(cmd_name)
File "/home/hp/ns-3.16-git-master/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Scripting.py", line 143, in run_command
ctx.execute()
File "/home/hp/ns-3.16-git-master/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Scripting.py", line 345, in execute
return execute_method(self)
File "/home/hp/ns-3.16-git-master/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Build.py", line 98, in execute
self.execute_build()
File "/home/hp/ns-3.16-git-master/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Build.py", line 107, in execute_build
self.compile()
File "/home/hp/ns-3.16-git-master/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Build.py", line 182, in compile
self.producer.start()
File "/home/hp/ns-3.16-git-master/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Runner.py", line 149, in start
self.refill_task_list()
File "/home/hp/ns-3.16-git-master/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Runner.py", line 98, in refill_task_list
self.outstanding.extend(self.biter.next())
File "/home/hp/ns-3.16-git-master/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Build.py", line 396, in get_build_iterator
self.post_group()
File "/home/hp/ns-3.16-git-master/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Build.py", line 380, in post_group
f()
File "/home/hp/ns-3.16-git-master/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/extras/compat15.py", line 114, in post
return old_post(self)
File "/home/hp/ns-3.16-git-master/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/TaskGen.py", line 110, in post
v()
File "/home/hp/ns-3.16-git-master/src/wscript", line 436, in apply_ns3header
dst_node = ns3_dir_node.find_or_declare(src_node.name)
AttributeError: 'NoneType' object has no attribute 'find_or_declare我应该如何对此进行故障排除?
发布于 2014-06-30 14:58:51
这只是意味着您的ns3_dir_node为None。因此,它没有find_or_declare方法。你必须查看你的脚本来找出为什么你的ns3_dir_node id为None。
https://stackoverflow.com/questions/24446345
复制相似问题