Not able to install new wxpython

Viewed 9088

I am working on Debian Stable Linux and python 3.5 and I am trying to install the new wxpython (phoenix) using following command:

pip3 install --upgrade wxpython

However, it stops with following error:

  checking for CAIRO... yes
    checking for cairo_push_group... yes
    checking for GST... configure: WARNING: GStreamer 1.0 not available, falling back to 0.10
    checking for GST... configure: WARNING: GStreamer 0.10 not available, falling back to 0.8
    configure: error: GStreamer not available
    Error running configure
    ERROR: failed building wxWidgets
    Traceback (most recent call last):
      File "build.py", line 1269, in cmd_build_wx
        wxbuild.main(wxDir(), build_options)
      File "/tmp/pip-build-pdn9eo0c/wxpython/buildtools/build_wxwidgets.py", line 376, in main
        "Error running configure")
      File "/tmp/pip-build-pdn9eo0c/wxpython/buildtools/build_wxwidgets.py", line 85, in exitIfError
        raise builder.BuildError(msg)
    buildtools.builder.BuildError: Error running configure
    Finished command: build_wx (0m9.685s)
    Finished command: build (0m9.686s)
    Command '"/usr/bin/python3" -u build.py build' failed with exit code 1.

I have following packages related to gstreamer installed:

Package                 Installed       Previous        Now             State
=======================-===============-===============-===============-=====
gir1.2-gst-plugins-base-1.0 1.10.4-1        1.10.4-1        1.10.4-1        install
gir1.2-gstreamer-1.0    1.10.4-1        1.10.4-1        1.10.4-1        install
libgstreamer1.0-dev     1.10.4-1        1.10.4-1        1.10.4-1        install
libreoffice-avmedia-backend-gstreamer   1:5.2.7-1       1:5.2.7-1       1:5.2.7-1       install
python3-gst-1.0         1.10.4-1        1.10.4-1        1.10.4-1        install

What other gstreamer package do I need to install? Thanks for your help.

2 Answers

I find that the only way to install wxPython on Ubuntu 16.04 is by executing this command:

sudo pip install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04     wxPython

if you just execute the usual

sudo pip install wxPython

then it will fail complaining about GStreamer missing (but I have all the required packages installed, of course).

As explained here and above, pip isn't going to help you (unless you build yourself the thing directly from sources that is).

And while there are plenty of binaries already available, the joke is that those provided by the OS are just for python 2.7, while those provided by the official development team are not for i386.

Thankfully one of the wx developers I think, had the courtesy to set up a PPA during testing.. And I believe there shouldn't be any special incompatibility between Xenial and Stretch, considering they share the same python3 version eventually (there's even a newer one but it bumps the sip-py3api-11.2 dependency that may be hard required by some other package)

sudo add-apt-repository ppa:swt-techie/wxpython4
sudo apt-get update
sudo apt-get install python3-wxgtk4.0
Related