Strange GTK error
Frank Schima
macsforever2000 at macports.org
Wed Jul 2 07:41:20 PDT 2008
Hi Ryan,
On Jul 1, 2008, at 6:01 PM, Ryan Schmidt wrote:
> 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.
Yes that worked. Thank you for the very informative reply!
gtk2 was the issue. As a follow-up question: for some reason, I have
both gtk1 and gtk2 active. Is there any reason to have both? In other
words, why might I have gtk1 active? I certainly did not install it
directly. I mean I understand that ports can be installed as
dependencies, but is there some port(s) that requires gtk1 over gtk2?
Is there a port command to tell me which ports may have required it?
gtk1 @1.2.10_6 (active)
gtk2 @2.12.9_0+x11 (active)
Thanks!
Frank Schima
Boulder, CO
schimaf at boulder.nist.gov
More information about the macports-users
mailing list