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'
--
Lionel Roubeyrie - lroubeyrie@...1068...
Chargé d'études et de maintenance
LIMAIR - la Surveillance de l'Air en Limousin
http://www.limair.asso.fr