|
From: Venkat R. <ve...@sr...> - 2008-10-07 16:26:16
|
Hi all,
Both the latest matplotlib (0.98.3) and the maintenance release (0.91.4)
fail to compile for me with identical error msg.
I'm using Fedora Core 2, which I can't upgrade unfortunately.
I've installed python2.5.2, numpy-1.1.1, pygtk-2.4 and they seem work ok.
The relevant line is,
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/libpng12 -I/usr/local/include
-I/usr/include -I. -Isrc -Iswig -Iagg23/include -I.
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/local/include -I/usr/include -I. -I/usr/include/pygtk-2.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/X11R6/include
-I/usr/include/freetype2/config -I/data/opt/include/python2.5 -c
src/_gtkagg.cpp -o build/temp.linux-i686-2.5/src/_gtkagg.o
In file included from /data/opt/include/python2.5/Python.h:8,
from /usr/include/pygtk-2.0/pygobject.h:5,
from src/_gtkagg.cpp:10:
/data/opt/include/python2.5/pyconfig.h:942:1: warning: "_POSIX_C_SOURCE"
redefined
In file included from /usr/include/string.h:26,
from /usr/include/c++/3.3.3/cstring:51,
from src/_gtkagg.cpp:1:
/usr/include/features.h:132: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: syntax error before
`typename'
/usr/include/pygtk-2.0/pygobject.h:147: error: syntax error before
`typename'
error: command 'gcc' failed with exit status 1
Thanks for any help,
Venkat.
|
|
From: Michael D. <md...@st...> - 2008-10-07 16:32:18
|
This is a known problem with old versions of pygtk. See here: http://osdir.com/ml/python.matplotlib.general/2004-11/msg00101.html Cheers, Mike Venkat Ramanan wrote: > Hi all, > > Both the latest matplotlib (0.98.3) and the maintenance release (0.91.4) > fail to compile for me with identical error msg. > > I'm using Fedora Core 2, which I can't upgrade unfortunately. > > I've installed python2.5.2, numpy-1.1.1, pygtk-2.4 and they seem work ok. > > The relevant line is, > > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall > -Wstrict-prototypes -fPIC -I/usr/include/libpng12 -I/usr/local/include > -I/usr/include -I. -Isrc -Iswig -Iagg23/include -I. > -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. > -I/usr/local/include -I/usr/include -I. -I/usr/include/pygtk-2.0 > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 > -I/usr/include/pango-1.0 -I/usr/X11R6/include > -I/usr/include/freetype2/config -I/data/opt/include/python2.5 -c > src/_gtkagg.cpp -o build/temp.linux-i686-2.5/src/_gtkagg.o > In file included from /data/opt/include/python2.5/Python.h:8, > from /usr/include/pygtk-2.0/pygobject.h:5, > from src/_gtkagg.cpp:10: > /data/opt/include/python2.5/pyconfig.h:942:1: warning: "_POSIX_C_SOURCE" > redefined > In file included from /usr/include/string.h:26, > from /usr/include/c++/3.3.3/cstring:51, > from src/_gtkagg.cpp:1: > /usr/include/features.h:132: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: syntax error before > `typename' > /usr/include/pygtk-2.0/pygobject.h:147: error: syntax error before > `typename' > error: command 'gcc' failed with exit status 1 > > Thanks for any help, > Venkat. > > ------------------------------------------------------------------------- > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |
|
From: Venkat R. <ve...@sr...> - 2008-10-07 16:40:34
|
Thanks for the quick and helpful pointer. I have a related question not specifically matplotlib related. I installed pygtk-2.4 using "python setup.py install". Is there an easy way to remove it from the python install? Thanks, Venkat. Michael Droettboom wrote: > This is a known problem with old versions of pygtk. > > See here: > > http://osdir.com/ml/python.matplotlib.general/2004-11/msg00101.html > > Cheers, > Mike > > Venkat Ramanan wrote: >> Hi all, >> >> Both the latest matplotlib (0.98.3) and the maintenance release >> (0.91.4) fail to compile for me with identical error msg. >> >> I'm using Fedora Core 2, which I can't upgrade unfortunately. >> >> I've installed python2.5.2, numpy-1.1.1, pygtk-2.4 and they seem >> work ok. >> >> The relevant line is, >> >> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall >> -Wstrict-prototypes -fPIC -I/usr/include/libpng12 >> -I/usr/local/include -I/usr/include -I. -Isrc -Iswig -Iagg23/include >> -I. -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. >> -I/usr/local/include -I/usr/include -I. -I/usr/include/pygtk-2.0 >> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include >> -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include >> -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include >> -I/usr/include/freetype2/config -I/data/opt/include/python2.5 -c >> src/_gtkagg.cpp -o build/temp.linux-i686-2.5/src/_gtkagg.o >> In file included from /data/opt/include/python2.5/Python.h:8, >> from /usr/include/pygtk-2.0/pygobject.h:5, >> from src/_gtkagg.cpp:10: >> /data/opt/include/python2.5/pyconfig.h:942:1: warning: >> "_POSIX_C_SOURCE" redefined >> In file included from /usr/include/string.h:26, >> from /usr/include/c++/3.3.3/cstring:51, >> from src/_gtkagg.cpp:1: >> /usr/include/features.h:132: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: syntax error before >> `typename' >> /usr/include/pygtk-2.0/pygobject.h:147: error: syntax error before >> `typename' >> error: command 'gcc' failed with exit status 1 >> >> Thanks for any help, >> Venkat. >> >> ------------------------------------------------------------------------- >> >> 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 >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > |
|
From: Venkat R. <ve...@sr...> - 2008-10-07 16:43:19
|
Sorry, I seem to have installed pygtk by configure --prefix=/data/opt make make install Bye, Venkat. Venkat Ramanan wrote: > Thanks for the quick and helpful pointer. > > I have a related question not specifically matplotlib related. > > I installed pygtk-2.4 using "python setup.py install". Is there an easy > way to remove it from the python install? > > Thanks, > Venkat. > > Michael Droettboom wrote: > >> This is a known problem with old versions of pygtk. >> >> See here: >> >> http://osdir.com/ml/python.matplotlib.general/2004-11/msg00101.html >> >> Cheers, >> Mike >> >> Venkat Ramanan wrote: >> >>> Hi all, >>> >>> Both the latest matplotlib (0.98.3) and the maintenance release >>> (0.91.4) fail to compile for me with identical error msg. >>> >>> I'm using Fedora Core 2, which I can't upgrade unfortunately. >>> >>> I've installed python2.5.2, numpy-1.1.1, pygtk-2.4 and they seem >>> work ok. >>> >>> The relevant line is, >>> >>> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall >>> -Wstrict-prototypes -fPIC -I/usr/include/libpng12 >>> -I/usr/local/include -I/usr/include -I. -Isrc -Iswig -Iagg23/include >>> -I. -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. >>> -I/usr/local/include -I/usr/include -I. -I/usr/include/pygtk-2.0 >>> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include >>> -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include >>> -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include >>> -I/usr/include/freetype2/config -I/data/opt/include/python2.5 -c >>> src/_gtkagg.cpp -o build/temp.linux-i686-2.5/src/_gtkagg.o >>> In file included from /data/opt/include/python2.5/Python.h:8, >>> from /usr/include/pygtk-2.0/pygobject.h:5, >>> from src/_gtkagg.cpp:10: >>> /data/opt/include/python2.5/pyconfig.h:942:1: warning: >>> "_POSIX_C_SOURCE" redefined >>> In file included from /usr/include/string.h:26, >>> from /usr/include/c++/3.3.3/cstring:51, >>> from src/_gtkagg.cpp:1: >>> /usr/include/features.h:132: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: syntax error before >>> `typename' >>> /usr/include/pygtk-2.0/pygobject.h:147: error: syntax error before >>> `typename' >>> error: command 'gcc' failed with exit status 1 >>> >>> Thanks for any help, >>> Venkat. >>> >>> ------------------------------------------------------------------------- >>> >>> 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 >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >>> > > > ------------------------------------------------------------------------- > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: John H. <jd...@gm...> - 2008-10-07 16:43:53
|
On Tue, Oct 7, 2008 at 11:32 AM, Michael Droettboom <md...@st...> wrote: > This is a known problem with old versions of pygtk. > > See here: > > http://osdir.com/ml/python.matplotlib.general/2004-11/msg00101.html See also this FAQ: http://matplotlib.sourceforge.net/faq.html#PYGTK24 |