[Image-SIG] im.show() error

bas pels pels@bio.uva.nl
Fri, 20 Aug 1999 15:05:09 +0200


hi,

after upgrading PIL 1.0b to PIL 1.0, i cannot longer pass the first page of
the tutorial...
any idea what happened?


[bas@orius bas]$ python
Python 1.5.2 (#1, Apr 18 1999, 16:03:16)  [GCC pgcc-2.91.60 19981201 (egcs-1.1.1
on linux2   Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
python >> import Image
python >> im = Image.open("lena.ppm")
python >> print im.format, im.size, im.mode
PPM (128, 128) RGB
python >> im.show()
Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python1.5/site-packages/PIL/Image.py", line 694, in show
    _showxv(self, title, command)
  File "/usr/lib/python1.5/site-packages/PIL/Image.py", line 974, in _showxv
    file = self._dump(format=format)
  File "/usr/lib/python1.5/site-packages/PIL/Image.py", line 311, in _dump
    file = file + "." + format
TypeError: illegal argument type for built-in operation
python >>


strange enough, the following works fine:

[bas@orius bas]$ python
Python 1.5.2 (#1, Apr 18 1999, 16:03:16)  [GCC pgcc-2.91.60 19981201 (egcs-1.1.1
on linux2   Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
python >> from Tkinter import *
python >> import Image
python >> root = Tk()
python >> im = Image.open("lena.ppm")
python >> im.show()
python >>                                      



......................................................................
bas pels
university of amsterdam
section population biology
kruislaan 320, 1098 sm amsterdam                  fax: +31 20 525 7754
the netherlands                                   tel: +31 20 525 7743