[wxPython-users] python 2.5 on Ubuntu Edgy

Robin Dunn robin at alldunn.com
Thu Feb 1 09:30:28 PST 2007


Michael Moriarity wrote:
> Well, installing the python2.5 dev package was the answer, and now the
> wxPython build and install work apparently successfully. However, when
> I run python2.5 and try import wx, another problem raises its ugly head:
> 
>>>> import wx
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File "wx/__init__.py", line 45, in <module>
>    from wx._core import *
>  File "wx/_core.py", line 4, in <module>
>    import _core_
> ImportError: libwx_gtk2ud_aui-2.8.so.0: cannot open shared object
> file: No such file or directory
> 
> Upon inspection, the file does exist, here:
> /opt/wx/2.8_py2.5/lib/libwx_gtk2ud_aui-2.8.so.0
> 
> I thought that I had insured it would be found there, by using
> --enable-rpath=/opt/wx/2.8_py2.5/lib
> as an argument to the original configure command, but I guess not.
> 
> Can anyone suggest what it will take to clear this (hopefully final) 
> hurdle?

Not sure why the rpath isn't working, but you can work around this 
either by setting the LD_LIBRARY_PATH variable in the environment to 
/opt/wx/2.8_py2.5/lib, or add /opt/wx/2.8_py2.5/lib to /etc/ld.so.conf 
and then running ldconfig as root to update the shared library cache.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list