problems installing

HI, I'm getting an error message when I try to install. Can anyone give me
some help please? Thanks in advance.

-bash-3.00$ uname -a
Linux skagit 2.6.9-42.0.2.ELsmp #1 SMP Thu Aug 17 17:57:31 EDT 2006 x86_64
x86_64 x86_64 GNU/Linux

-bash-3.00$ python
Python 2.3.4 (#1, Sep 26 2006, 17:25:54)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import numpy
print numpy.__version__

1.0.1

In file included from /usr/include/python2.3/Python.h:8,
                 from /usr/include/pygtk-2.0/pygobject.h:5,
                 from src/_gtkagg.cpp:10:
/usr/include/python2.3/pyconfig.h:850:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/string.h:26,
                 from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/cstring:51,
                 from src/_gtkagg.cpp:1:
/usr/include/features.h:150:1: warning: this is the location of the previous
definition
In file included from src/_gtkagg.cpp:10:
/usr/include/pygtk-2.0/pygobject.h:140: error: expected `,' or `...' before
"typename"
/usr/include/pygtk-2.0/pygobject.h:147: error: expected `,' or `...' before
"typename"
In file included from /usr/include/python2.3/Python.h:8,
                 from /usr/include/pygtk-2.0/pygobject.h:5,
                 from src/_gtkagg.cpp:10:
/usr/include/python2.3/pyconfig.h:850:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/string.h:26,
                 from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/cstring:51,
                 from src/_gtkagg.cpp:1:
/usr/include/features.h:150:1: warning: this is the location of the previous
definition
In file included from src/_gtkagg.cpp:10:
/usr/include/pygtk-2.0/pygobject.h:140: error: expected `,' or `...' before
"typename"
/usr/include/pygtk-2.0/pygobject.h:147: error: expected `,' or `...' before
"typename"
error: Command "/usr/bin/gcc -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -m64
-D_GNU_SOURCE -fPIC -fPIC -I/usr/local/include -I/usr/include -I. -Isrc
-Iswig -Iagg23/include -I. -I/usr/local/include -I/usr/include -I.
-I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2
-Isrc/freetype2 -Iswig/freetype2 -Iagg23/include/freetype2 -I./freetype2
-I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2
-I/usr/local/include -I/usr/include -I. -I/usr/include/pygtk-2.0
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0
-I/usr/lib64/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/freetype2/config -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/python2.3 -c src/_gtkagg.cpp -o
build/temp.linux-x86_64-2.3/src/_gtkagg.o" failed with exit status 1
-bash-3.00$

out (2.39 KB)

I'm guessing that you are installing on a system that includes pygtk-2.4
(RHEL?). If that is the case, it is probably a bug in pygtk, see
http://matplotlib.sourceforge.net/faq.html#PYGTK24

If this is not the case, please post again with more information concerning os
and version, etc.

Darren

···

On Monday 22 January 2007 18:05, Peter J. Bismuti wrote:

HI, I'm getting an error message when I try to install. Can anyone give me
some help please? Thanks in advance.

-bash-3.00$ uname -a
Linux skagit 2.6.9-42.0.2.ELsmp #1 SMP Thu Aug 17 17:57:31 EDT 2006 x86_64
x86_64 x86_64 GNU/Linux

-bash-3.00$ python
Python 2.3.4 (#1, Sep 26 2006, 17:25:54)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> import numpy
>>> print numpy.__version__

1.0.1

In file included from /usr/include/python2.3/Python.h:8,
                 from /usr/include/pygtk-2.0/pygobject.h:5,
                 from src/_gtkagg.cpp:10:
/usr/include/python2.3/pyconfig.h:850:1: warning: "_POSIX_C_SOURCE"
redefined In file included from /usr/include/string.h:26,
                 from
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/cstrin
g:51, from src/_gtkagg.cpp:1:
/usr/include/features.h:150:1: warning: this is the location of the
previous definition
In file included from src/_gtkagg.cpp:10:
/usr/include/pygtk-2.0/pygobject.h:140: error: expected `,' or `...' before
"typename"
/usr/include/pygtk-2.0/pygobject.h:147: error: expected `,' or `...' before
"typename"
In file included from /usr/include/python2.3/Python.h:8,
                 from /usr/include/pygtk-2.0/pygobject.h:5,
                 from src/_gtkagg.cpp:10:
/usr/include/python2.3/pyconfig.h:850:1: warning: "_POSIX_C_SOURCE"
redefined In file included from /usr/include/string.h:26,
                 from
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/cstrin
g:51, from src/_gtkagg.cpp:1:
/usr/include/features.h:150:1: warning: this is the location of the
previous definition
In file included from src/_gtkagg.cpp:10:
/usr/include/pygtk-2.0/pygobject.h:140: error: expected `,' or `...' before
"typename"
/usr/include/pygtk-2.0/pygobject.h:147: error: expected `,' or `...' before
"typename"
error: Command "/usr/bin/gcc -fno-strict-aliasing -DNDEBUG -O2 -g -pipe
-m64 -D_GNU_SOURCE -fPIC -fPIC -I/usr/local/include -I/usr/include -I.
-Isrc -Iswig -Iagg23/include -I. -I/usr/local/include -I/usr/include -I.
-I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2
-Isrc/freetype2 -Iswig/freetype2 -Iagg23/include/freetype2 -I./freetype2
-I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2
-I/usr/local/include -I/usr/include -I. -I/usr/include/pygtk-2.0
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
-I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/X11R6/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/freetype2/config -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/python2.3 -c src/_gtkagg.cpp
-o build/temp.linux-x86_64-2.3/src/_gtkagg.o" failed with exit status 1
-bash-3.00$