You are not logged in.
I'm trying to install hydrus from the AUR through aurman. Amongst the list of dependencies is python2-wxpython-phoenix, which I'm aware is flagged as outdated on the AUR. My installation of the latter is failing with the following logs:
running install
running build
WARNING: Building this way assumes that all generated files have been
generated already. If that is not the case then use build.py directly
to generate the source and perform the build stage. You can use
--skip-build with the bdist_* or install commands to avoid this
message and the wxWidgets and Phoenix build steps in the future.
"/usr/bin/python" -u build.py build
Will build using: "/usr/bin/python"
3.7.0 (default, Jul 15 2018, 10:44:58)
[GCC 8.1.1 20180531]
Python's architecture is 64bit
cfg.VERSION: 4.0.1
Running command: build
Running command: build_wx
wxWidgets build options: ['--wxpython', '--unicode', '--no_config', '--gtk3']
Configure options: ['--enable-unicode', '--with-gtk=3', '--with-opengl', '--enable-sound', '--enable-graphics_ctx', '--enable-mediactrl', '--enable-display', '--enable-geometry', '--enable-debug_flag', '--enable-optimise', '--disable-debugreport', '--enable-uiactionsim', '--with-sdl']
/usr/bin/make
make --jobs=4
(if test -f utils/wxrc/Makefile ; then cd utils/wxrc && make all ; fi)
// Skipping a bunch of up-to-date targets
Finished command: build_wx (0m1.310s)
Running command: build_py
Checking for /home/anfasa/.cache/aurman/python-wxpython-phoenix/src/wxPython-4.0.1/bin/waf-1.7.15-p1...
"/usr/bin/python" /home/anfasa/.cache/aurman/python-wxpython-phoenix/src/wxPython-4.0.1/bin/waf-1.7.15-p1 --wx_config=/home/anfasa/.cache/aurman/python-wxpython-phoenix/src/wxPython-4.0.1/build/wxbld/gtk3/wx-config --gtk3 --python="/usr/bin/python" --out=build/waf/3.7/gtk3 configure build
Traceback (most recent call last):
File "/home/anfasa/.cache/aurman/python-wxpython-phoenix/src/wxPython-4.0.1/bin/.waf3-1.7.15-9c6c439a6416a92b3e844736c4ef3c7b/waflib/Node.py", line 282, in ant_iter
raise StopIteration
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/anfasa/.cache/aurman/python-wxpython-phoenix/src/wxPython-4.0.1/bin/.waf3-1.7.15-9c6c439a6416a92b3e844736c4ef3c7b/waflib/Scripting.py", line 97, in waf_entry_point
run_commands()
File "/home/anfasa/.cache/aurman/python-wxpython-phoenix/src/wxPython-4.0.1/bin/.waf3-1.7.15-9c6c439a6416a92b3e844736c4ef3c7b/waflib/Scripting.py", line 149, in run_commands
parse_options()
File "/home/anfasa/.cache/aurman/python-wxpython-phoenix/src/wxPython-4.0.1/bin/.waf3-1.7.15-9c6c439a6416a92b3e844736c4ef3c7b/waflib/Scripting.py", line 127, in parse_options
Context.create_context('options').execute()
File "/home/anfasa/.cache/aurman/python-wxpython-phoenix/src/wxPython-4.0.1/bin/.waf3-1.7.15-9c6c439a6416a92b3e844736c4ef3c7b/waflib/Options.py", line 134, in execute
super(OptionsContext,self).execute()
File "/home/anfasa/.cache/aurman/python-wxpython-phoenix/src/wxPython-4.0.1/bin/.waf3-1.7.15-9c6c439a6416a92b3e844736c4ef3c7b/waflib/Context.py", line 84, in execute
self.recurse([os.path.dirname(g_module.root_path)])
File "/home/anfasa/.cache/aurman/python-wxpython-phoenix/src/wxPython-4.0.1/bin/.waf3-1.7.15-9c6c439a6416a92b3e844736c4ef3c7b/waflib/Context.py", line 125, in recurse
user_function(self)
File "/home/anfasa/.cache/aurman/python-wxpython-phoenix/src/wxPython-4.0.1/wscript", line 33, in options
opt.load('compiler_cc compiler_cxx')
File "/home/anfasa/.cache/aurman/python-wxpython-phoenix/src/wxPython-4.0.1/bin/.waf3-1.7.15-9c6c439a6416a92b3e844736c4ef3c7b/waflib/Context.py", line 81, in load
fun(self)
File "/home/anfasa/.cache/aurman/python-wxpython-phoenix/src/wxPython-4.0.1/bin/.waf3-1.7.15-9c6c439a6416a92b3e844736c4ef3c7b/waflib/Tools/compiler_c.py", line 31, in options
opt.load_special_tools('c_*.py',ban=['c_dumbpreproc.py'])
File "/home/anfasa/.cache/aurman/python-wxpython-phoenix/src/wxPython-4.0.1/bin/.waf3-1.7.15-9c6c439a6416a92b3e844736c4ef3c7b/waflib/Context.py", line 261, in load_special_tools
lst=self.root.find_node(waf_dir).find_node('waflib/extras').ant_glob(var)
File "/home/anfasa/.cache/aurman/python-wxpython-phoenix/src/wxPython-4.0.1/bin/.waf3-1.7.15-9c6c439a6416a92b3e844736c4ef3c7b/waflib/Node.py", line 331, 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/anfasa/.cache/aurman/python-wxpython-phoenix/src/wxPython-4.0.1/bin/.waf3-1.7.15-9c6c439a6416a92b3e844736c4ef3c7b/waflib/Node.py", line 331, 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
Command '"/usr/bin/python" /home/anfasa/.cache/aurman/python-wxpython-phoenix/src/wxPython-4.0.1/bin/waf-1.7.15-p1 --wx_config=/home/anfasa/.cache/aurman/python-wxpython-phoenix/src/wxPython-4.0.1/build/wxbld/gtk3/wx-config --gtk3 --python="/usr/bin/python" --out=build/waf/3.7/gtk3 configure build ' failed with exit code 2.
Finished command: build_py (0.136s)
Finished command: build (0m1.447s)
Command '"/usr/bin/python" -u build.py build' failed with exit code 2.
==> ERREUR : Une erreur s’est produite dans package_python-wxpython-phoenix().
Abandon…
2018-09-10 07:07:58,960 - wrappers - makepkg - ERROR - makepkg query ['makepkg', '-cf', '--noconfirm'] failed in directory /home/anfasa/.cache/aurman/python-wxpython-phoenixThis error isn't documented anywhere on the AUR package page, and I found very little information about it overall. I've tried manually installing the package with no success, as well as clearing the aurman cache and trying again. Any help or guidelines would be greatly appreciated.
Last edited by Anfasa (2018-09-10 15:56:07)
Offline
If you just need python2-wxpython-phoenix, you could edit the PKGBUILD yourself and remove everything related to python3. The error you see is due to changes in python 3.7. The bug needs to be fixed upstream.
Offline
Thanks, that was enough to solve my problem.
Offline
python-wxpython in community is already the phoenix release, and fixed this error right from the start, see https://git.archlinux.org/svntogit/comm … 96ffc01cd8
(Why do weird projects love their vendored tools like waf, which periodically break like this???)
Anyway, the AUR package should be removed and replaced with a standalone python2-only one.
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline