![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Feb 2011
Device: kindle3
|
NoDecodeDelegateForThisImageFormat on cover save
I just installed calibre 0.7.46 on a linux system (Debian testing). Downloading the cover image for a book worked, but when I click "OK" in the metadata dialog I receive the following error:
Traceback (most recent call last): File "site-packages/calibre/gui2/dialogs/metadata_single.py", line 950, in accept File "site-packages/calibre/library/database2.py", line 891, in set_cover File "site-packages/calibre/utils/magick/draw.py", line 42, in save_cover_data_to File "site-packages/calibre/utils/magick/__init__.py", line 112, in load Exception: NoDecodeDelegateForThisImageFormat `' @ error/blob.c/BlobToImage/349 The book: "A Hard Day's Knight" by Simon R. Green Am I missing a required package? Or is this a bug? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,170
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
How did you install calibre?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Feb 2011
Device: kindle3
|
I installed using the command-line python script provided on the downloads page for Linux. I used that (instead of the Debian package) so I could get the latest version of calibre as Debian can sometimes lag a significant ways behind.
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,170
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Is this happening for all books or just a particular book?
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Feb 2011
Device: kindle3
|
I did some experiments, it seems to be happening for all books. Same error message, nothing in the quotes ever.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,170
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Then you have some kind of library conflict probably an incompatible version of libjpeg between the binary and your system
Run this command Code:
LD_DEBUG=libs calibre-debug -c "from calibre.utils.magick.draw import identify as i; print i(I('lt.png')); print i(I('devices/nook.jpg'))" 2> log; grep png log; grep jpeg log Last edited by kovidgoyal; 02-25-2011 at 12:10 AM. |
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Feb 2011
Device: kindle3
|
A highly useful command! I used that to update my library path and got it all working.
Thanks for the help! |
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() Posts: 3
Karma: 28
Join Date: Apr 2011
Device: Kindle 3G Wifi
|
Hi,
I found this thread googling "NoDecodeDelegateForThisImageFormat" because I have the same problem. Calibre: 0.7.52 installed from binary installer. Debian: 6.0.1 (squeeze) all packages up to date calibre server started as: Code:
/opt/calibre/bin/calibre-server --with-library Calibre\ Library Code:
/opt/calibre/bin/calibre-server: error while loading shared libraries: libcalibre-launcher.so: cannot open shared object file: No such file or directory Code:
LD_LIBRARY_PATH=/opt/calibre/lib /opt/calibre/bin/calibre-server --with-library Calibre\ Library/ & Code:
Traceback (most recent call last): File "site-packages/calibre/library/server/content.py", line 160, in get_cover File "site-packages/calibre/utils/magick/draw.py", line 112, in thumbnail File "site-packages/calibre/utils/magick/__init__.py", line 132, in load Exception: NoDecodeDelegateForThisImageFormat `' @ error/blob.c/BlobToImage/349 This is the output of your suggested command: Code:
LD_DEBUG=libs calibre-debug -c "from calibre.utils.magick.draw import identify as i; print i(I('lt.png')); print i(I('devices/nook.jpg'))" 2> log; grep png log; grep jpeg log (128, 128, u'png') (77, 120, u'jpeg') 7589: find library=libpng14.so.14 [0]; searching 7589: trying file=/opt/calibre/lib/libpng14.so.14 7589: calling init: /opt/calibre/lib/libpng14.so.14 7589: calling init: /opt/calibre/lib/ImageMagick-6.6.7/modules-Q16/coders/png.so 7589: /opt/calibre/lib/ImageMagick-6.6.7/modules-Q16/coders/png.so: error: symbol lookup error: undefined symbol: png_LTX_RegisterPNGImage (fatal) 7589: /opt/calibre/lib/ImageMagick-6.6.7/modules-Q16/coders/png.so: error: symbol lookup error: undefined symbol: png_LTX_UnregisterPNGImage (fatal) 7589: calling fini: /opt/calibre/lib/ImageMagick-6.6.7/modules-Q16/coders/png.so [0] 7589: calling fini: /opt/calibre/lib/libpng14.so.14 [0] 7589: find library=libjpeg.so.8 [0]; searching 7589: trying file=/opt/calibre/lib/libjpeg.so.8 7589: calling init: /opt/calibre/lib/libjpeg.so.8 7589: calling init: /opt/calibre/lib/ImageMagick-6.6.7/modules-Q16/coders/jpeg.so 7589: /opt/calibre/lib/ImageMagick-6.6.7/modules-Q16/coders/jpeg.so: error: symbol lookup error: undefined symbol: jpeg_LTX_RegisterJPEGImage (fatal) 7589: /opt/calibre/lib/ImageMagick-6.6.7/modules-Q16/coders/jpeg.so: error: symbol lookup error: undefined symbol: jpeg_LTX_UnregisterJPEGImage (fatal) 7589: calling fini: /opt/calibre/lib/ImageMagick-6.6.7/modules-Q16/coders/jpeg.so [0] 7589: calling fini: /opt/calibre/lib/libjpeg.so.8 [0] But unfortunately I don't know what to do with that info. Thanks in advance for your assistance. /Luis |
![]() |
![]() |
![]() |
#9 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,170
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You run calibre-server as
/opt/calibre/calibre-server not /opt/calibre/bin/calibre-server |
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 3
Karma: 28
Join Date: Apr 2011
Device: Kindle 3G Wifi
|
That solved it, silly me
![]() Thanks for your quick response and many congrats for a fantastic piece of software. |
![]() |
![]() |
![]() |
#11 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jun 2011
Device: Android (Nexus One)
|
Hi Lantolin, Kovidgoyal
How did you change the path so that calibre can download book images ok? I have the same problem with Calibre 0.8.4 in that every book download results in an error. Even though the image the URL points to exists and is correct. * the command I'm using to launch calibre is: LD_LIBRARY_PATH=/opt/calibre/lib /opt/calibre//bin/calibre * my system is Ubuntu 10.04.2 LTS (Lucid) * I didn't change anything related to libjpeg that I know of An example from the debug log reads: Starting cover download for: The Robber Bride Query: The Robber Bride [u'Margaret Atwood'] {u'isbn': u'9780770428211'} Invalid cover from Amazon.com Traceback (most recent call last): File "site-packages/calibre/ebooks/metadata/sources/covers.py", line 56, in process_result File "site-packages/calibre/utils/magick/__init__.py", line 132, in load Exception: NoDecodeDelegateForThisImageFormat `' @ error/blob.c/BlobToImage/349 ****************************** Amazon.com Covers ****************************** Request extra headers: [('User-agent', 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)')] Failed to download valid cover Took 0.323365926743 seconds Downloading cover from: http://ecx.images-amazon.com/images/...%2B7E2TlL..jpg ************************************************** ****************************** Last edited by kiathuang; 06-04-2011 at 07:37 AM. |
![]() |
![]() |
![]() |
#12 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,170
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You want
/opt/calibre/calibre not /opt/calibre//bin/calibre |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to save the book cover in png | georgen | Calibre | 13 | 02-18-2011 03:49 PM |
Save cover upon "Send to device" | silentguy | Calibre | 1 | 11-17-2010 04:44 AM |
Ended Sony PRS-505 SC w/ Cover and Separate Wedge Light Cover in Canada | notsure | Flea Market | 2 | 11-13-2010 03:28 PM |
Can I use "Save to disk" and updat the cover? | pwarning | Calibre | 1 | 03-21-2010 11:28 PM |
Save File location and Save As question | DougFNJ | Calibre | 0 | 09-17-2009 04:56 PM |