[Zope] Re: Errors while running the Thumbnails example code

Vlad Berditchevskiy vlad at hashbang.de
Fri Oct 8 19:45:48 EDT 2004


Vlad Berditchevskiy <vlad at hashbang.de> writes:

> This happens in the following line:
> 
> ,----
>| original_file=StringIO(str(original_image.data))
> `----

Sorry, I quoted the wrong line. The error is actually happening here:

,----
| image=Image.open(original_file)
`----

I also tried to supply the file name directly:

,----
| image = Image.open('/home/vlad/my.jpg')
`----

and got almost the same result:

Error Value: 'file' object has no attribute 'startswith'


-- 
\  /                                       vlad at hashbang.de
 \/lad                                     http://www.hashbang.de 



More information about the Zope mailing list