I’m trying to install wxPython-Phoenix, all seems to work alright but than the import gives an error. Anyone a hint what I’m doing wrong/how I can get this going? I had an older version, wxPython-3.0.0 before and that worked (somewhat).
Install didn’t give any errors, but importing does:
$ python
Python 2.7.12 |Anaconda 4.1.1 (64-bit)| (default, Jul 2 2016, 17:42:40)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
import wx
Traceback (most recent call last):
File “”, line 1, in
File “/opt/anaconda2/lib/python2.7/site-packages/wx/init.py”, line 17, in
from wx.core import *
File “/opt/anaconda2/lib/python2.7/site-packages/wx/core.py”, line 12, in
from ._core import *
ImportError: libwx_gtk2u_core-3.0.so.0: cannot open shared object file: No such file or directory
``
Is there a package missing? Any hints what/how I can install?
I’m trying to install wxPython-Phoenix, all seems to work alright but than the import gives an error. Anyone a hint what I’m doing wrong/how I can get this going? I had an older version, wxPython-3.0.0 before and that worked (somewhat).
Install didn’t give any errors, but importing does:
$ python
Python 2.7.12 |Anaconda 4.1.1 (64-bit)| (default, Jul 2 2016, 17:42:40)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
import wx
Traceback (most recent call last):
File “”, line 1, in
File “/opt/anaconda2/lib/python2.7/site-packages/wx/init.py”, line 17, in
from wx.core import *
File “/opt/anaconda2/lib/python2.7/site-packages/wx/core.py”, line 12, in
from ._core import *
ImportError: libwx_gtk2u_core-3.0.so.0: cannot open shared object file: No such file or directory
``
Is
there a package missing? Any hints what/how I can install?
Is there a libwx_gtk2u_core-3.0.so.0 in /opt/anaconda2/lib/python2.7/site-packages/wx? The default build options are such that it should be loading the shared libs from the same
location, but if you do have the wx libs present in that folder then perhaps something is blocking that ability. One possibility is if you have and LD_* variables set in the environment, that may be changing where it looks for shared libs. If you don’t then you can also try setting LD_LIBRARY_PATH to /opt/anaconda2/lib/python2.7/site-packages/wx
and it may fix it.
If you don’t have that lib (and others) in /opt/anaconda2/lib/python2.7/site-packages/wx then something did go wrong with the build and you’ll need to take a closer look at the output
of the build to look for clues.
I don't use pip much so I can't help with that, but I'm maintaining Fedora packages for Phoenix in Copr. If you're interested in RPMs, I could try building them for CentOS 7 if you'd like to try them.
Scott
···
On Thu, 6 Oct 2016, Bastiaan Bergman wrote:
I'm trying to install wxPython-Phoenix, all seems to work alright but than
the import gives an error. Anyone a hint what I'm doing wrong/how I can get
this going? I had an older version, wxPython-3.0.0 before and that worked
(somewhat).
I'm on Centos 7.
Used this command to install:
sudo pip install --upgrade --trusted-host wxpython.org --pre -f Index of /Phoenix/snapshot-builds wxPython_Phoenix