On Sun, Apr 21, 2013 at 10:35 PM, Tito Garrido <titogarr...@gmail.com> wrote:
> Hi Folks,
>
> I was trying to use THUMB function following Bruno's tutorial for python RQ
> and I got:
>
>   File "/root/web2py/gluon/contrib/imageutils.py", line 54, in THUMB
>     img = Image.open(request.folder + 'uploads/' + image)
>   File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 1952, in open
>     fp = __builtin__.open(fp, "rb")
> IOError: [Errno 2] No such file or directory:
> 'applications/rqtestuploads/pictures.picture.b59ca62e585e24c3.31326d702e6a7067.jpg'
>
>
> I am pretty sure that there is a missing "/" on img =
> Image.open(request.folder + 'uploads/' + image)

try:
img = Image.open(os.path.join(request.folder, 'uploads', image))


Ricardo

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to