Skip to content

waf 19.0.6 not compatible with python >= 3.7 #4

@urp

Description

@urp

I get an error when running waf configure

python waf configure 
Traceback (most recent call last):
  File "/home/urp/Documents/Sandbox/pd-aubio/.waf3-1.9.6-1e8548ddb990ceb895e5c7946e836f9f/waflib/Node.py", line 297, in ant_iter
    raise StopIteration
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/urp/Documents/Sandbox/pd-aubio/.waf3-1.9.6-1e8548ddb990ceb895e5c7946e836f9f/waflib/Scripting.py", line 120, in waf_entry_point
    run_commands()
  File "/home/urp/Documents/Sandbox/pd-aubio/.waf3-1.9.6-1e8548ddb990ceb895e5c7946e836f9f/waflib/Scripting.py", line 177, in run_commands
    parse_options()
  File "/home/urp/Documents/Sandbox/pd-aubio/.waf3-1.9.6-1e8548ddb990ceb895e5c7946e836f9f/waflib/Scripting.py", line 150, in parse_options
    Context.create_context('options').execute()
  File "/home/urp/Documents/Sandbox/pd-aubio/.waf3-1.9.6-1e8548ddb990ceb895e5c7946e836f9f/waflib/Options.py", line 145, in execute
    super(OptionsContext,self).execute()
  File "/home/urp/Documents/Sandbox/pd-aubio/.waf3-1.9.6-1e8548ddb990ceb895e5c7946e836f9f/waflib/Context.py", line 88, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File "/home/urp/Documents/Sandbox/pd-aubio/.waf3-1.9.6-1e8548ddb990ceb895e5c7946e836f9f/waflib/Context.py", line 129, in recurse
    user_function(self)
  File "/home/urp/Documents/Sandbox/pd-aubio/wscript", line 17, in options
    ctx.load('compiler_c')
  File "/home/urp/Documents/Sandbox/pd-aubio/.waf3-1.9.6-1e8548ddb990ceb895e5c7946e836f9f/waflib/Context.py", line 85, in load
    fun(self)
  File "/home/urp/Documents/Sandbox/pd-aubio/.waf3-1.9.6-1e8548ddb990ceb895e5c7946e836f9f/waflib/Tools/compiler_c.py", line 40, in options
    opt.load_special_tools('c_*.py',ban=['c_dumbpreproc.py'])
  File "/home/urp/Documents/Sandbox/pd-aubio/.waf3-1.9.6-1e8548ddb990ceb895e5c7946e836f9f/waflib/Context.py", line 319, in load_special_tools
    lst=self.root.find_node(waf_dir).find_node('waflib/extras').ant_glob(var)
  File "/home/urp/Documents/Sandbox/pd-aubio/.waf3-1.9.6-1e8548ddb990ceb895e5c7946e836f9f/waflib/Node.py", line 346, in ant_glob
    ret=[x for x in self.ant_iter(accept=accept,pats=[to_pat(incl),to_pat(excl)],maxdepth=kw.get('maxdepth',25),dir=dir,src=src,remove=kw.get('remove',True))]
  File "/home/urp/Documents/Sandbox/pd-aubio/.waf3-1.9.6-1e8548ddb990ceb895e5c7946e836f9f/waflib/Node.py", line 346, in <listcomp>
    ret=[x for x in self.ant_iter(accept=accept,pats=[to_pat(incl),to_pat(excl)],maxdepth=kw.get('maxdepth',25),dir=dir,src=src,remove=kw.get('remove',True))]
RuntimeError: generator raised StopIteration
make: *** [Makefile:33: configure] Error 2

See upstream waf pull request.
Updating waf version in scripts/get_waf.sh to latest (2.0.20) works for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions