Error compiling in Linux (related to Python/waf)
Brought to you by:
kirkbarnes,
krigssvin
Hello there,
Just moved to Fedora 35 and tried to get quake2xp compiled. I installed the necessary dependencies, ran with both python and python 3 commands, but got the following error:
[XXXX@XXXX quake2xp-code]$ python3 waf configure --prefix=$HOME/local
Traceback (most recent call last):
File "/home/XXXX/Desktop/quake2xp-code/.waf3-1.6.11-7f6ceaf1c97a615dd46ffdaefeb252af/waflib/Node.py", line 285, in ant_iter
raise StopIteration
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/XXXX/Desktop/quake2xp-code/.waf3-1.6.11-7f6ceaf1c97a615dd46ffdaefeb252af/waflib/Scripting.py", line 97, in waf_entry_point
run_commands()
File "/home/XXXX/Desktop/quake2xp-code/.waf3-1.6.11-7f6ceaf1c97a615dd46ffdaefeb252af/waflib/Scripting.py", line 146, in run_commands
parse_options()
File "/home/XXXX/Desktop/quake2xp-code/.waf3-1.6.11-7f6ceaf1c97a615dd46ffdaefeb252af/waflib/Scripting.py", line 125, in parse_options
Context.create_context('options').execute()
File "/home/XXXX/Desktop/quake2xp-code/.waf3-1.6.11-7f6ceaf1c97a615dd46ffdaefeb252af/waflib/Options.py", line 133, in execute
super(OptionsContext,self).execute()
File "/home/XXXX/Desktop/quake2xp-code/.waf3-1.6.11-7f6ceaf1c97a615dd46ffdaefeb252af/waflib/Context.py", line 87, in execute
self.recurse([os.path.dirname(g_module.root_path)])
File "/home/XXXX/Desktop/quake2xp-code/.waf3-1.6.11-7f6ceaf1c97a615dd46ffdaefeb252af/waflib/Context.py", line 128, in recurse
user_function(self)
File "/home/XXXX/Desktop/quake2xp-code/wscript", line 45, in options
opt.load('compiler_c')
File "/home/XXXX/Desktop/quake2xp-code/.waf3-1.6.11-7f6ceaf1c97a615dd46ffdaefeb252af/waflib/Context.py", line 84, in load
fun(self)
File "/home/XXXX/Desktop/quake2xp-code/.waf3-1.6.11-7f6ceaf1c97a615dd46ffdaefeb252af/waflib/Tools/compiler_c.py", line 31, in options
opt.load_special_tools('c_*.py',ban=['c_dumbpreproc.py'])
File "/home/XXXX/Desktop/quake2xp-code/.waf3-1.6.11-7f6ceaf1c97a615dd46ffdaefeb252af/waflib/Context.py", line 249, in load_special_tool
s
lst=self.root.find_node(waf_dir).find_node('waflib/extras').ant_glob(var)
File "/home/XXXX/Desktop/quake2xp-code/.waf3-1.6.11-7f6ceaf1c97a615dd46ffdaefeb252af/waflib/Node.py", line 333, in ant_glob
ret=[x for x in self.ant_iter(accept=accept,pats=[to_pat(incl),to_pat(excl)],maxdepth=25,dir=dir,src=src,remove=kw.get('remove',True)
)]
File "/home/XXXX/Desktop/quake2xp-code/.waf3-1.6.11-7f6ceaf1c97a615dd46ffdaefeb252af/waflib/Node.py", line 333, in <listcomp>
* ret=[x for x in self.antiter(accept=accept,pats=[topat(incl),topat(excl)],maxdepth=25,dir=dir,src=src,remove=kw.get('remove',True)
)]
RuntimeError: generator raised StopIteration*
Cheers.
Anonymous
The issue is resolved by installing waf from the Fedora repo and running the comman waf configre (minus python).
Thus this issue can be closed (thanks @przenziu).
Hello, glad it worked out for you, to prevent such issues readme has been updated: [r1333]
Related
Commit: [r1333]