SourceForge logo
SourceForge logo
Menu

matplotlib-devel

From: Ralf G. <ral...@go...> - 2007年10月31日 01:33:57
Hi all,
I just installed mpl on ubuntu gutsy, and got errors after setting
text.usetex : True and ps.usedistiller : ghostscript. The problem seems
to be in checkdep_ghostscript() in __init__.py, specifically the command 'gs
-v' (should be replaced by 'gs --version').
For my system I get:
$ gs -v
GPL Ghostscript SVN PRE-RELEASE 8.61 (2007年08月02日)
Copyright (C) 2007 Artifex Software, Inc. All rights reserved.
and:
$ gs --version
8.61
Below I give a modified version of checkdep_ghostscript() that should work
for all version of ghostscript.
Cheers,
Ralf
def checkdep_ghostscript():
 try:
 if sys.platform == 'win32':
 command = 'gswin32c -v'
 else:
 command = 'gs --version'
 stdin, stdout = os.popen4(command)
 line = stdout.readlines()[0]
 vtest = '.'.join(line.split('.')[:2]) # deal with version numbers like '
7.07.1'
 float(vtest)
 return vtest
 except (IndexError, ValueError):
 return None
From: Darren D. <dar...@co...> - 2007年10月31日 14:03:35
On Tuesday 30 October 2007 09:33:53 pm Ralf Gommers wrote:
> Hi all,
>
> I just installed mpl on ubuntu gutsy, and got errors after setting
> text.usetex : True and ps.usedistiller : ghostscript. The problem seems
> to be in checkdep_ghostscript() in __init__.py, specifically the command
> 'gs -v' (should be replaced by 'gs --version').
> For my system I get:
> $ gs -v
> GPL Ghostscript SVN PRE-RELEASE 8.61 (2007年08月02日)
> Copyright (C) 2007 Artifex Software, Inc. All rights reserved.
>
> and:
> $ gs --version
> 8.61
>
> Below I give a modified version of checkdep_ghostscript() that should work
> for all version of ghostscript.
>
> Cheers,
> Ralf
>
>
>
> def checkdep_ghostscript():
> try:
> if sys.platform == 'win32':
> command = 'gswin32c -v'
> else:
> command = 'gs --version'
> stdin, stdout = os.popen4(command)
> line = stdout.readlines()[0]
> vtest = '.'.join(line.split('.')[:2]) # deal with version numbers like
> ' 7.07.1'
> float(vtest)
> return vtest
> except (IndexError, ValueError):
> return None
Thanks for the report. This was already fixed in svn, but not using --version, 
which looks like a better solution. Could someone using AFPL ghostscript let 
us know what is the output of gs --version?
Darren
From: Darren D. <dar...@co...> - 2007年11月01日 16:08:09
On Wednesday 31 October 2007 10:03:39 am Darren Dale wrote:
> On Tuesday 30 October 2007 09:33:53 pm Ralf Gommers wrote:
> > Hi all,
> >
> > I just installed mpl on ubuntu gutsy, and got errors after setting
> > text.usetex : True and ps.usedistiller : ghostscript. The problem
> > seems to be in checkdep_ghostscript() in __init__.py, specifically the
> > command 'gs -v' (should be replaced by 'gs --version').
> > For my system I get:
> > $ gs -v
> > GPL Ghostscript SVN PRE-RELEASE 8.61 (2007年08月02日)
> > Copyright (C) 2007 Artifex Software, Inc. All rights reserved.
> >
> > and:
> > $ gs --version
> > 8.61
> >
> > Below I give a modified version of checkdep_ghostscript() that should
> > work for all version of ghostscript.
> >
> > Cheers,
> > Ralf
> >
> >
> >
> > def checkdep_ghostscript():
> > try:
> > if sys.platform == 'win32':
> > command = 'gswin32c -v'
> > else:
> > command = 'gs --version'
> > stdin, stdout = os.popen4(command)
> > line = stdout.readlines()[0]
> > vtest = '.'.join(line.split('.')[:2]) # deal with version numbers
> > like ' 7.07.1'
> > float(vtest)
> > return vtest
> > except (IndexError, ValueError):
> > return None
>
> Thanks for the report. This was already fixed in svn, but not using
> --version, which looks like a better solution. Could someone using AFPL
> ghostscript let us know what is the output of gs --version?
gs --version works with AFPL. Could someone please check that this works on 
windows: gswin32c --version
From: Gary R. <gr...@bi...> - 2007年11月01日 21:29:17
Yep. Works.
C:\WINDOWS>gswin32c --version
8.51
Darren Dale wrote:
> gs --version works with AFPL. Could someone please check that this works on 
> windows: gswin32c --version
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
From: Darren D. <dar...@co...> - 2007年11月02日 12:57:40
Thanks. I updated the gs version checker in svn.
On Thursday 01 November 2007 05:29:03 pm Gary Ruben wrote:
> Yep. Works.
>
> C:\WINDOWS>gswin32c --version
> 8.51
>
> Darren Dale wrote:
> > gs --version works with AFPL. Could someone please check that this works
> > on windows: gswin32c --version
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems? Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > _______________________________________________
> > Matplotlib-devel mailing list
> > Mat...@li...
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /