Help with MatPlotLib

Hello,

I am trying to install MatPlotLib and I can't seem to get it to work.
Any help with this problem would be greatly appreciated.

THANKS!

Below are are facts about my system.

$ uname -a
CYGWIN_NT-5.1 (Prefer not to display) 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin

$ python setup.py build

···

============================================================================
BUILDING MATPLOTLIB
            matplotlib: 0.98.3
                python: 2.5.1 (r251:54863, May 18 2007, 16:56:43) [GCC
                        3.4.4 (cygming special, gdc 0.12, using dmd 0.125)]
              platform: cygwin

REQUIRED DEPENDENCIES
                 numpy: 1.2.1
             freetype2: 9.15.3

OPTIONAL BACKEND DEPENDENCIES
                libpng: 1.2.12
Traceback (most recent call last):
  File "setup.py", line 126, in <module>
    if check_for_tk() or (options['build_tkagg'] is True):
  File "/c/MatPlotLib/matplotlib/setupext.py", line 840, in check_for_tk
    explanation = add_tk_flags(module)
  File "/c/MatPlotLib/matplotlib/setupext.py", line 1084, in add_tk_flags
    result = parse_tcl_config(tcl_lib_dir, tk_lib_dir)
  File "/c/MatPlotLib/matplotlib/setupext.py", line 946, in parse_tcl_config
    tk_lib = tk_vars.get("default", "TK_LIB_SPEC")[1:-1].split()[0][2:]
IndexError: list index out of range

dcaceres@(prefer not to display) /c/MatPlotLib/matplotlib
$ gcc --version
gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I'm not a regular Windows user myself, but the following threads from a couple weeks ago might be relevant:

http://www.nabble.com/Matplotlib-in-Cygwin-td20069116.html

http://www.nabble.com/failure-with-python-setup.py-build-td20092879.html

Please let us know how that works for you.

Developers: Maybe we need to update setupext.py (yet again) for newer Cygwins?

Dennis Caceres wrote:

···

Hello,

I am trying to install MatPlotLib and I can't seem to get it to work.
Any help with this problem would be greatly appreciated.

THANKS!

Below are are facts about my system.

$ uname -a
CYGWIN_NT-5.1 (Prefer not to display) 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin

$ python setup.py build

BUILDING MATPLOTLIB
            matplotlib: 0.98.3
                python: 2.5.1 (r251:54863, May 18 2007, 16:56:43) [GCC
                        3.4.4 (cygming special, gdc 0.12, using dmd 0.125)]
              platform: cygwin

REQUIRED DEPENDENCIES
                 numpy: 1.2.1
             freetype2: 9.15.3

OPTIONAL BACKEND DEPENDENCIES
                libpng: 1.2.12
Traceback (most recent call last):
  File "setup.py", line 126, in <module>
    if check_for_tk() or (options['build_tkagg'] is True):
  File "/c/MatPlotLib/matplotlib/setupext.py", line 840, in check_for_tk
    explanation = add_tk_flags(module)
  File "/c/MatPlotLib/matplotlib/setupext.py", line 1084, in add_tk_flags
    result = parse_tcl_config(tcl_lib_dir, tk_lib_dir)
  File "/c/MatPlotLib/matplotlib/setupext.py", line 946, in parse_tcl_config
    tk_lib = tk_vars.get("default", "TK_LIB_SPEC")[1:-1].split()[0][2:]
IndexError: list index out of range

dcaceres@(prefer not to display) /c/MatPlotLib/matplotlib
$ gcc --version
gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

-------------------------------------------------------------------------
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
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
  
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA