[Image-SIG] Configuring Ghostscript & PIL on a Macintosh

David J Detlefsen David.Detlefsen@bms.com
Mon, 19 Feb 2001 16:14:31 -0500


How do you set up python so that it knows about ghostscript?

I'm interested in using PIL and Python 2 on a macintosh and I get the
following error in the interpreter:

>>> im2.save("dogchow:postscript.jpeg")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "dogchow:applications:python 2.0:extensions:imaging:pil:Image.py",
line 656, in save
    self.load()
  File "dogchow:applications:python
2.0:extensions:imaging:pil:EpsImagePlugin.py", line 246, in load
    self.im = Ghostscript(self.tile, self.size, self.fp)
  File "dogchow:applications:python
2.0:extensions:imaging:pil:EpsImagePlugin.py", line 62, in Ghostscript
    gs = os.popen(command, "w")

Dave