|
From: <se...@ma...> - 2006-07-28 18:30:00
|
OK, I removed the rpms, and used a direct install of numpy-1.0b1 from the tar.gz package. Then, I tried to install matplotlib-0.87 from the tar.gz package. Apparently, same problem: python setup.py build >& build.log [root@gumbie matplotlib-0.87.3]# tail build.log gcc: src/_ns_cntr.c src/_ns_cntr.c: In function =E2=80=98Cntr_init=E2=80=99: src/_ns_cntr.c:1582: error: =E2=80=98PyArray_SBYTE=E2=80=99 undeclared (f= irst use in this function) src/_ns_cntr.c:1582: error: (Each undeclared identifier is reported only once src/_ns_cntr.c:1582: error: for each function it appears in.) src/_ns_cntr.c: In function =E2=80=98Cntr_init=E2=80=99: src/_ns_cntr.c:1582: error: =E2=80=98PyArray_SBYTE=E2=80=99 undeclared (f= irst use in this function) src/_ns_cntr.c:1582: error: (Each undeclared identifier is reported only once src/_ns_cntr.c:1582: error: for each function it appears in.) error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -m32 -march=3Di386 -mtune=3Dpentium4 -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -I/usr/lib/python2.4/site-packages/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/usr/include/python2.4 -c src/_ns_cntr.c -o build/temp.linux-i686-2.4/src/_ns_cntr.o -DSCIPY=3D1" failed with exit status 1 On Fri, 28 Jul 2006, Charlie Moad wrote: > What version of numpy are you using, and was it installed from source > or package? > > On 7/27/06, se...@ma... <se...@ma...> wrote: >> Hello, >> I am trying to install matplotlib-0.87.3 on a Fedora Core 4 box >>=20 >> The system has python-2.4 installed >>=20 >> All of the necessary addons- scipy, numarray, Numeric, gtk, etc have >> been added. >>=20 >> I am including the output of running >>=20 >> $ python setup.py install >>=20 >> Any help is appreciated. >>=20 >> -Thanks, >> -sen1 >>=20 >> Output of above script: >>=20 >> /usr/lib/python2.4/site-packages/numpy/lib/utils.py:92: >> DeprecationWarning: get_ >> numpy_include is deprecated, use get_include >> DeprecationWarning) >> running install >> running build >> running build_py >> running build_ext >> building 'matplotlib._ns_cntr' extension >> C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe >> -Wp,-D_FORTI >> FY_SOURCE=3D2 -fexceptions -m32 -march=3Di386 -mtune=3Dpentium4 >> -fasynchronous-unwind- >> tables -D_GNU_SOURCE -fPIC -fPIC >>=20 >> compile options: >> '-I/usr/lib/python2.4/site-packages/numpy/core/include -I/usr/l >> ocal/include -I/usr/include -I. -I/usr/include/python2.4 -c' >> extra options: '-DSCIPY=3D1' >> gcc: src/_ns_cntr.c >> src/_ns_cntr.c: In function 'Cntr_init': >> src/_ns_cntr.c:1582: error: 'PyArray_SBYTE' undeclared (first use in >> this functi >> on) >> src/_ns_cntr.c:1582: error: (Each undeclared identifier is reported >> only once >> src/_ns_cntr.c:1582: error: for each function it appears in.) >> src/_ns_cntr.c: In function 'Cntr_init': >> src/_ns_cntr.c:1582: error: 'PyArray_SBYTE' undeclared (first use in >> this functi >> on) >> src/_ns_cntr.c:1582: error: (Each undeclared identifier is reported >> only once >> src/_ns_cntr.c:1582: error: for each function it appears in.) >> error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g >> -pipe -Wp,-D_F >> ORTIFY_SOURCE=3D2 -fexceptions -m32 -march=3Di386 -mtune=3Dpentium4 >> -fasynchronous-unw >> ind-tables -D_GNU_SOURCE -fPIC -fPIC >> -I/usr/lib/python2.4/site-packages/numpy/co >> re/include -I/usr/local/include -I/usr/include >> -I. -I/usr/include/python2.4 -c s >> rc/_ns_cntr.c -o build/temp.linux-i686-2.4/src/_ns_cntr.o -DSCIPY=3D1" >> failed with >> exit status 1 >>=20 >>=20 >> ----------------------------------------------------------------------= --- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to shar= e=20 >> your >> opinions on IT & business topics through brief surveys -- and earn cas= h >> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV >>=20 >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>=20 >>=20 >>=20 > --=20 -----------------------------------------------------------------------= ---- | Sheldon E. Newhouse | e-mail: se...@ma... = | | Mathematics Department | | | Michigan State University | telephone: 517-355-9684 = | | E. Lansing, MI 48824-1027 USA | FAX: 517-432-1562 = | -----------------------------------------------------------------------= ---- |