Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

waf 19.0.6 not compatible with python >= 3.7 #4

Open
urp opened this issue Oct 17, 2020 · 0 comments
Open

waf 19.0.6 not compatible with python >= 3.7 #4

urp opened this issue Oct 17, 2020 · 0 comments

Comments

@urp
Copy link

urp commented Oct 17, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant