installation problem

Hello,
  I am trying to install matplotlib-0.87.3 on a Fedora Core 4 box

The system has python-2.4 installed

All of the necessary addons- scipy, numarray, Numeric, gtk, etc have
been added.

I am including the output of running

$ python setup.py install

Any help is appreciated.

-Thanks,
  -sen1

Output of above script:

/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=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-fasynchronous-unwind-
tables -D_GNU_SOURCE -fPIC -fPIC

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=1'
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=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-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=1"
failed with
  exit status 1

What version of numpy are you using, and was it installed from source
or package?

···

On 7/27/06, sen1@...1197... <sen1@...1197...> wrote:

Hello,
  I am trying to install matplotlib-0.87.3 on a Fedora Core 4 box

The system has python-2.4 installed

All of the necessary addons- scipy, numarray, Numeric, gtk, etc have
been added.

I am including the output of running

$ python setup.py install

Any help is appreciated.

-Thanks,
  -sen1

Output of above script:

/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=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-fasynchronous-unwind-
tables -D_GNU_SOURCE -fPIC -fPIC

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=1'
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=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-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=1"
failed with
  exit status 1

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Well, something in the build system thinks something is missing. So let us know *exactly* what RPMs you installed (with URLs preferably), or where you got the source packages for those things and how you installed them.

-- Asheesh.

···

On Thu, 27 Jul 2006, sen1@...1197... wrote:

All of the necessary addons- scipy, numarray, Numeric, gtk, etc have been added.

--
You have been selected for a secret mission.

I installed numpy-1.0b1 from a src RPM. I built the RPM from the src
RPM.

Given your question, I will try to reinstall using the tar.gz file.

Incidentally, I went back to matplotlib-0.83, and was able to install
that after disabling the TKAGG module.

I'll report back on the tar.gz thing.

Incidentally, it seems to me looking at the various modules available,
that it is wise to use the tar.gz files instead of rpms.

Is it easy to unstall one version of a module before installing
another one.

E.g. something like
    python setup.py remove

I'm sorry, but I am very new to python and its resources.

In the gnu world, of course, one usually has "make uninstall"

Thanks for any information.

-sen1

···

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, sen1@...1197... <sen1@...1197...> wrote:

Hello,
  I am trying to install matplotlib-0.87.3 on a Fedora Core 4 box

The system has python-2.4 installed

All of the necessary addons- scipy, numarray, Numeric, gtk, etc have
been added.

I am including the output of running

$ python setup.py install

Any help is appreciated.

-Thanks,
  -sen1

Output of above script:

/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=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-fasynchronous-unwind-
tables -D_GNU_SOURCE -fPIC -fPIC

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=1'
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=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-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=1"
failed with
  exit status 1

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
  ---------------------------------------------------------------------------
  > Sheldon E. Newhouse | e-mail: sen1@...1197... |
  > Mathematics Department | |
  > Michigan State University | telephone: 517-355-9684 |
  > E. Lansing, MI 48824-1027 USA | FAX: 517-432-1562 |
  ---------------------------------------------------------------------------

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@...1199... matplotlib-0.87.3]# tail build.log
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 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 ‘Cntr_init’:
src/_ns_cntr.c:1582: error: ‘PyArray_SBYTE’ undeclared (first 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=2 -fexceptions -m32 -march=i386
-mtune=pentium4 -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=1"
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, sen1@...1197... <sen1@...1197...> wrote:

Hello,
  I am trying to install matplotlib-0.87.3 on a Fedora Core 4 box

The system has python-2.4 installed

All of the necessary addons- scipy, numarray, Numeric, gtk, etc have
been added.

I am including the output of running

$ python setup.py install

Any help is appreciated.

-Thanks,
  -sen1

Output of above script:

/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=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-fasynchronous-unwind-
tables -D_GNU_SOURCE -fPIC -fPIC

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=1'
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=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-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=1"
failed with
  exit status 1

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
  ---------------------------------------------------------------------------
  > Sheldon E. Newhouse | e-mail: sen1@...1197... |
  > Mathematics Department | |
  > Michigan State University | telephone: 517-355-9684 |
  > E. Lansing, MI 48824-1027 USA | FAX: 517-432-1562 |
  ---------------------------------------------------------------------------

Is it easy to unstall one version of a module before installing
another one.

It will just overwrite the old files, so normally you don't run into
problems. There is no defacto way to remove the modules though. It
is usually pretty obvious what needs to be removed from the
site-packages folder. Sometimes it is a little more difficult.
Matplotlib installs matplotlib, pytz, dateutil, and pylab.py.

- Charlie

It looks like Travis committed a numpy 1.0 compatibility fix on July
7th. It includes the header which addresses your error. You will
have to use >=matplotlib-0.87.4 if you want to use the latest numpy.

- Charlie

···

On 7/28/06, sen1@...1197... <sen1@...1197...> wrote:

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@...1199... matplotlib-0.87.3]# tail build.log
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 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 'Cntr_init':
src/_ns_cntr.c:1582: error: 'PyArray_SBYTE' undeclared (first 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=2 -fexceptions -m32 -march=i386
-mtune=pentium4 -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=1"
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, sen1@...1197... <sen1@...1197...> wrote:
>> Hello,
>> I am trying to install matplotlib-0.87.3 on a Fedora Core 4 box
>>
>> The system has python-2.4 installed
>>
>> All of the necessary addons- scipy, numarray, Numeric, gtk, etc have
>> been added.
>>
>> I am including the output of running
>>
>> $ python setup.py install
>>
>> Any help is appreciated.
>>
>> -Thanks,
>> -sen1
>>
>> Output of above script:
>>
>> /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=2 -fexceptions -m32 -march=i386 -mtune=pentium4
>> -fasynchronous-unwind-
>> tables -D_GNU_SOURCE -fPIC -fPIC
>>
>> 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=1'
>> 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=2 -fexceptions -m32 -march=i386 -mtune=pentium4
>> -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=1"
>> failed with
>> exit status 1
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys -- and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>
>> _______________________________________________
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> matplotlib-users List Signup and Options
>>
>

--
  ---------------------------------------------------------------------------
  > Sheldon E. Newhouse | e-mail: sen1@...1197... |
  > Mathematics Department | |
  > Michigan State University | telephone: 517-355-9684 |
  > E. Lansing, MI 48824-1027 USA | FAX: 517-432-1562 |
  ---------------------------------------------------------------------------

OK, I was able to install with 0.87.4 (still no tkagg, however).

This is still with the tar.gz version of numpy-1.0b

I will try to re-install numpy from the rpms to see if that makes a
difference. -sen

BTW You guys are great! I love the way you got to my questions so
fast. Reminds me of the old redhat days (e.g. when Eric Troan, Donnie
Barnes, Marc Ewing, etc. would answer questions on the mailing lists).

I hope you can keep it up.

···

On Fri, 28 Jul 2006, Charlie Moad wrote:

It looks like Travis committed a numpy 1.0 compatibility fix on July
7th. It includes the header which addresses your error. You will
have to use >=matplotlib-0.87.4 if you want to use the latest numpy.

- Charlie

I got the numpy src.rpm from www.numpy.org

···

On Fri, 28 Jul 2006, Asheesh Laroia wrote:

On Thu, 27 Jul 2006, sen1@...1197... wrote:

All of the necessary addons- scipy, numarray, Numeric, gtk, etc have been added.

Well, something in the build system thinks something is missing. So let us know *exactly* what RPMs you installed (with URLs preferably), or where you got the source packages for those things and how you installed them.

-- Asheesh.

--
  ---------------------------------------------------------------------------
  > Sheldon E. Newhouse | e-mail: sen1@...1197... |
  > Mathematics Department | |
  > Michigan State University | telephone: 517-355-9684 |
  > E. Lansing, MI 48824-1027 USA | FAX: 517-432-1562 |
  ---------------------------------------------------------------------------

Here is the output of an attempt to install 0.87.4 with tkagg.

It installs fine without it.

Any ideas will be appreciated.

TIA,
  -sen

compile options:
'-I/usr/lib/python2.4/site-packages/numpy/core/include
-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/X11R6/include -I/usr/inc
lude/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/lib/glib-2.0/include -I/usr/i
nclude/python2.4 -c'
extra options: '-DSCIPY=1'
gcc: src/_ns_backend_gdk.c
gcc -pthread -shared build/temp.linux-i686-2.4/src/_ns_backend_gdk.o
-L/usr/local/lib -L/usr/lib -L/usr/local/lib -L/usr/lib -lgobject-2.0
-lglib-2.0 -lgtk
-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0
-lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
-o build/lib.linu
x-i686-2.4/matplotlib/backends/_ns_backend_gdk.so
building 'matplotlib.backends._tkagg' extension
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-fasynchronous-un
wind-tables -D_GNU_SOURCE -fPIC -fPIC

compile options: '-I/usr/include -I/usr/include -I/usr/local/include
-I/usr/include -I. -Isrc -Iswig -Iagg23/include
-I. -I/usr/local/include -I/usr/includ
e -I. -I/usr/include/freetype2 -I/usr/include/freetype2
-I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2
-Isrc/freetype2 -Iswig/freety
pe2 -Iagg23/include/freetype2 -I./freetype2
-I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2
-I/usr/include/python2.4 -c'
gcc: src/_tkagg.cpp
src/_tkagg.cpp:28:18: error: tk.h: No such file or directory
src/_tkagg.cpp:36: error: ISO C++ forbids declaration of ‘Tcl_Interp’
with no type
src/_tkagg.cpp:36: error: expected ‘;’ before ‘*’ token
src/_tkagg.cpp:40: error: ‘ClientData’ was not declared in this scope
src/_tkagg.cpp:40: error: ‘Tcl_Interp’ was not declared in this scope
src/_tkagg.cpp:40: error: ‘interp’ was not declared in this scope
src/_tkagg.cpp:41: error: expected primary-expression before ‘int’
src/_tkagg.cpp:41: error: expected primary-expression before ‘char’
src/_tkagg.cpp:41: error: initializer expression list treated as
compound expression
src/_tkagg.cpp:42: error: expected ‘,’ or ‘;’ before ‘{’ token
src/_tkagg.cpp: In function ‘PyObject* _tkinit(PyObject*, PyObject*)’:
src/_tkagg.cpp:174: error: ‘Tcl_Interp’ was not declared in this scope
src/_tkagg.cpp:174: error: ‘interp’ was not declared in this scope
src/_tkagg.cpp:183: error: expected primary-expression before ‘)’
token
src/_tkagg.cpp:183: error: expected `;' before ‘arg’
src/_tkagg.cpp:188: error: ‘struct TkappObject’ has no member named
‘interp’
src/_tkagg.cpp:194: error: ‘Tcl_CmdProc’ was not declared in this
scope
src/_tkagg.cpp:194: error: expected primary-expression before ‘)’
token
src/_tkagg.cpp:195: error: ‘ClientData’ was not declared in this scope
src/_tkagg.cpp:195: error: ‘Tcl_CmdDeleteProc’ was not declared in
this scope
src/_tkagg.cpp:195: error: expected primary-expression before ‘)’
token
src/_tkagg.cpp:195: error: ‘Tcl_CreateCommand’ was not declared in
this scope
src/_tkagg.cpp:28:18: error: tk.h: No such file or directory
src/_tkagg.cpp:36: error: ISO C++ forbids declaration of ‘Tcl_Interp’
with no type
src/_tkagg.cpp:36: error: expected ‘;’ before ‘*’ token
src/_tkagg.cpp:40: error: ‘ClientData’ was not declared in this scope
src/_tkagg.cpp:40: error: ‘Tcl_Interp’ was not declared in this scope
src/_tkagg.cpp:40: error: ‘interp’ was not declared in this scope
src/_tkagg.cpp:41: error: expected primary-expression before ‘int’
src/_tkagg.cpp:41: error: expected primary-expression before ‘char’
src/_tkagg.cpp:41: error: initializer expression list treated as
compound expression
src/_tkagg.cpp:42: error: expected ‘,’ or ‘;’ before ‘{’ token
src/_tkagg.cpp: In function ‘PyObject* _tkinit(PyObject*, PyObject*)’:
src/_tkagg.cpp:174: error: ‘Tcl_Interp’ was not declared in this scope
src/_tkagg.cpp:174: error: ‘interp’ was not declared in this scope
src/_tkagg.cpp:183: error: expected primary-expression before ‘)’
token
src/_tkagg.cpp:183: error: expected `;' before ‘arg’
src/_tkagg.cpp:194: error: ‘Tcl_CmdProc’ was not declared in this
scope
src/_tkagg.cpp:194: error: expected primary-expression before ‘)’
token
src/_tkagg.cpp:195: error: ‘ClientData’ was not declared in this scope
src/_tkagg.cpp:195: error: ‘Tcl_CmdDeleteProc’ was not declared in
this scope
src/_tkagg.cpp:195: error: expected primary-expression before ‘)’
token
src/_tkagg.cpp:195: error: ‘Tcl_CreateCommand’ was not declared in
this scope
error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g
-pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386
-mtune=pentium4 -fasynchronou
s-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -I/usr/include
-I/usr/include -I/usr/local/include -I/usr/include -I. -Isrc -Iswig
-Iagg23/include -I. -I/usr/loc
al/include -I/usr/include -I. -I/usr/include/freetype2
-I/usr/include/freetype2 -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/include/py
thon2.4 -c src/_tkagg.cpp -o build/temp.linux-i686-2.4/src/_tkagg.o"
failed with exit status 1

OK, I was able to install with 0.87.4 (still no tkagg, however).

What's the error you are getting with tk? Do you have the dev
packages installed?

This is still with the tar.gz version of numpy-1.0b

I will try to re-install numpy from the rpms to see if that makes a
difference.
-sen

BTW You guys are great! I love the way you got to my questions so
fast. Reminds me of the old redhat days (e.g. when Eric Troan, Donnie
Barnes, Marc Ewing, etc. would answer questions on the mailing lists).

Thanks!

···

On 7/28/06, sen1@...1197... <sen1@...1197...> wrote:

It can't find tk.h so it looks like you need to install the tk dev packages.

···

On 7/28/06, sen1@...1197... <sen1@...1197...> wrote:

Here is the output of an attempt to install 0.87.4 with tkagg.

It installs fine without it.

Any ideas will be appreciated.

TIA,
  -sen

compile options:
'-I/usr/lib/python2.4/site-packages/numpy/core/include
-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/X11R6/include -I/usr/inc
lude/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/lib/glib-2.0/include -I/usr/i
nclude/python2.4 -c'
extra options: '-DSCIPY=1'
gcc: src/_ns_backend_gdk.c
gcc -pthread -shared build/temp.linux-i686-2.4/src/_ns_backend_gdk.o
-L/usr/local/lib -L/usr/lib -L/usr/local/lib -L/usr/lib -lgobject-2.0
-lglib-2.0 -lgtk
-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0
-lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
-o build/lib.linu
x-i686-2.4/matplotlib/backends/_ns_backend_gdk.so
building 'matplotlib.backends._tkagg' extension
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-fasynchronous-un
wind-tables -D_GNU_SOURCE -fPIC -fPIC

compile options: '-I/usr/include -I/usr/include -I/usr/local/include
-I/usr/include -I. -Isrc -Iswig -Iagg23/include
-I. -I/usr/local/include -I/usr/includ
e -I. -I/usr/include/freetype2 -I/usr/include/freetype2
-I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2
-Isrc/freetype2 -Iswig/freety
pe2 -Iagg23/include/freetype2 -I./freetype2
-I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2
-I/usr/include/python2.4 -c'
gcc: src/_tkagg.cpp
src/_tkagg.cpp:28:18: error: tk.h: No such file or directory
src/_tkagg.cpp:36: error: ISO C++ forbids declaration of 'Tcl_Interp'
with no type
src/_tkagg.cpp:36: error: expected ';' before '*' token
src/_tkagg.cpp:40: error: 'ClientData' was not declared in this scope
src/_tkagg.cpp:40: error: 'Tcl_Interp' was not declared in this scope
src/_tkagg.cpp:40: error: 'interp' was not declared in this scope
src/_tkagg.cpp:41: error: expected primary-expression before 'int'
src/_tkagg.cpp:41: error: expected primary-expression before 'char'
src/_tkagg.cpp:41: error: initializer expression list treated as
compound expression
src/_tkagg.cpp:42: error: expected ',' or ';' before '{' token
src/_tkagg.cpp: In function 'PyObject* _tkinit(PyObject*, PyObject*)':
src/_tkagg.cpp:174: error: 'Tcl_Interp' was not declared in this scope
src/_tkagg.cpp:174: error: 'interp' was not declared in this scope
src/_tkagg.cpp:183: error: expected primary-expression before ')'
token
src/_tkagg.cpp:183: error: expected `;' before 'arg'
src/_tkagg.cpp:188: error: 'struct TkappObject' has no member named
'interp'
src/_tkagg.cpp:194: error: 'Tcl_CmdProc' was not declared in this
scope
src/_tkagg.cpp:194: error: expected primary-expression before ')'
token
src/_tkagg.cpp:195: error: 'ClientData' was not declared in this scope
src/_tkagg.cpp:195: error: 'Tcl_CmdDeleteProc' was not declared in
this scope
src/_tkagg.cpp:195: error: expected primary-expression before ')'
token
src/_tkagg.cpp:195: error: 'Tcl_CreateCommand' was not declared in
this scope
src/_tkagg.cpp:28:18: error: tk.h: No such file or directory
src/_tkagg.cpp:36: error: ISO C++ forbids declaration of 'Tcl_Interp'
with no type
src/_tkagg.cpp:36: error: expected ';' before '*' token
src/_tkagg.cpp:40: error: 'ClientData' was not declared in this scope
src/_tkagg.cpp:40: error: 'Tcl_Interp' was not declared in this scope
src/_tkagg.cpp:40: error: 'interp' was not declared in this scope
src/_tkagg.cpp:41: error: expected primary-expression before 'int'
src/_tkagg.cpp:41: error: expected primary-expression before 'char'
src/_tkagg.cpp:41: error: initializer expression list treated as
compound expression
src/_tkagg.cpp:42: error: expected ',' or ';' before '{' token
src/_tkagg.cpp: In function 'PyObject* _tkinit(PyObject*, PyObject*)':
src/_tkagg.cpp:174: error: 'Tcl_Interp' was not declared in this scope
src/_tkagg.cpp:174: error: 'interp' was not declared in this scope
src/_tkagg.cpp:183: error: expected primary-expression before ')'
token
src/_tkagg.cpp:183: error: expected `;' before 'arg'
src/_tkagg.cpp:194: error: 'Tcl_CmdProc' was not declared in this
scope
src/_tkagg.cpp:194: error: expected primary-expression before ')'
token
src/_tkagg.cpp:195: error: 'ClientData' was not declared in this scope
src/_tkagg.cpp:195: error: 'Tcl_CmdDeleteProc' was not declared in
this scope
src/_tkagg.cpp:195: error: expected primary-expression before ')'
token
src/_tkagg.cpp:195: error: 'Tcl_CreateCommand' was not declared in
this scope
error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g
-pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386
-mtune=pentium4 -fasynchronou
s-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -I/usr/include
-I/usr/include -I/usr/local/include -I/usr/include -I. -Isrc -Iswig
-Iagg23/include -I. -I/usr/loc
al/include -I/usr/include -I. -I/usr/include/freetype2
-I/usr/include/freetype2 -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/include/py
thon2.4 -c src/_tkagg.cpp -o build/temp.linux-i686-2.4/src/_tkagg.o"
failed with exit status 1