installation

It is strongly discouraged to try to build matplotlib from

    > source on windows. Setting up your windows environment to
    > build the source is difficult and time consuming. Please
    > use the windows installers at the download site instead.

I wouldn't go as far to say it is strongly discouraged; merely that it
is not for the faint of heart. For enterprising souls who know there
way around a compiler, I would encourage it, since we would have more
hands to help with building and testing svn on windows. As for the
specific error messages, it looks like you do not have the tk
development headers installed or for some reason your build is not
finding them. Please see the header for win32 in setupext.py and
references to the READMEs therein if you want to pursue this.

JDH

My mistake. Not for the faint of heart is a much better way of putting it.

···

On Monday 04 September 2006 12:15 pm, John Hunter wrote:

    > It is strongly discouraged to try to build matplotlib from
    > source on windows. Setting up your windows environment to
    > build the source is difficult and time consuming. Please
    > use the windows installers at the download site instead.

I wouldn't go as far to say it is strongly discouraged; merely that it
is not for the faint of heart. For enterprising souls who know there
way around a compiler, I would encourage it, since we would have more
hands to help with building and testing svn on windows. As for the
specific error messages, it looks like you do not have the tk
development headers installed or for some reason your build is not
finding them. Please see the header for win32 in setupext.py and
references to the READMEs therein if you want to pursue this.

Hey Charlie thanks for the info.

I went ahead and installed Active Tcl
I removed microsft visual studio 2003 .net from my computer because I never
used it, and I did not want it on here in the first place but i had it on
here from being an intern over the summer.
C:\matplotlib\trunk\matplotlib>c:\Python24\python.exe setup.py install
GTK requires pygtk
building tkagg 2 4
        Building for python24
GTKAgg requires pygtk
running install
running build
running build_py
running build_ext
No module named msvccompiler in numpy.distutils, trying from distutils..
building 'matplotlib.backends._tkagg' extension
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo
/Ox
/MD /W3 /GX
/DNDEBUG -Iwin32_static/include/tcl84 -I. -Isrc -Iswig -Iagg23/incl
ude -I. -I. -Iwin32_static/include/tcl84\freetype2 -I.\freetype2
-Isrc\freetype2
-Iswig\freetype2 -Iagg23/include\freetype2 -I.\freetype2 -I.\freetype2
-Ic:\Pyt
hon24\include -Ic:\Python24\PC /Tpsrc/_tkagg.cpp
/Fobuild\temp.win32-2.4\Release
\src/_tkagg.obj
_tkagg.cpp
src\_tkagg.cpp(28) : fatal error C1083: Cannot open include file: 'tk.h': No
suc
h file or directory
error: Command ""C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\bin\cl.e
xe" /c /nologo /Ox /MD /W3 /GX
/DNDEBUG -Iwin32_static/include/tcl84 -I. -Isrc -
Iswig -Iagg23/include -I. -I. -Iwin32_static/include/tcl84\freetype2
-I.\freetyp
e2 -Isrc\freetype2 -Iswig\freetype2 -Iagg23/include\freetype2 -I.\freetype2
-I.\
freetype2 -Ic:\Python24\include -Ic:\Python24\PC /Tpsrc/_tkagg.cpp
/Fobuild\temp
.win32-2.4\Release\src/_tkagg.obj" failed with exit status 2

This is the error i got after my first try at

python setup.py install

after it did not work is when i uninstalled .net 2003. and i recieve this
error currently.
C:\matplotlib\trunk\matplotlib>c:\Python24\python.exe setup.py install
GTK requires pygtk
building tkagg 2 4
        Building for python24
GTKAgg requires pygtk
running install
running build
running build_py
running build_ext
No module named msvccompiler in numpy.distutils, trying from distutils..
error: The .NET Framework SDK needs to be installed before building
extensions f
or Python.

Has anyone seen this one? I would not be so persistent as to trying to
install the current SVN except that I need one of the algorithms in numpy
version 1.0b2 and above.
I am also going to post this on the numpy mailing list because it says the
error is in numpy.distutils.

···

You need to install the tcl/tk headers as Darren mentioned. I just
install ActiveTcl and the build should pick up on it no problem.