Newby Tyro
Posts: 7
Joined: Tue Mar 17, 2020 3:02 pm

Installing wxPython on python-3.7.3

Tue Mar 17, 2020 3:45 pm

I have followed James Key's instructions (https://wiki.wxPython.org/BuildWxPythonOnRaspberryPi, updated version, wxPython-4.0.7.post2, with GTK3) as closely as I can: I wanted to use the default python-3.7.3. All went well until "python3 build.py build bdist_wheel", where about two hours in on my Pi2B the 478/868 compile failed with a fatal error:

477/868] Compiling sip/cpp/sip_advwxTaskBarIconEvent.cpp
[478/868] Compiling sip/cpp/sip_advwxLayoutAlgorithm.cpp
collect2: fatal error: ld terminated with signal 9 [Killed]
compilation terminated.

Waf: Leaving directory `/home/pi/wxPython-4.0.7.post2/build/waf/3.7/gtk3'
Build failed
-> task in '_core' failed with exit status 1 (run with -v to display more information)
Command '"/home/pi/wx/bin/python3" /home/pi/wxPython-4.0.7.post2/bin/waf-2.0.8 --wx_config=/home/pi/wxPython-4.0.7.post2/build/wxbld/gtk3/wx-config --gtk3 --python="/home/pi/wx/bin/python3" --out=build/waf/3.7/gtk3 configure build ' failed with exit code 1.
Finished command: build_py (89m11.796s)
Finished command: build (137m23.483s)
(wx) pi@raspberrypi:~/wxPython-4.0.7.post2 $

Can anyone suggest a likely cause, please?

Return to “Python”