Actions
Bug #3493
closedBuild not working when using Python 3.x
Start date:
03/02/2016
Due date:
% Done:
100%
Estimated time:
Description
Command:
./waf configure build
Expected: successful build
Actual:
Traceback (most recent call last):
File "/home/davide/NFD/.waf3-1.8.9-8a9ccbc1c5d3936b0b08e972e4883a9a/waflib/Scripting.py", line 103, in waf_entry_point
run_commands()
File "/home/davide/NFD/.waf3-1.8.9-8a9ccbc1c5d3936b0b08e972e4883a9a/waflib/Scripting.py", line 164, in run_commands
ctx=run_command(cmd_name)
File "/home/davide/NFD/.waf3-1.8.9-8a9ccbc1c5d3936b0b08e972e4883a9a/waflib/Scripting.py", line 155, in run_command
ctx.execute()
File "/home/davide/NFD/.waf3-1.8.9-8a9ccbc1c5d3936b0b08e972e4883a9a/waflib/Scripting.py", line 366, in execute
return execute_method(self)
File "/home/davide/NFD/.waf3-1.8.9-8a9ccbc1c5d3936b0b08e972e4883a9a/waflib/Build.py", line 106, in execute
self.execute_build()
File "/home/davide/NFD/.waf3-1.8.9-8a9ccbc1c5d3936b0b08e972e4883a9a/waflib/Build.py", line 109, in execute_build
self.recurse([self.run_dir])
File "/home/davide/NFD/.waf3-1.8.9-8a9ccbc1c5d3936b0b08e972e4883a9a/waflib/Context.py", line 133, in recurse
user_function(self)
File "/home/davide/NFD/wscript", line 225, in build
bld.recurse("tests")
File "/home/davide/NFD/.waf3-1.8.9-8a9ccbc1c5d3936b0b08e972e4883a9a/waflib/Context.py", line 133, in recurse
user_function(self)
File "/home/davide/NFD/tests/wscript", line 45, in build
"rib": "NFD RIB Tests"}.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'
Updated by Davide Pesavento over 8 years ago
$ git grep iteritems
.waf-tools/doxygen.py: for k, v in self.generator.pars.iteritems():
tests/other/wscript: for module, name in {"cs-benchmark": "CS Benchmark"}.iteritems():
tests/wscript: "rib": "NFD RIB Tests"}.iteritems():
Updated by Davide Pesavento over 8 years ago
- Subject changed from tests/wscript is incompatible with python3 - AttributeError: 'dict' object has no attribute 'iteritems' to tests/wscript is incompatible with python3: 'dict' object has no attribute 'iteritems'
Updated by susmit shannigrahi over 8 years ago
Davide Pesavento wrote:
$ git grep iteritems .waf-tools/doxygen.py: for k, v in self.generator.pars.iteritems(): tests/other/wscript: for module, name in {"cs-benchmark": "CS Benchmark"}.iteritems(): tests/wscript: "rib": "NFD RIB Tests"}.iteritems():
python3 replaces iteritems() with items().
Updated by Alex Afanasyev over 8 years ago
- Subject changed from tests/wscript is incompatible with python3: 'dict' object has no attribute 'iteritems' to Build not working when using Python 3.x
- Description updated (diff)
- Status changed from New to Code review
- % Done changed from 0 to 100
Updated by Davide Pesavento over 8 years ago
- Assignee changed from Davide Pesavento to Alex Afanasyev
Updated by Davide Pesavento over 8 years ago
- Status changed from Code review to Closed
Actions