![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26
Karma: 490330
Join Date: Apr 2012
Location: Staffordshire, UK
Device: Kindle Paperwhite (10th Gen), Kindle Paperwhite (7th Gen)
|
Error message on "Save to Disc"
Hi,
I have used Calibre for several years with no issues. I am using Calibre 2.49 (64bit) on Windows 10. All my books are in EPUB and MOBI formats, and most books I've got from Amazon is also in AZW3 format. I use calibre to create the additional formats after importing my book. However, just recently I have started seeing the following error message: calibre, version 2.49.0 WARNING: Error while saving: Failed to update metadata in some books, click "Show details" for more information Failed to update the metadata in the EPUB format of: Destination: Void by Frank Herbert, with error: Traceback (most recent call last): File "site-packages\calibre\customize\ui.py", line 373, in set_file_type_metadata File "site-packages\calibre\customize\builtins.py", line 438, in set_metadata File "site-packages\calibre\ebooks\metadata\epub.py", line 323, in set_metadata File "site-packages\calibre\ebooks\metadata\epub.py", line 280, in update_metadata File "site-packages\calibre\ebooks\metadata\opf2.py", line 1291, in smart_update File "site-packages\calibre\ebooks\metadata\book\base.py", line 552, in smart_update TypeError: coercing to Unicode: need string or buffer, list found __________________________________________________ ____________________ Failed to update the metadata in the EPUB format of: Pride and Prejudice by Jane Austen, with error: Traceback (most recent call last): File "site-packages\calibre\customize\ui.py", line 373, in set_file_type_metadata File "site-packages\calibre\customize\builtins.py", line 438, in set_metadata File "site-packages\calibre\ebooks\metadata\epub.py", line 323, in set_metadata File "site-packages\calibre\ebooks\metadata\epub.py", line 280, in update_metadata File "site-packages\calibre\ebooks\metadata\opf2.py", line 1291, in smart_update File "site-packages\calibre\ebooks\metadata\book\base.py", line 552, in smart_update TypeError: coercing to Unicode: need string or buffer, list found It does not effect all titles, and I'm pretty sure it is something to do with my 5 custom metadata fields (Awards, Notes, Original Format, Source & Status) because if I create a new library with no custom metadata and copy books across before saving them to disc then I get no errors. I had a different set of custom meta data fields until recently and in my last tidy up I removed some and added some new ones - I think I might have messed about too much and broken something! Really grateful if anyone could let me know exactly what this means and if it is anything I should worry about. Thanks in advance. |
![]() |
![]() |
![]() |
#2 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,706
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Fidney - try this
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,415
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Are you sending to a device when you see this problem?
Looking at calibre's code, that error implies that some custom column was "text, behaves like tags" but is now "text" (or vice versa), that the lookup key was reused, and furthermore that the book had its internal metadata updated using something like polish. The code paths are too complicated to know what changed or to guess further what the problem might be. Last edited by chaley; 01-24-2016 at 08:26 AM. Reason: Grammar |
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26
Karma: 490330
Join Date: Apr 2012
Location: Staffordshire, UK
Device: Kindle Paperwhite (10th Gen), Kindle Paperwhite (7th Gen)
|
Thanks for the replies BetterRed and chaley.
I tend to use the "Save to disc" option when I've changed the cover of the book as in most cases that seems to make my new cover stick without reconverting (which I don't like to do unless there is any other option). I save it to disc, delete from my library and then re-add it. A couple of my custom metadata fields - Awards & Source - were created as "Text, column shown in the tag browser" but then I discovered option to create custom fields as "Comma separated text, like tags, shown in the tag browser" so removed them (I couldn't change the settings) and then re-added them. I will back up the library as suggested and try to do some surgery on my custom metadata fields. Good to know that I haven't irretrievably screwed something up. Thanks for the help. Last edited by Fidney; 01-24-2016 at 10:27 AM. |
![]() |
![]() |
![]() |
#5 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
FWIW, use Embed Metadata or Polish Book in the future, rather than a song-and-a-dance with Save-to-disk.
Not sure that will help you with the error, but you should still do it. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,020
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
You should never use STD to write INTO a Library.
As suggested, use polish If Polish won't get the job done: Use STD to save to a TEMP location. Then drag and drop the updated book (format) into the DETAILS for that title. This will REPLACE that format |
![]() |
![]() |
![]() |
#7 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
theducks -- the OP was doing #3. I suggested #2.
STD == external embed. Polish > embed on steroids. Polish is ALWAYS enough. |
![]() |
![]() |
![]() |
#8 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,706
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Last time I looked Polish only operated on ePUB and AZW3 formats.
Embed will operate on other formats. Although I'm not sure if it can slap a cover on formats that don't have a designated cover - such as PDF. BR |
![]() |
![]() |
![]() |
#9 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
True enough that Polish works on less formats -- but when it does work, it is superior.
![]() Embed will update whatever metadata is applicable to a format. Polish will create a cover in EPUB or AZW3 if none exists yet. MOBI doesn't support updating the cover. ![]() |
![]() |
![]() |
![]() |
#10 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26
Karma: 490330
Join Date: Apr 2012
Location: Staffordshire, UK
Device: Kindle Paperwhite (10th Gen), Kindle Paperwhite (7th Gen)
|
Thanks for your help folks. I have fixed my problem - probably took a long way round, but it worked!
I ended up deleting all my custom meta data fields then saving my entire library to disk. Then I created a completely new empty library (with no custom fields) and imported all my books into that. Once they were all imported I could then add my custom fields and all works fine. That done I would like to learn more about Embed and Polish. I presume thse are both Calibre plug-ins as I cannot find either of these within Calibre itself? Where can I find these two? In Calibre when I click on "Get New Plugins" an error message box pops up saying "Unable to reach the plugin index page" and when I click on details all it shows is: https://plugins.calibre-ebook.com/plugins.json.bz2 (is that normal or have I got another problem?) In my browser I've tried going to the URL https://plugins.calibre-ebook.com which does take me ao a page with Calibre plugins but I can see neither of the above listed there. Thanks again for the help and advice. |
![]() |
![]() |
![]() |
#11 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,706
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Fidney - they are both built-in features - you can add them to toolbars and menus via Preferences->Toolbars.
BR |
![]() |
![]() |
![]() |
#12 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,020
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Calibre will not mess with existing toolbars. (
![]() So when a new feature comes along.... It just lurks ![]() waiting for user intervention. ![]() ![]() |
![]() |
![]() |
![]() |
#13 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26
Karma: 490330
Join Date: Apr 2012
Location: Staffordshire, UK
Device: Kindle Paperwhite (10th Gen), Kindle Paperwhite (7th Gen)
|
BetterRed & theducks
Thanks for that. I would never have thought about looking at the toolbars. Guess that's a lesson learned that I should at least have a nosey at the release notes from time to time! |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Save to disc" using title instead of title_sort? | manawydan | Library Management | 4 | 09-22-2013 01:52 AM |
Error message: "TEMPLATE ERROR Single '}' encountered in format string" | frank14612 | Calibre | 22 | 07-02-2013 11:05 AM |
Setting preferred "Save to disc" format | HarryT | Calibre | 2 | 08-04-2012 06:33 AM |
Calibre plugIn Kindle Collections Error message "Value Error:month..." | readee | Plugins | 4 | 10-10-2011 11:21 AM |
Error message : "Invalid Format" " Do you want to format your internal memory" | narbeauchamp | Sony Reader | 11 | 07-22-2009 12:39 PM |