Unable to make Thumbnail

Good day all,

I did an update using bench update and I got many times the following:
“unable to make thumbnail for …”

Migrating capfresh.co
Executing execute:frappe.db.sql("""update `tabCommunication` set parenttype=null, parent=null, parentfield=null""") #2015-10-22 in capfresh.co (1bd3e0294d)
Success
Executing erpnext.patches.v6_4.make_image_thumbnail #2015-10-20 in capfresh.co (1bd3e0294d)
Unable to make thumbnail for /files/potato.jpg
Unable to make thumbnail for /files/LoinChop.jpg
Unable to make thumbnail for /files/PorkRib.jpg
Unable to make thumbnail for /files/porktrotters.jpeg
Unable to make thumbnail for /files/onion.jpeg
Unable to make thumbnail for /files/sweet melons Honeydew.jpg
Unable to make thumbnail for /files/sweet melons Honeydew.jpg
Unable to make thumbnail for /files/sweet melons Honeydew.jpg
Unable to make thumbnail for /files/orange1.jpg
Unable to make thumbnail for /files/orange1.jpg
Unable to make thumbnail for /files/orangepocket.jpeg
Unable to make thumbnail for /files/orangepocket.jpeg
Unable to make thumbnail for /files/orange1.jpg
Unable to make thumbnail for /files/orange1.jpg
Unable to make thumbnail for /files/Sirloin.jpg
Unable to make thumbnail for /files/steakonbone.jpg
Success
Executing erpnext.patches.v6_4.fix_expense_included_in_valuation in capfresh.co (1bd3e0294d)
Success
Updating frappe                     : [========================================]
Updating erpnext                    : [========================================]

Any idea on what I am missing?

Thanks

François

Check your pillow installation, as described in the announce here: New python dependency - Pillow. If you get error during update, see this post

Hope this will help. :slight_smile:

1 Like

Thanks for the suggestion, but I already did that.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
libjpeg8-dev is already the newest version.
liblcms2-dev is already the newest version.
libwebp-dev is already the newest version.
python-tk is already the newest version.
tcl8.6-dev is already the newest version.
tk8.6-dev is already the newest version.
zlib1g-dev is already the newest version.
libfreetype6-dev is already the newest version.
libtiff5-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.

If you launch your bench-python, are you able to use pillow?

Something like:

$ ./env/bin/python -c 'from PIL import Image, ImageOps'

I tried but I get

fraxxx@Capfresh:~$ bench-python
bench-python: command not found

OK, so, try this in 2 commands:

 bench shell

and after:

python -c 'from PIL import Image, ImageOps'

Hi NoumirPoutipou,
Thanks again for your help.
Is it suppose to do something?

I’m getting not much:

fraxxx@Capfresh:~$ bench shell
fraxxx@Capfresh:~/frappe-bench/sites$ python -c 'from PIL import Image, ImageOps'
fraxxx@Capfresh:~/frappe-bench/sites$

@Francois_Ifitwala @NoumirPoutipou the message is most likely because you have links to those files in your Item but they don’t exist in your file system.