Problem when Installing wxPython-Phoenix

Hello,

i have issue during install wxPython phoenix use pip, i follow this turorial:

How to install wxPython - wxPyWiki

sudo pip install --upgrade --trusted-host wxpython.org --pre -f Index of /Phoenix/snapshot-builds wxPython_Phoenix

but i get error message:

···

checking for Xxf86vm… checking for XF86VidModeQueryExtension in -lXxf86vm… no
checking elsewhere… no
checking for SM… yes
checking for OpenGL headers… found in /usr/include
checking for GL/gl.h… yes
checking for GL/glu.h… no
configure: error: OpenGL libraries not available
Error running configure
ERROR: failed building wxWidgets
Traceback (most recent call last):
File “build.py”, line 1179, in cmd_build_wx
wxbuild.main(wxDir(), build_options)
File “/tmp/pip-build-T3Sv2M/wxPython-Phoenix/buildtools/build_wxwidgets.py”, line 367, in main
“Error running configure”)
File “/tmp/pip-build-T3Sv2M/wxPython-Phoenix/buildtools/build_wxwidgets.py”, line 85, in exitIfError
raise builder.BuildError(msg)
BuildError
Finished command: build_wx (12.952s)
Finished command: build (12.952s)
Command ‘/usr/bin/python -u build.py build’ failed with exit code 1.


Command “/usr/bin/python -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-T3Sv2M/wxPython-Phoenix/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(‘\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-G4N6iz-record/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /tmp/pip-build-T3Sv2M/wxPython-Phoenix/

my current python information:

Python 2.7.6 - Linux

Hi,
I do not know what is your issue but earlier this year I wrote a little document dealing with installing wxPython Phoenix on Ubuntu.
Maybe it will help you.
As it is just a text file, I copy and paste it here:

···

==============================================================
= ----- How to install wxPython Phoenix - The Easy Way ----- =

===========
= — About — =

Last update : Monday the 21st, January 2016.
This tutorial deals with wxPython Phoenix installation on Ubuntu.
I am using Ubuntu 12.04 LTS - 64 bits.
Note : Ubuntu 12.04 LTS comes with Python 2.7.3. You might have to make sure
that Python is installed on your computer :

- Type "python" in the console to run the python interpreter. You will also
see the current version.

Example :     damien@Ubuntu1204VB:~$ python
        Python 2.7.3 (default, Jun 22 2015, 19:33:41)
        [GCC 4.6.3] on linux2

=============
= — Let’s go — =

  1. Install some modules :

    • dpkg-dev
    • build-essential
    • python2.7-dev # use appropriate Python version
    • libwebkitgtk-dev
    • libjpeg-dev
    • libtiff-dev
    • libgtk2.0-dev
    • libsdl1.2-dev
    • libgstreamer-plugins-base0.10-dev
    • libnotify-dev
    • freeglut3
    • freeglut3-dev
      Note : You can install all of them at once using the following command :

    sudo apt-get install dpkg-dev build-essential python2.7-dev libwebkitgtk-dev
    libjpeg-dev libtiff-dev libgtk2.0-dev libsdl1.2-dev libgstreamer-plugins-base0.10-dev
    libnotify-dev freeglut3 freeglut3-dev

    Note : Your password will be asked.

  2. Go to Index of /Phoenix/snapshot-builds and download the latest .tar.gz
    Example : wxPython_Phoenix-3.0.3-dev1836+f764b32.tar.gz
    Note : A .tar.gz file is called a tarball.

  3. Untar the tarball : tar -xvzf wxPython_Phoenix-3.0.3-dev1836+f764b32.tar.gz

  4. Go into the directory : cd wxPython_Phoenix-3.0.3-dev1836+f764b32.tar.gz
    Note : You can/should use the tabulation key for auto-completing.

  5. Install : sudo python setup.py install
    Note : Your password will be asked to copy files.

  6. Check if the module works :

    6.1 Make sure your current folder is your home folder : type cd

    6.2 Do as follows :
    Example : damien@Ubuntu1204VB:~$ python
    Python 2.7.3 (default, Jun 22 2015, 19:33:41)
    [GCC 4.6.3] on linux2
    Type “help”, “copyright”, “credits” or “license” for more information.

    import wx
    wx.version()
    ‘3.0.3.dev1836+f764b32 gtk2 (phoenix)’

Author :

Damien Ruiz

I hope it helped,

Damien Ruiz

Le vendredi 11 mars 2016 22:40:58 UTC-5, ysf.he...@gmail.com a écrit :

Hello,

i have issue during install wxPython phoenix use pip, i follow this turorial:

http://wiki.wxpython.org/How%20to%20install%20wxPython#Installing_wxPython-Phoenix_using_pip

sudo pip install --upgrade --trusted-host wxpython.org --pre -f http://wxpython.org/Phoenix/snapshot-builds/ wxPython_Phoenix

but i get error message:

checking for Xxf86vm… checking for XF86VidModeQueryExtension in -lXxf86vm… no
checking elsewhere… no
checking for SM… yes
checking for OpenGL headers… found in /usr/include
checking for GL/gl.h… yes
checking for GL/glu.h… no
configure: error: OpenGL libraries not available
Error running configure
ERROR: failed building wxWidgets
Traceback (most recent call last):
File “build.py”, line 1179, in cmd_build_wx
wxbuild.main(wxDir(), build_options)
File “/tmp/pip-build-T3Sv2M/wxPython-Phoenix/buildtools/build_wxwidgets.py”, line 367, in main
“Error running configure”)
File “/tmp/pip-build-T3Sv2M/wxPython-Phoenix/buildtools/build_wxwidgets.py”, line 85, in exitIfError
raise builder.BuildError(msg)
BuildError
Finished command: build_wx (12.952s)
Finished command: build (12.952s)
Command ‘/usr/bin/python -u build.py build’ failed with exit code 1.


Command “/usr/bin/python -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-T3Sv2M/wxPython-Phoenix/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(‘\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-G4N6iz-record/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /tmp/pip-build-T3Sv2M/wxPython-Phoenix/

my current python information:

Python 2.7.6 - Linux

Thank you so much. I’ve been beating my head on my keyboard for a week trying to figure this out.

This helped me get it running on Xubuntu 16.04 with Python3.

Thanks!!

(Now to try to get some sample code running in PyCharm.)