tech-pkg archive

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

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



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 ;)

Cheers,
Anthony


Home | Main Index | Thread Index | Old Index