On 6/30/06, Belkind, Ronnen <[EMAIL PROTECTED]> wrote: > > > > 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 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users