On Wed, Nov 25, 2009 at 8:01 AM, federico roncarolo <federico.roncar...@cern.ch> wrote: > Hi, > > I'm new with matplotlib and > I'm trying to embed matplotlib objects into pygtk. > > I tried different backend imports (GTKAgg, GTK, GTKCairo) and always > get the same error (attached below) referring to the missing > _backend_gdk package. > > I work with MAC os x 10.6, python 2.6, pygtk2, matplotlib 0.99.1.1, > all installed via macports , even though I tried to install matplotlib > from source via the setup.py script and I get exactely the same problem. > > Could you help? >
matplotlib is probably not finding pygtk at build time -- you need have pkg-config installed, and locate your pygtk-2.0.pc file and then add that path to your PKG_CONFIG_PATH. You can check the output of the build script at the beginning in the section OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.27 Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 wxPython: 2.8.8.0 * WxAgg extension not required for wxPython >= 2.8 Gtk+: gtk+: 2.14.4, glib: 2.18.2, pygtk: 2.13.0, pygobject: 2.15.3 Mac OS X native: no Qt: Qt: 3.3.8, PyQt: 3.17.4 Qt4: Qt: 4.4.3, PyQt4: 4.4.4 Cairo: 1.4.12 You need to have an entry for Gtk or else the backend will not be built. JDH ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users