matplotlib setup.py failing

I downlaoded matplotlib-0.87.3.tar.gz from sourceforge and am attempting to compile/install it on a RedHat linux installation source. When I run setup I get the following error.

$: python setup.py build
Traceback (most recent call last):
File “setup.py”, line 63, in ?
from setupext import build_agg, build_gtkagg, build_tkagg, build_wxagg,
File “setupext.py”, line 118, in ?
win32_compiler = get_win32_compiler()
File “setupext.py”, line 115, in get_win32_compiler
if ‘mingw32’ in v:
TypeError: 'in ’ requires character as left operand

I’m runing python 2.2.3. libpng, zlib, freetype, and Numeric are all installed.

Any suggestions are greatly appreciated.

···

CONFIDENTIALITY AND SECURITY NOTICE

The contents of this message and any attachments may be privileged, confidential and proprietary and also may be covered by the Electronic Communications Privacy Act. If you are not an intended recipient, please inform the sender of the transmission error and delete this message immediately without reading, disseminating, distributing or copying the contents. Citadel makes no assurances that this e-mail and any attachments are free of viruses and other harmful code.

I downlaoded matplotlib-0.87.3.tar.gz from sourceforge and am attempting to
compile/install it on a RedHat linux installation source. When I run setup
I get the following error.

$: python setup.py build
Traceback (most recent call last):
  File "setup.py", line 63, in ?
    from setupext import build_agg, build_gtkagg, build_tkagg, build_wxagg,\
  File "setupext.py", line 118, in ?
    win32_compiler = get_win32_compiler()
  File "setupext.py", line 115, in get_win32_compiler
    if 'mingw32' in v:
TypeError: 'in <string>' requires character as left operand

I'm runing python 2.2.3. libpng, zlib, freetype, and Numeric are all
installed.
Any suggestions are greatly appreciated.

This error is 2.2 specific:

littlewood[~]> python
Python 2.2.2 (#1, Feb 24 2003, 19:13:11)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

'ab' in 'abcde'

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: 'in <string>' requires character as left operand

littlewood[~]> python2.3.5
Python 2.3.5 (#1, Jan 25 2006, 12:49:33)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

'ab' in 'abcde'

True

I'm pretty sure that mpl requires python 2.3. At this point, python
2.2 is old enough that many packages just don't support it anymore.
Your only solutions would be to either update your python
installation, or run an older version of matplotlib that was still
2.2-compatible (but I don't know what that would be).

Regards,

f

···

On 6/30/06, Belkind, Ronnen <Ronnen.Belkind@...1163...> wrote: