Error installing matplotlib on cygwin

Thank you.

I tried what you suggested and the error I got before disappeared. But now I get a whole bunch of errors coming from /usr/include/tkDecls.h , for example:

/usr/include/tkDecls.h:350: error: 'Colormap' does not name a type
/usr/include/tkDecls.h:371: error: 'GC' does not name a type
/usr/include/tkDecls.h:401: error: 'Pixmap' does not name a type
/usr/include/tkDecls.h:418: error: 'Atom' has not been declared

and about a hundred or so more. But they all come from the same file. What is the problem here?

-Alex Mont


----- Original Message ----- From: "Paul Kienzle" <pkienzle@...870...>
To: "Alexander Mont" <alexmont1@...614...>
Cc: <>
Sent: Wednesday, November 09, 2005 8:59 AM
Subject: Re: Error installing matplotlib on cygwin

On Tue, Nov 08, 2005 at 10:41:06PM -0500, Alexander Mont wrote:

I am trying to install matplotlib on cygwin. When I try to do so it gives me the following message:

GTK requires pygtk
GTKAgg requires pygtk
running build
running build_py
running build_ext
building 'matplotlib._agg' extension
gcc -fno-strict-aliating -DNDEBUG -g -03 -Wall -Wstrict-prototypes -Iagg23/include -Isrc -Iswig -I/usr/include/python2.4 -c src/agg.cxx -o build/temp.cygwin-1.5.18-i686-2.4/src/agg.o
C:\cygwin\bin\python2.4.exe (260) *** unable to remap C:\cygwin\bin\tk84.dll to same address as parent(0x18C90000) != 0x191A0000
1068 [main] python 1216 fork_parent: child 260 died waiting for dll loading
error: Error


How can I fix this?

You can try the solution outlined in the following thread:

If this doesn't work for you, then try the standard windows python
distribution and MinGW as the compiler, following the instructions on
this page:

- Paul