Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to install new wxpython

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.

like image 708
rnso Avatar asked Nov 12 '17 08:11

rnso


People also ask

How do I install wxPython code in Visual Studio?

enter command : pip install pygame. To install wxpython enter command : pip install -U wxPython.

How do you get wxPython?

wxPython can be installed through apt-get by calling apt-get install python-wxgtk2. 8 or apt-get install python-wxgtk2. 6, depending on which version you want. You may have to call this with root permissions.


1 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).

like image 196
Tigran Aivazian Avatar answered Sep 29 '22 07:09

Tigran Aivazian