Error while installing v4.1.1 on openmandriva Lx 4.2

Hi there :slight_smile: ,

I’m on Linux OpenMandriva LX4.2, python3.9.1.

I tried to install wxPython 4.1.1, following the receipe :
https://wxpython.org/blog/2017-08-17-builds-for-linux-with-pip/index.html

launching command : pip wheel -v wxPython-4.1.1.tar.gz 2>&1 | tee build.log

the process failed on error :

 [491/921] Compiling sip/cpp/sip_corewxExecuteEnv.cpp
  [492/921] Compiling sip/cpp/sip_corewxLogWindow.cpp
  [493/921] Linking build/waf/3.9/gtk3/_core.cpython-39-x86_64-linux-gnu.so
  collect2: fatal error: ld terminated with signal 15 [Terminated]
  compilation terminated.

  Waf: Leaving directory `/tmp/pip-req-build-g0_nlrho/build/waf/3.9/gtk3'
  Build failed
   -> task in '_core' failed with exit status 1 (run with -v to display more information)
  Command '"/home/redge/Developpement/GestConsoPhoenix4.1.x--1.3.4/env4.1/bin/python" /tmp/pip-req-build-g0_nlrho/bin/waf-2.0.19 --wx_config=/tmp/pip-req-build-g0_nlrho/build/wxbld/gtk3/wx-config --gtk3 --python="/home/redge/Developpement/GestConsoPhoenix4.1.x--1.3.4/env4.1/bin/python" --out=build/waf/3.9/gtk3 configure build ' failed with exit code 1.
  Finished command: build_py (25m43.343s)
  Finished command: build (43m24.144s)
  Command '"/home/redge/Developpement/GestConsoPhoenix4.1.x--1.3.4/env4.1/bin/python" -u build.py build' failed with exit code 1.
  Building wheel for wxPython (setup.py): finished with status 'error'
  ERROR: Failed building wheel for wxPython
  Running setup.py clean for wxPython
  Running command /home/redge/Developpement/GestConsoPhoenix4.1.x--1.3.4/env4.1/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-g0_nlrho/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-g0_nlrho/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all
  running clean
  'build/lib.linux-x86_64-3.9' does not exist -- can't clean it
  'build/bdist.linux-x86_64' does not exist -- can't clean it
  'build/scripts-3.9' does not exist -- can't clean it
Failed to build wxPython
ERROR: Failed to build one or more wheels
Exception information:
Traceback (most recent call last):
  File "/home/redge/Developpement/GestConsoPhoenix4.1.x--1.3.4/env4.1/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 189, in _main
    status = self.run(options, args)
  File "/home/redge/Developpement/GestConsoPhoenix4.1.x--1.3.4/env4.1/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 178, in wrapper
    return func(self, options, args)
  File "/home/redge/Developpement/GestConsoPhoenix4.1.x--1.3.4/env4.1/lib/python3.9/site-packages/pip/_internal/commands/wheel.py", line 190, in run
    raise CommandError(
pip._internal.exceptions.CommandError: Failed to build one or more wheels
Removed build tracker: '/tmp/pip-req-tracker-89l98ijx'

Any idea on what happens ?

Thanks a lot in advance

It looks like you may have trimmed too much of the log and the real problem happened earlier. Look for clues in the wxWidgets part of the build, especially the output of the configure step.

Thank you Robin for your advice.

I saw in log file :

  checking for WEBKIT... configure: WARNING: webkit2gtk not found, falling back to webkitgtk
  checking for WEBKIT... yes
  checking for CAIRO... yes

So I installed the webkitgtk2-dev package.

I launched again the installation, but it failed again :

  [492/921] Compiling sip/cpp/sip_corewxLogWindow.cpp
  [493/921] Linking build/waf/3.9/gtk3/_core.cpython-39-x86_64-linux-gnu.so
  collect2: fatal error: ld terminated with signal 15 [Terminated]
  compilation terminated.

I try to figure out what is going wrong, but I can not see a clue.

So I join the log file in order someone can have a look and tell me where to detect the problem…

build.zip (372.5 KB)

Thanks again for your advises

I managed to fix the installation issue :
I use VirtualBox on which I had installed OpenMandrive LX4.2 with 3 Go RAM and 1 processor associated.

Changing to 8 Go RAM and 2 processors, resolved the installation problem.

Sorry for the disturb…