Strange GTK error

Ryan Schmidt ryandesign at macports.org
Tue Jul 1 17:01:01 PDT 2008


On Jul 1, 2008, at 18:00, Frank Schima wrote:

> I'm using the Python 2.5.2 from MacPorts on a Mac Pro with 10.5.4.
>
> When I attempt to do the following:
>
>     from gtk import _gtk
>
> I get the following error:
>
> ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/ 
> Versions/2.5/lib/python2.5/site-packages/gtk-2.0/gtk/_gtk.so, 2):  
> Library not loaded: /opt/local/lib/libpangocairo-1.0.0.dylib
>   Referenced from: /opt/local/lib/libgtk-x11-2.0.0.dylib
>   Reason: Incompatible library version: libgtk-x11-2.0.0.dylib  
> requires version 2002.0.0 or later, but libpangocairo-1.0.0.dylib  
> provides version 2001.0.0
>
> Any ideas what might be wrong with my setup?


Rebuild (sudo port -ncuf upgrade foo) whatever port provides /opt/ 
local/lib/libgtk-x11-2.0.0.dylib (discover this with "port provides / 
opt/local/lib/libgtk-x11-2.0.0.dylib") so that it re-links itself  
with the version of libpangocairo that you currently have.



More information about the macports-users mailing list