matplotlib, gtk, and libpangocairo problem

Dexter Douglas luomo1138 at yahoo.com
Wed Jul 2 16:54:30 PDT 2008


Hello,

Thanks!

I ran 

sudo port -ncuf upgrade py25-gtk
sudo port -ncuf upgrade py25-matplotlib

This solved the problem!


By the way, I ran 
"port provides /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/gtk-2.0/gtk/_gtk.so"

to see what port provides this library since it was the one referring to the libpangocairo library.  It said 

/opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/_gtk.so is not provided by a MacPorts port.

Thanks.

--- On Wed, 7/2/08, Ryan Schmidt <ryandesign at macports.org> wrote:

> From: Ryan Schmidt <ryandesign at macports.org>
> Subject: Re: matplotlib, gtk, and libpangocairo problem
> To: luomo1138 at yahoo.com
> Cc: macports-users at lists.macosforge.org
> Date: Wednesday, July 2, 2008, 6:07 PM
> On Jul 2, 2008, at 16:49, Dexter Douglas wrote:
> 
> > I am trying to run some matplotlib examples.  I get
> the error  
> > below.  All of my ports are up-to-date.  Does anyone
> know what is  
> > wrong?
> >
> > Thanks.
> >
> > [begin error]
> > File
> "/opt/local/lib/python2.5/site-packages/matplotlib/backends/
> 
> > backend_gtk.p
> > y", line 7, in <module>
> >     import gtk; gdk = gtk.gdk
> >   File
> "/opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/ 
> > __init__.py", line 48, in <module>
> >     from gtk import _gtk
> > 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/Library/Frameworks/Python.framework/ 
> >
> Versions/2.5/lib/python2.5/site-packages/gtk-2.0/gtk/_gtk.so
> >   Reason: Incompatible library version: _gtk.so
> requires version  
> > 2003.0.0 or later, but libpangocairo-1.0.0.dylib
> provides version  
> > 2001.0.0
> > [end error]
> 
> This was just answered here:
> 
> http://lists.macosforge.org/pipermail/macports-users/2008-July/
> 
> 010839.html


      


More information about the macports-users mailing list