Jacob Barhak
2014-07-15 22:02:52 UTC
Greetings to Linux WxPython Experts
Can someone figure out how to install WxPython on Ubuntu 14.04 with
Anaconda?
Currently I have no solution for Linux for my system that works well.
Something became incompatible within the last few years.
My current aim is to make a conda installation that will work on a freshly
installed UIbuntu 14.04LTS since it will probably work for a few years
before becoming obsolete.
You can see a long discussion on WxWidgets group that tries to resolve
existing solutions, at the end of the discussion, I was referred to this
group:
https://groups.google.com/forum/#!msg/wx-users/aKmKZeTLZEw/xVi-XJEczpkJ
This was a week ago and since then my latest attempt is to try to build
from source on a fresh Ubuntu installation yet this does not seem to work
as well. Here is the shortened transcript of the actions I took:
*Step 1: Install Ubuntu*
Burn a CD image of Ubuntu 14.04 LTS
Install Ubuntu 14.04 LTS - fresh installation
*Step 2: Install Anaconda*
Download and install Acanconda - specific install file is:
Anaconda-2.0.1-Linux-x86_64.sh
At the end ask to setup path for you automatically.
Close the terminal at the end of installation
*Steps 3: Download WxPython source archive*
From:
http://sourceforge.net/projects/wxpython/files/wxPython/3.0.0.0/
Download:
wxPython-src-3.0.0.0.tar.bz2
I extracted the contents of the file to the Desktop
*Step 4: Prepare environment to build:*
Open a Terminal and run the following commands:
sudo apt-get install mesa-common-dev
sudo apt-get install libgl1-mesa-glx libglu1-mesa libgl1-mesa-dev
libglu1-mesa-dev libgstreamer0.10-dev libgconf2-dev libsdl1.2-dev
zlib1g-dev libjpeg62-dev python-gst0.10-dev
sudo apt-get libgtk2.0-dev
cd Desktop/
cd wxPython-src-3.0.0.0/
cd wxPython/
*Step 4: Build WxPython:*
Run the command:
python build-wxpython.py --build_dir=../bld
After a few minutes the following output appears:
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
------------ BUILD FINISHED ------------
To run the wxPython demo you may need to:
- set your PYTHONPATH variable to
/home/work/Desktop/wxPython-src-3.0.0.0/wxPython
- set your LD_LIBRARY_PATH to
/home/work/Desktop/wxPython-src-3.0.0.0/bld/lib
And then:
- Run python demo/demo.py
$$$$$$$$$$$$$$$$$$$$$$$$$$
*Step 5: Prepare environment to run and run the demo:*
Type the following commands:
export PYTHONPATH=/home/work/Desktop/wxPython-src-3.0.0.0/wxPython
export LD_LIBRARY_PATH=/home/work/Desktop/wxPython-src-3.0.0.0/bld/lib
python demo/demo.py
This results in the following output:
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Traceback (most recent call last):
File "demo/demo.py", line 3, in <module>
import Main
File "/home/work/Desktop/wxPython-src-3.0.0.0/wxPython/demo/Main.py",
line 59, in <module>
import wx
File "/home/work/Desktop/wxPython-src-3.0.0.0/wxPython/wx/__init__.py",
line 45, in <module>
from wx._core import *
File "/home/work/Desktop/wxPython-src-3.0.0.0/wxPython/wx/_core.py", line
4, in <module>
import _core_
ImportError: /home/work/anaconda/bin/../lib/libm.so.6: version `GLIBC_2.15'
not found (required by /usr/lib/x86_64-linux-gnu/libpulse.so.0)
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
In short, it seems there is some incompatibility Among Anaconda, Ubuntu,
and WxPython in the current latest versions.
My system depends on WxPython for GUI. I need Linux since it has good HPC
support. I do need Anaconda due to the scientific libraries and I want to
have a conda installation for my system. The conda install already works
well on Windows, I just want it to work on Linux. My bottleneck is a conda
installation of WxPython on Ubuntu Linux that works well â there are
binaries that work, yet are not working well.
If anyone actually knows how to solve this installation issue, please send
me a command transcript that will work.
If you have alternative solutions not on this specific path, please send me
an email, I really want this thread to concentrate on solving this specific
build issue. If this is solved, it will be possible to create binaries for
other platforms and have an easy conda install for each such platform â
which will simplify things for installing libraries that depends on
WxPython.
Jacob
Can someone figure out how to install WxPython on Ubuntu 14.04 with
Anaconda?
Currently I have no solution for Linux for my system that works well.
Something became incompatible within the last few years.
My current aim is to make a conda installation that will work on a freshly
installed UIbuntu 14.04LTS since it will probably work for a few years
before becoming obsolete.
You can see a long discussion on WxWidgets group that tries to resolve
existing solutions, at the end of the discussion, I was referred to this
group:
https://groups.google.com/forum/#!msg/wx-users/aKmKZeTLZEw/xVi-XJEczpkJ
This was a week ago and since then my latest attempt is to try to build
from source on a fresh Ubuntu installation yet this does not seem to work
as well. Here is the shortened transcript of the actions I took:
*Step 1: Install Ubuntu*
Burn a CD image of Ubuntu 14.04 LTS
Install Ubuntu 14.04 LTS - fresh installation
*Step 2: Install Anaconda*
Download and install Acanconda - specific install file is:
Anaconda-2.0.1-Linux-x86_64.sh
At the end ask to setup path for you automatically.
Close the terminal at the end of installation
*Steps 3: Download WxPython source archive*
From:
http://sourceforge.net/projects/wxpython/files/wxPython/3.0.0.0/
Download:
wxPython-src-3.0.0.0.tar.bz2
I extracted the contents of the file to the Desktop
*Step 4: Prepare environment to build:*
Open a Terminal and run the following commands:
sudo apt-get install mesa-common-dev
sudo apt-get install libgl1-mesa-glx libglu1-mesa libgl1-mesa-dev
libglu1-mesa-dev libgstreamer0.10-dev libgconf2-dev libsdl1.2-dev
zlib1g-dev libjpeg62-dev python-gst0.10-dev
sudo apt-get libgtk2.0-dev
cd Desktop/
cd wxPython-src-3.0.0.0/
cd wxPython/
*Step 4: Build WxPython:*
Run the command:
python build-wxpython.py --build_dir=../bld
After a few minutes the following output appears:
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
------------ BUILD FINISHED ------------
To run the wxPython demo you may need to:
- set your PYTHONPATH variable to
/home/work/Desktop/wxPython-src-3.0.0.0/wxPython
- set your LD_LIBRARY_PATH to
/home/work/Desktop/wxPython-src-3.0.0.0/bld/lib
And then:
- Run python demo/demo.py
$$$$$$$$$$$$$$$$$$$$$$$$$$
*Step 5: Prepare environment to run and run the demo:*
Type the following commands:
export PYTHONPATH=/home/work/Desktop/wxPython-src-3.0.0.0/wxPython
export LD_LIBRARY_PATH=/home/work/Desktop/wxPython-src-3.0.0.0/bld/lib
python demo/demo.py
This results in the following output:
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Traceback (most recent call last):
File "demo/demo.py", line 3, in <module>
import Main
File "/home/work/Desktop/wxPython-src-3.0.0.0/wxPython/demo/Main.py",
line 59, in <module>
import wx
File "/home/work/Desktop/wxPython-src-3.0.0.0/wxPython/wx/__init__.py",
line 45, in <module>
from wx._core import *
File "/home/work/Desktop/wxPython-src-3.0.0.0/wxPython/wx/_core.py", line
4, in <module>
import _core_
ImportError: /home/work/anaconda/bin/../lib/libm.so.6: version `GLIBC_2.15'
not found (required by /usr/lib/x86_64-linux-gnu/libpulse.so.0)
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
In short, it seems there is some incompatibility Among Anaconda, Ubuntu,
and WxPython in the current latest versions.
My system depends on WxPython for GUI. I need Linux since it has good HPC
support. I do need Anaconda due to the scientific libraries and I want to
have a conda installation for my system. The conda install already works
well on Windows, I just want it to work on Linux. My bottleneck is a conda
installation of WxPython on Ubuntu Linux that works well â there are
binaries that work, yet are not working well.
If anyone actually knows how to solve this installation issue, please send
me a command transcript that will work.
If you have alternative solutions not on this specific path, please send me
an email, I really want this thread to concentrate on solving this specific
build issue. If this is solved, it will be possible to create binaries for
other platforms and have an easy conda install for each such platform â
which will simplify things for installing libraries that depends on
WxPython.
Jacob
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users