[Image-SIG] problems with Imaging 1.0b1

Fredrik Lundh fredrik@pythonware.com
Thu, 15 Jul 1999 03:08:43 +0200


Jens Gelhaar wrote:
> but, I got alway the following error message
> File "F:\Python\JPEGKleinerMachen.py", line 11, in ?
> im.save(outfile,"JPEG")
> File "E:\Programme\Python\Lib\imaging\Image.py", line 654, in save
> self.load()
> File "E:\Programme\Python\Lib\imaging\ImageFile.py", line 134, in load
> d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
> File "E:\Programme\Python\Lib\imaging\Image.py", line 225, in _getdecoder
> return apply(decoder, (mode,) + args + extra)
> TypeError: illegal argument type for built-in operation
>
> What is wrong? The example is from the tuturial?

looks like your PIL python library doesn't
match the _imaging module.  try:

>>> import Image
>>> Image.__file__
'c:\\somewhere\\Image.pyc'
>>> Image.core.__file__
'c:\\somewhere\\_imaging.dll'

and make sure those filenames are what
you expect...

</F>