ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> image-sig
image-sig
Re: [Image-SIG] I think I found a bug ...
by Markus Meyer other posts by this author
Jul 4 2004 8:18PM messages near this date
[Image-SIG] I think I found a bug ... | [Image-SIG] progressive image displaying
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
>  


_______________________________________________
Image-SIG maillist  -  Image-SIG@[...].org
http://mail.python.org/mailman/listinfo/image-sig
Thread:
=?ISO-8859-1?Q?=22Pascal_Str=F6ing=22?=
Markus Meyer

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved