Project

General

Profile

Actions

Bug #3493

closed

Build not working when using Python 3.x

Added by Davide Pesavento almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Build
Target version:
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'
Actions #1

Updated by Davide Pesavento almost 9 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():
Actions #2

Updated by Davide Pesavento almost 9 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'
Actions #3

Updated by susmit shannigrahi almost 9 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().

Actions #4

Updated by Alex Afanasyev almost 9 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
Actions #5

Updated by Davide Pesavento almost 9 years ago

  • Assignee changed from Davide Pesavento to Alex Afanasyev
Actions #6

Updated by Davide Pesavento almost 9 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF