installation fails on Ibex (ubunt 8.10)

Hi!

A few days ago I switched to ubuntu 8.10 (intrepid ibex) and tried to install matplotlib (the current version and 0.98.1 as well - both attempts failed)[I thought I would have installed all requirement :-/].

By the way I didn't have any problems with the previous ubuntu...

I tried the: python setup.py build and received:

flo@...2374...:~/Desktop/matplotlib-0.98.1$ sudo python setup.py build

···

============================================================================
BUILDING MATPLOTLIB
             matplotlib: 0.98.1
                 python: 2.5.2 (r252:60911, Oct 5 2008, 19:24:49) [GCC
                         4.3.2]
               platform: linux2

REQUIRED DEPENDENCIES
                  numpy: 1.2.1
              freetype2: 9.18.3

OPTIONAL BACKEND DEPENDENCIES
                 libpng: 1.2.27
                Tkinter: no
                         * Using default library and include directories for
                         * Tcl and Tk because a Tk window failed to open.
                         * You may need to define DISPLAY for Tk to work so
                         * that setup can determine where your libraries are
                         * located. Tkinter present, but header files are not
                         * found. You may need to install development
                         * packages.
               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
                         * Could not find Gtk+ headers in any of
                         * '/usr/local/include', '/usr/include', '.'
                     Qt: Qt: 3.3.8, PyQt: 3.17.4
                    Qt4: Qt: 4.4.1, PyQt4: 4.4.3
                  Cairo: 1.4.12

OPTIONAL DATE/TIMEZONE DEPENDENCIES
               datetime: present, version unknown
               dateutil: matplotlib will provide
                   pytz: matplotlib will provide

OPTIONAL USETEX DEPENDENCIES
                 dvipng: no
            ghostscript: 8.63
                  latex: no
                pdftops: 3.00

EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
              configobj: matplotlib will provide
       enthought.traits: no

[Edit setup.cfg to suppress the above messages]

running build
running build_py
copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.linux-i686-2.5/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf -> build/lib.linux-i686-2.5/matplotlib/mpl-data
running build_ext
building 'matplotlib.backends._backend_gdk' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/python2.5/site-packages/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c src/backend_gdk.c -o build/temp.linux-i686-2.5/src/backend_gdk.o
src/backend_gdk.c:9:25: error: pygtk/pygtk.h: No such file or directory
src/backend_gdk.c: In Funktion »pixbuf_get_pixels_array«:
src/backend_gdk.c:28: Fehler: »PyGObject« nicht deklariert (erste Benutzung in dieser Funktion)
src/backend_gdk.c:28: Fehler: (Jeder nicht deklarierte Bezeichner wird nur einmal aufgeführt
src/backend_gdk.c:28: Fehler: für jede Funktion in der er auftritt.)
src/backend_gdk.c:28: Fehler: »py_pixbuf« nicht deklariert (erste Benutzung in dieser Funktion)
src/backend_gdk.c:29: Fehler: »GdkPixbuf« nicht deklariert (erste Benutzung in dieser Funktion)
src/backend_gdk.c:29: Fehler: »gdk_pixbuf« nicht deklariert (erste Benutzung in dieser Funktion)
src/backend_gdk.c:37: Warnung: Implizite Deklaration der Funktion »GDK_PIXBUF«
src/backend_gdk.c:43: Warnung: Implizite Deklaration der Funktion »gdk_pixbuf_get_height«
src/backend_gdk.c:44: Warnung: Implizite Deklaration der Funktion »gdk_pixbuf_get_width«
src/backend_gdk.c:45: Warnung: Implizite Deklaration der Funktion »gdk_pixbuf_get_has_alpha«
src/backend_gdk.c:48: Warnung: Implizite Deklaration der Funktion »gdk_pixbuf_get_pixels«
src/backend_gdk.c:53: Warnung: Implizite Deklaration der Funktion »gdk_pixbuf_get_rowstride«
src/backend_gdk.c: In Funktion »init_backend_gdk«:
src/backend_gdk.c:72: Warnung: Implizite Deklaration der Funktion »init_pygtk«
error: command 'gcc' failed with exit status 1
flo@...2374...:~/Desktop/matplotlib-0.98.1$

Maybe one of you might have an idea what's missing?
I would really like to keep on working with matplotlib---

Thanks alot!

Florian Koelling wrote:

Hi!

A few days ago I switched to ubuntu 8.10 (intrepid ibex) and tried to install matplotlib (the current version and 0.98.1 as well - both attempts failed)[I thought I would have installed all requirement :-/].

By the way I didn't have any problems with the previous ubuntu...

I tried the: python setup.py build and received:

flo@...2374...:~/Desktop/matplotlib-0.98.1$ sudo python setup.py build

BUILDING MATPLOTLIB
             matplotlib: 0.98.1
                 python: 2.5.2 (r252:60911, Oct 5 2008, 19:24:49) [GCC
                         4.3.2]
               platform: linux2

REQUIRED DEPENDENCIES
                  numpy: 1.2.1
              freetype2: 9.18.3

OPTIONAL BACKEND DEPENDENCIES
                 libpng: 1.2.27
                Tkinter: no
                         * Using default library and include directories for
                         * Tcl and Tk because a Tk window failed to open.
                         * You may need to define DISPLAY for Tk to work so
                         * that setup can determine where your libraries are
                         * located. Tkinter present, but header files are not
                         * found. You may need to install development
                         * packages.
               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
                         * Could not find Gtk+ headers in any of
                         * '/usr/local/include', '/usr/include', '.'
                     Qt: Qt: 3.3.8, PyQt: 3.17.4
                    Qt4: Qt: 4.4.1, PyQt4: 4.4.3
                  Cairo: 1.4.12

OPTIONAL DATE/TIMEZONE DEPENDENCIES
               datetime: present, version unknown
               dateutil: matplotlib will provide
                   pytz: matplotlib will provide

OPTIONAL USETEX DEPENDENCIES
                 dvipng: no
            ghostscript: 8.63
                  latex: no
                pdftops: 3.00

EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
              configobj: matplotlib will provide
       enthought.traits: no

[Edit setup.cfg to suppress the above messages]

running build
running build_py
copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.linux-i686-2.5/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf -> build/lib.linux-i686-2.5/matplotlib/mpl-data
running build_ext
building 'matplotlib.backends._backend_gdk' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/python2.5/site-packages/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c src/backend_gdk.c -o build/temp.linux-i686-2.5/src/backend_gdk.o
src/backend_gdk.c:9:25: error: pygtk/pygtk.h: No such file or directory
src/backend_gdk.c: In Funktion »pixbuf_get_pixels_array«:
src/backend_gdk.c:28: Fehler: »PyGObject« nicht deklariert (erste Benutzung in dieser Funktion)
src/backend_gdk.c:28: Fehler: (Jeder nicht deklarierte Bezeichner wird nur einmal aufgeführt
src/backend_gdk.c:28: Fehler: für jede Funktion in der er auftritt.)
src/backend_gdk.c:28: Fehler: »py_pixbuf« nicht deklariert (erste Benutzung in dieser Funktion)
src/backend_gdk.c:29: Fehler: »GdkPixbuf« nicht deklariert (erste Benutzung in dieser Funktion)
src/backend_gdk.c:29: Fehler: »gdk_pixbuf« nicht deklariert (erste Benutzung in dieser Funktion)
src/backend_gdk.c:37: Warnung: Implizite Deklaration der Funktion »GDK_PIXBUF«
src/backend_gdk.c:43: Warnung: Implizite Deklaration der Funktion »gdk_pixbuf_get_height«
src/backend_gdk.c:44: Warnung: Implizite Deklaration der Funktion »gdk_pixbuf_get_width«
src/backend_gdk.c:45: Warnung: Implizite Deklaration der Funktion »gdk_pixbuf_get_has_alpha«
src/backend_gdk.c:48: Warnung: Implizite Deklaration der Funktion »gdk_pixbuf_get_pixels«
src/backend_gdk.c:53: Warnung: Implizite Deklaration der Funktion »gdk_pixbuf_get_rowstride«
src/backend_gdk.c: In Funktion »init_backend_gdk«:
src/backend_gdk.c:72: Warnung: Implizite Deklaration der Funktion »init_pygtk«
error: command 'gcc' failed with exit status 1
flo@...2374...:~/Desktop/matplotlib-0.98.1$

Maybe one of you might have an idea what's missing?

I ran into exactly the same thing last night after doing an upgrade from hardy to intrepid, and I tracked it down this morning. You need to install the python-gtk2-dev package.

I have committed a change to svn that provides more informative output from mpl's setup when this error occurs.

Eric

···

I would really like to keep on working with matplotlib---

Thanks alot!

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options