[Image-SIG] I think I found a bug ...

Markus Meyer meyer at mesw.de
Sun Jul 4 16:18:25 EDT 2004


Pascal,

no, that's not a bug. PIL modules are not intended to be used with "from
... import *". Rather just use "import Image", and everything will be
fine.


Markus

Am Son, den 04.07.2004 schrieb "Pascal Ströing" um 22:15:
> Version:
> PIL: 1.1.4
> Python 2.3
> 
> script:
> >>> from Image import *
> >>> f=open("mTemp.py","w")
> 
> You see I use a PIL-independent python-function but PIL try to interpret it.
> 
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "/usr/local/lib/python2.3/site-packages/PIL/Image.py", line 1538, in
> open
>     raise ValueError("bad mode")
> ValueError: bad mode
> 




More information about the Image-SIG mailing list