On Monday 03 December 2007 9:03:59 am Lionel Roubeyrie wrote: > Hi all, > there's a little problem with ghostscript on ubuntu gutsy, mpl complaints > about a bad version : > ipython -pylab > /usr/lib/python2.5/site-packages/matplotlib/__init__.py:641: UserWarning: > matplotlibrc ps.usedistiller option can not be used unless ghostscript-7.07 > or later is installed on your system > > but gs -v returns: > GPL Ghostscript SVN PRE-RELEASE 8.61 (2007-08-02) > Copyright (C) 2007 Artifex Software, Inc. All rights reserved. > > Here is the modified __init__.py to deal with it : > ################ > def checkdep_ghostscript(): > try: > if sys.platform == 'win32': > command = 'gswin32c -v' > else: > command = 'gs --version' > stdin, stdout = os.popen4(command) > line = stdout.readlines()[0] > v = line.strip() > vtest = '.'.join(v.split('.')[:2]) # deal with version numbers > like '7.07.1' > float(vtest) > return vtest > ################ > matplotlib.__version__ > Out [10]:'0.90.1'
This was fixed in matplotlib-0.91.1. ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users