PIL problem

r.b.rigilink at cable.a2000.nl r.b.rigilink at cable.a2000.nl
Sun May 14 14:08:07 CEST 2000


Hi,

I recently installed PIL and the demos seem to work OK.
But, straight from the PIL-tutorial, 

> python
Python 1.5.2 (#1, Apr 15 2000, 14:15:49)  [GCC 2.95.2 19991024
(release)] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import Image
>>> im = Image.open("lena.gif")
>>> print im.format, im.size, im.mode
GIF (128, 128) P
>>> im.show()
Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "/usr/local/lib/python1.5/site-packages/PIL/Image.py", line 694,
in show
    _showxv(self, title, command)
  File "/usr/local/lib/python1.5/site-packages/PIL/Image.py", line 972,
in _showxv
    file = self.convert(base)._dump(format=format)
  File "/usr/local/lib/python1.5/site-packages/PIL/Image.py", line 311,
in _dump    file = file + "." + format
TypeError: illegal argument type for built-in operation

What am I missing???



Roeland



More information about the Python-list mailing list