tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: py-wxWidget issue? or just python... ?



On Mon, Feb 20, 2012 at 4:41 PM, Anthony Mallet 
<anthony.mallet%laas.fr@localhost> wrote:
> Hi,
>
> Just ran into this issue while running a py-wxWidget enabl(oat)ed application:
>  File 
> "/usr/local/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/lib/wxcairo.py",
>  line 251, in _findCairoLib
>    raise RuntimeError, "Unable to find the Cairo shared library"
> RuntimeError: Unable to find the Cairo shared library
>
> The file in question at the line in question does essentially this:
>    for name in ['cairo', 'cairo-2', 'libcairo-2']:
>        location = ctypes.util.find_library(name)
>        if location:
>            break
>
>    if not location:
>        raise RuntimeError, "Unable to find the Cairo shared library"
>
> Of course, my /usr/local/lib/libcairo.so exists... but the python find_library
> is apparently not smart enough to look where it should.
>
> Anyone knows a workaround or how to fix this properly? (pkg_delete -r python,
> while sensible, is not acceptable ;)


Can you set an $LD_LIBRARY_PATH and get this to work?


Home | Main Index | Thread Index | Old Index