Re: ImportError: libwx_gtk2u_core-3.0.so.0
Robin Dunn <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
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 > http://wxpython.org/Phoenix/snapshot-builds/ wxPython_Phoenix > > Install didn't give any errors, but importing does: > > || > $ python > Python2.7.12|Anaconda4.1.1(64-bit)|(default,Jul 22016,17:42:40) > [GCC 4.4.720120313(RedHat4.4.7-1)]on linux2 > >>>importwx > > Traceback(most recent call last): > File"<stdin>",line 1,in<module> > File"/opt/anaconda2/lib/python2.7/site-packages/wx/__init__.py",line > 17,in<module> > fromwx.core import* > File"/opt/anaconda2/lib/python2.7/site-packages/wx/core.py",line > 12,in<module> > from._core import* > ImportError:libwx_gtk2u_core-3.0.so.0:cannot open shared > objectfile:Nosuch file ordirectory > >>> > > > 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. -- Robin Dunn Software Craftsman http://wxPython.org -- You received this message because you are subscribed to the Google Groups "wxPython-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.