Discussion:
WxPython 3.0 on Ubuntu 14.04 LTS with Anaconda?
Jacob Barhak
2014-07-15 22:02:52 UTC
Permalink
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
--
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
Chris Nelson
2014-07-16 01:27:01 UTC
Permalink
Jacob,

Have you tried the following after installing Anaconda:

conda install wxpython

This gets me wxpython on Fedora.

Chris Nelson
Post by Jacob Barhak
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
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
*Step 1: Install Ubuntu*
Burn a CD image of Ubuntu 14.04 LTS
Install Ubuntu 14.04 LTS - fresh installation
*Step 2: Install Anaconda*
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*
http://sourceforge.net/projects/wxpython/files/wxPython/3.0.0.0/
wxPython-src-3.0.0.0.tar.bz2
I extracted the contents of the file to the Desktop
*Step 4: Prepare environment to build:*
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:*
python build-wxpython.py --build_dir=../bld
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
------------ BUILD FINISHED ------------
- 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
- Run python demo/demo.py
$$$$$$$$$$$$$$$$$$$$$$$$$$
*Step 5: Prepare environment to run and run the demo:*
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
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
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
Work
2014-07-16 04:58:16 UTC
Permalink
Thanks Chris,

You are on the right track.

I did try it before trying to build. You will see the entire documentation in the link I previously sent.

In short - this does not work on Ubuntu for some reason. Probably some library incompatibility. The solution for this to run is typing:
conda install wxpython -c asmeurer


The version on Aaron Meurer's channel does install, yet it runs with warnings and code that runs on Windows does not run well there - it breaks my system.

What I am trying to do is to get WxPython to run on a fresh Ubuntu installation with anaconda and upload the package to my channel so others can install it using conda. And then my system that depends on conda can have a simple conda installation.

I did not try fedora since I invested time and efforts in configuring HPC environment in Ubuntu. If, however, no Ubuntu solution will be found I may consider switching to a different Linux distro. Thanks for pointing out Fedora as an option to test.

Jacob


Sent from my iPhone
Post by Chris Nelson
Jacob,
conda install wxpython
This gets me wxpython on Fedora.
Chris Nelson
Post by Jacob Barhak
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.
https://groups.google.com/forum/#!msg/wx-users/aKmKZeTLZEw/xVi-XJEczpkJ
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
http://sourceforge.net/projects/wxpython/files/wxPython/3.0.0.0/
wxPython-src-3.0.0.0.tar.bz2
I extracted the contents of the file to the Desktop
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/
python build-wxpython.py --build_dir=../bld
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
------------ BUILD FINISHED ------------
- 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
- Run python demo/demo.py
$$$$$$$$$$$$$$$$$$$$$$$$$$
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
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
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.
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
Jacob Barhak
2014-07-16 21:56:06 UTC
Permalink
Hi Chris,

You may wish to double check WxPython on Fedora.

I tried a fresh installation of Fedora I just burned from their web site
and installed anaconda 2.01. I tested:
conda install wxpython

It did install. However, the system breaks when you try to use the library.
I tried to import wx in python and this broke. Here is a transcript:


######### Transcript ##########

[***@localhost anaconda]$ python
Python 2.7.8 |Anaconda 2.0.1 (64-bit)| (default, Jul 2 2014, 18:08:02)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://binstar.org
Post by Work
Post by Jacob Barhak
Post by Jacob Barhak
import wx
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/home/work/anaconda/lib/python2.7/site-packages/wx-3.0-gtk2/wx/__init__.py",
line 45, in <module>
from wx._core import *
File
"/home/work/anaconda/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py",
line 4, in <module>
import _core_
ImportError: libSDL-1.2.so.0: cannot open shared object file: No such file
or directory


######## Transcript End #########


By the way, conda is able to install wxPython on Ubuntu as well. However,
there is some incompatibility that does not allow WxPython to run or even
be imported.

By now I tested 3 Linux versions, Ubuntu 12.04LTS, Ubuntu 14.04LTS, Fedora
20. It seems that WxPython does not run on Linux with Anaconda. Copying
binaries used to work in the past, yet it is no longer the case with the
newer version of WxPython since no Linux distribution I know comes with
WxPython 3.0 as a package - I see 2.8 available. In any case copying
binaries is not something a user should handle. It would be appropriate
that WxPython will have some installer for Linux - otherwise after so many
tries, it seems it is an open issue that should be treated. If anyone has a
working WxPython solution for Linux - specifically Ubuntu, please do let me
know. I hope there is at least one person on the list that has one.

Jacob
Post by Work
Thanks Chris,
You are on the right track.
I did try it before trying to build. You will see the entire documentation
in the link I previously sent.
In short - this does not work on Ubuntu for some reason. Probably some
conda install wxpython -c asmeurer
The version on Aaron Meurer's channel does install, yet it runs with
warnings and code that runs on Windows does not run well there - it breaks
my system.
What I am trying to do is to get WxPython to run on a fresh Ubuntu
installation with anaconda and upload the package to my channel so others
can install it using conda. And then my system that depends on conda can
have a simple conda installation.
I did not try fedora since I invested time and efforts in configuring HPC
environment in Ubuntu. If, however, no Ubuntu solution will be found I may
consider switching to a different Linux distro. Thanks for pointing out
Fedora as an option to test.
Jacob
Sent from my iPhone
Jacob,
conda install wxpython
This gets me wxpython on Fedora.
Chris Nelson
Post by Jacob Barhak
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
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
*Step 1: Install Ubuntu*
Burn a CD image of Ubuntu 14.04 LTS
Install Ubuntu 14.04 LTS - fresh installation
*Step 2: Install Anaconda*
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*
http://sourceforge.net/projects/wxpython/files/wxPython/3.0.0.0/
wxPython-src-3.0.0.0.tar.bz2
I extracted the contents of the file to the Desktop
*Step 4: Prepare environment to build:*
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:*
python build-wxpython.py --build_dir=../bld
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
------------ BUILD FINISHED ------------
- 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
- Run python demo/demo.py
$$$$$$$$$$$$$$$$$$$$$$$$$$
*Step 5: Prepare environment to run and run the demo:*
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
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
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.
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
Chris Nelson
2014-07-17 00:39:05 UTC
Permalink
Jacob,

Here's the output from my laptop.

Python 2.7.8 |Anaconda 2.0.1 (64-bit)| (default, Jul 2 2014, 18:08:02)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://binstar.org
Post by Jacob Barhak
Post by Work
Post by Jacob Barhak
import wx
print wx.version()
3.0.0.0 gtk2 (classic)
Let my see if I can run a more complex demo.

Chris
Post by Jacob Barhak
Hi Chris,
You may wish to double check WxPython on Fedora.
I tried a fresh installation of Fedora I just burned from their web site
conda install wxpython
It did install. However, the system breaks when you try to use the
library. I tried to import wx in python and this broke. Here is a
######### Transcript ##########
Python 2.7.8 |Anaconda 2.0.1 (64-bit)| (default, Jul 2 2014, 18:08:02)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://binstar.org
Post by Work
Post by Jacob Barhak
Post by Jacob Barhak
import wx
File "<stdin>", line 1, in <module>
File
"/home/work/anaconda/lib/python2.7/site-packages/wx-3.0-gtk2/wx/__init__.py",
line 45, in <module>
from wx._core import *
File
"/home/work/anaconda/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py",
line 4, in <module>
import _core_
ImportError: libSDL-1.2.so.0: cannot open shared object file: No such file
or directory
######## Transcript End #########
By the way, conda is able to install wxPython on Ubuntu as well. However,
there is some incompatibility that does not allow WxPython to run or even
be imported.
By now I tested 3 Linux versions, Ubuntu 12.04LTS, Ubuntu 14.04LTS, Fedora
20. It seems that WxPython does not run on Linux with Anaconda. Copying
binaries used to work in the past, yet it is no longer the case with the
newer version of WxPython since no Linux distribution I know comes with
WxPython 3.0 as a package - I see 2.8 available. In any case copying
binaries is not something a user should handle. It would be appropriate
that WxPython will have some installer for Linux - otherwise after so many
tries, it seems it is an open issue that should be treated. If anyone has a
working WxPython solution for Linux - specifically Ubuntu, please do let me
know. I hope there is at least one person on the list that has one.
Jacob
Post by Work
Thanks Chris,
You are on the right track.
I did try it before trying to build. You will see the entire
documentation in the link I previously sent.
In short - this does not work on Ubuntu for some reason. Probably some
conda install wxpython -c asmeurer
The version on Aaron Meurer's channel does install, yet it runs with
warnings and code that runs on Windows does not run well there - it breaks
my system.
What I am trying to do is to get WxPython to run on a fresh Ubuntu
installation with anaconda and upload the package to my channel so others
can install it using conda. And then my system that depends on conda can
have a simple conda installation.
I did not try fedora since I invested time and efforts in configuring HPC
environment in Ubuntu. If, however, no Ubuntu solution will be found I may
consider switching to a different Linux distro. Thanks for pointing out
Fedora as an option to test.
Jacob
Sent from my iPhone
Jacob,
conda install wxpython
This gets me wxpython on Fedora.
Chris Nelson
Post by Jacob Barhak
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
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
*Step 1: Install Ubuntu*
Burn a CD image of Ubuntu 14.04 LTS
Install Ubuntu 14.04 LTS - fresh installation
*Step 2: Install Anaconda*
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*
http://sourceforge.net/projects/wxpython/files/wxPython/3.0.0.0/
wxPython-src-3.0.0.0.tar.bz2
I extracted the contents of the file to the Desktop
*Step 4: Prepare environment to build:*
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:*
python build-wxpython.py --build_dir=../bld
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
------------ BUILD FINISHED ------------
- 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
- Run python demo/demo.py
$$$$$$$$$$$$$$$$$$$$$$$$$$
*Step 5: Prepare environment to run and run the demo:*
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
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
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.
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
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
Work
2014-07-17 07:31:44 UTC
Permalink
Thanks Chris,

This means something is different in your installation.

My installation is fresh for Fedora, Anaconda, WxPython. And the Ubuntu 14.04 LTS was also fresh.

I assume your laptop has other libraries installed and you were using it for a while, so your system may have installed one of the dependencies at some point in time for another package.

The fact that it breaks on my system means that the current WxPython conda installation is not perfect and I assume a dependency is missing. I assume that the hardware itself is not an issue here.

I also assume this can be simply fixed. So reporting this here makes sense. To make sure an installation is valid, it should pass the fresh new system install test.

Note that when I install my system I want the WxPython to work for another user that uses the OS I support.

I appreciate your reply, it shows the issue is probably small in Fedora.

Jacob


Sent from my iPhone
Post by Chris Nelson
Jacob,
Here's the output from my laptop.
Python 2.7.8 |Anaconda 2.0.1 (64-bit)| (default, Jul 2 2014, 18:08:02)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://binstar.org
Post by Jacob Barhak
Post by Work
Post by Jacob Barhak
import wx
print wx.version()
3.0.0.0 gtk2 (classic)
Let my see if I can run a more complex demo.
Chris
Post by Jacob Barhak
Hi Chris,
You may wish to double check WxPython on Fedora.
conda install wxpython
######### Transcript ##########
Python 2.7.8 |Anaconda 2.0.1 (64-bit)| (default, Jul 2 2014, 18:08:02)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://binstar.org
Post by Work
Post by Jacob Barhak
Post by Jacob Barhak
import wx
File "<stdin>", line 1, in <module>
File "/home/work/anaconda/lib/python2.7/site-packages/wx-3.0-gtk2/wx/__init__.py", line 45, in <module>
from wx._core import *
File "/home/work/anaconda/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 4, in <module>
import _core_
ImportError: libSDL-1.2.so.0: cannot open shared object file: No such file or directory
######## Transcript End #########
By the way, conda is able to install wxPython on Ubuntu as well. However, there is some incompatibility that does not allow WxPython to run or even be imported.
By now I tested 3 Linux versions, Ubuntu 12.04LTS, Ubuntu 14.04LTS, Fedora 20. It seems that WxPython does not run on Linux with Anaconda. Copying binaries used to work in the past, yet it is no longer the case with the newer version of WxPython since no Linux distribution I know comes with WxPython 3.0 as a package - I see 2.8 available. In any case copying binaries is not something a user should handle. It would be appropriate that WxPython will have some installer for Linux - otherwise after so many tries, it seems it is an open issue that should be treated. If anyone has a working WxPython solution for Linux - specifically Ubuntu, please do let me know. I hope there is at least one person on the list that has one.
Jacob
Post by Work
Thanks Chris,
You are on the right track.
I did try it before trying to build. You will see the entire documentation in the link I previously sent.
conda install wxpython -c asmeurer
The version on Aaron Meurer's channel does install, yet it runs with warnings and code that runs on Windows does not run well there - it breaks my system.
What I am trying to do is to get WxPython to run on a fresh Ubuntu installation with anaconda and upload the package to my channel so others can install it using conda. And then my system that depends on conda can have a simple conda installation.
I did not try fedora since I invested time and efforts in configuring HPC environment in Ubuntu. If, however, no Ubuntu solution will be found I may consider switching to a different Linux distro. Thanks for pointing out Fedora as an option to test.
Jacob
Sent from my iPhone
Post by Jacob Barhak
Jacob,
conda install wxpython
This gets me wxpython on Fedora.
Chris Nelson
Post by Jacob Barhak
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.
https://groups.google.com/forum/#!msg/wx-users/aKmKZeTLZEw/xVi-XJEczpkJ
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
http://sourceforge.net/projects/wxpython/files/wxPython/3.0.0.0/
wxPython-src-3.0.0.0.tar.bz2
I extracted the contents of the file to the Desktop
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/
python build-wxpython.py --build_dir=../bld
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
------------ BUILD FINISHED ------------
- 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
- Run python demo/demo.py
$$$$$$$$$$$$$$$$$$$$$$$$$$
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
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
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.
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
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
Loading...