Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 09-10-2018, 02:22 PM   #1
ciccio
Junior Member
ciccio began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Sep 2018
Device: kindle
Download metadata problem

Hi.
calibre, version 3.31.0
Win10

I have been using the "download metadata" tool forever. Just yesterday, all of a sudden, this error message appears when used:


Traceback (most recent call last):
File "site-packages\calibre\utils\ipc\simple_worker.py", line 289, in main
File "site-packages\calibre\ebooks\metadata\sources\worker.py ", line 102, in single_identify
File "site-packages\calibre\ebooks\metadata\sources\update.py ", line 79, in patch_plugins
File "site-packages\calibre\ebooks\metadata\sources\update.py ", line 62, in patch_search_engines
File "<string>", line 11, in <module>
ImportError: No module named polyglot.builtins

Any clue on how to solve this? THANKS!
ciccio
ciccio is offline  
Old 09-10-2018, 02:24 PM   #2
mediax
Readaholic
mediax ought to be getting tired of karma fortunes by now.mediax ought to be getting tired of karma fortunes by now.mediax ought to be getting tired of karma fortunes by now.mediax ought to be getting tired of karma fortunes by now.mediax ought to be getting tired of karma fortunes by now.mediax ought to be getting tired of karma fortunes by now.mediax ought to be getting tired of karma fortunes by now.mediax ought to be getting tired of karma fortunes by now.mediax ought to be getting tired of karma fortunes by now.mediax ought to be getting tired of karma fortunes by now.mediax ought to be getting tired of karma fortunes by now.
 
mediax's Avatar
 
Posts: 255
Karma: 1058454
Join Date: Jul 2009
Location: Swindon, UK
Device: Sony PRS-T2 (previously 505 and 650)
Can't help, I'm afraid, but I'm having the same issue.
mediax is offline  
Old 09-10-2018, 02:26 PM   #3
PacificNW
Junior Mint
PacificNW began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2018
Device: Kindle of DOOM
Please excuse the "me, too!" comment here, same thing just occurred today on my Calibre, on OSX, after years of smooth metadata downloads.

Full traceback:

calibre, version 3.31.0 (darwin, embedded-python: True)
Failed to download metadata: Failed: Download metadata for one book

Starting job: Download metadata for one book
Job: "Download metadata for one book" failed with error:
Traceback (most recent call last):
File "site-packages/calibre/gui2/threaded_jobs.py", line 84, in start_work
File "site-packages/calibre/gui2/metadata/bulk_download.py", line 255, in download
Exception: Failed to download metadata. Original traceback:

Traceback (most recent call last):
File "site-packages/calibre/utils/ipc/simple_worker.py", line 289, in main
File "site-packages/calibre/ebooks/metadata/sources/worker.py", line 55, in main
File "site-packages/calibre/ebooks/metadata/sources/update.py", line 79, in patch_plugins
File "site-packages/calibre/ebooks/metadata/sources/update.py", line 62, in patch_search_engines
File "<string>", line 11, in <module>
ImportError: No module named polyglot.builtins


Called with args: ([194], u'/var/folders/rf/rdpn700x08l289827wkm61v00000gn/C/calibre_3.31.0_tmp_UF1uUM/EMbgLL_metadata_bulk.log', <calibre.db.legacy.LibraryDatabase object at 0x117bb1a50>, True, True, None) {u'abort': <threading._Event object at 0x11fd87790>, u'log': <calibre.utils.logging.GUILog object at 0x11fd87810>, u'notifications': <Queue.Queue instance at 0x11be4f7a0>}
PacificNW is offline  
Old 09-10-2018, 02:33 PM   #4
Chilipops
Member
Chilipops began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Apr 2018
Device: nook 3
Add me to the list. Version 3.31 64bit Windows 10 and Windows 7:

Traceback (most recent call last):
File "site-packages\calibre\utils\ipc\simple_worker.py", line 289, in main
File "site-packages\calibre\ebooks\metadata\sources\worker.py ", line 102, in single_identify
File "site-packages\calibre\ebooks\metadata\sources\update.py ", line 79, in patch_plugins
File "site-packages\calibre\ebooks\metadata\sources\update.py ", line 62, in patch_search_engines
File "<string>", line 11, in <module>
ImportError: No module named polyglot.builtins
Chilipops is offline  
Old 09-10-2018, 02:35 PM   #5
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Can confirm happening using Linux Mint 19, I did both a system restore and reverted to calibre 3.28 still same error. This worked on Saturday using 3.31. calibre 3.28 on windows 10 still works.

Now is is good I checked metadata download on widows and it worked one time, then I when back to try it again and now get the same error.

Spoiler:

Code:
 $ calibre-debug -g
calibre 3.28  embedded-python: True is64bit: True
Linux-4.15.0-33-generic-x86_64-with-debian-buster-sid Linux ('64bit', 'ELF')
('Linux', '4.15.0-33-generic', '#36-Ubuntu SMP Wed Aug 15 16:00:05 UTC 2018')
Python 2.7.12
Linux: ('debian', 'buster/sid', '')
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 5, 5) && Diaps Editing Toolbag (0, 3, 5) && Quality Check (1, 9, 11) && Hyphenate This! (0, 0, 8) && EpubSplit (2, 4, 0) && Modify ePub (1, 3, 13) && Barnes & Noble (1, 2, 15) && KindleUnpack - The Plugin (0, 81, 5) && Baen (0, 0, 3) && Goodreads (1, 1, 14) && Reading List (1, 6, 6)
Turning off automatic hidpi scaling
QGtkStyle could not resolve GTK. Make sure you have installed the proper libraries.
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 85.0837438424 x 85.184279476
Using calibre Qt style: True
QGtkStyle could not resolve GTK. Make sure you have installed the proper libraries.
[0.00] Starting up...
[0.02] Showing splash screen...
[0.28] splash screen shown
[0.28] Initializing db...
[0.39] db initialized
[0.39] Constructing main UI...
libpng warning: iCCP: known incorrect sRGB profile
Looking for desktop notifier support from: org.freedesktop.Notifications
org.freedesktop.Notifications found in 0.0 seconds
[2.78] main UI initialized...
[2.78] Hiding splash screen
DEBUG:    0.0 get_baen_id: match_group= None
[3.22] splash screen hidden
[3.22] Started up in 3.22 seconds with 864 books
DEBUG:    2.1 get_baen_id: match_group= None
Metadata sources cache was recently updated not updating again


calibre, version 3.28.0
ERROR: Download failed: Failed to download metadata. Click Show Details to see details

Traceback (most recent call last):
  File "site-packages/calibre/utils/ipc/simple_worker.py", line 289, in main
  File "site-packages/calibre/ebooks/metadata/sources/worker.py", line 102, in single_identify
  File "site-packages/calibre/ebooks/metadata/sources/update.py", line 79, in patch_plugins
  File "site-packages/calibre/ebooks/metadata/sources/update.py", line 62, in patch_search_engines
  File "<string>", line 11, in <module>
ImportError: No module named polyglot.builtins




$ calibre-debug -g
calibre 3.31  embedded-python: True is64bit: True
Linux-4.15.0-33-generic-x86_64-with-debian-buster-sid Linux ('64bit', 'ELF')
('Linux', '4.15.0-33-generic', '#36-Ubuntu SMP Wed Aug 15 16:00:05 UTC 2018')
Python 2.7.12
Linux: ('debian', 'buster/sid', '')
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 5, 5) && Modify ePub (1, 3, 13) && Barnes & Noble (1, 2, 15) && Baen (0, 0, 3) && Goodreads (1, 1, 14) && Reading List (1, 6, 6) && Quality Check (1, 9, 11) && KindleUnpack - The Plugin (0, 81, 5) && EpubSplit (2, 4, 0) && Hyphenate This! (0, 0, 8) && Diaps Editing Toolbag (0, 3, 5)
Turning off automatic hidpi scaling
QGtkStyle could not resolve GTK. Make sure you have installed the proper libraries.
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 85.0837438424 x 85.184279476
Using calibre Qt style: True
QGtkStyle could not resolve GTK. Make sure you have installed the proper libraries.
[0.00] Starting up...
[0.02] Showing splash screen...
[0.29] splash screen shown
[0.29] Initializing db...
[0.39] db initialized
[0.39] Constructing main UI...
libpng warning: iCCP: known incorrect sRGB profile
Looking for desktop notifier support from: org.freedesktop.Notifications
org.freedesktop.Notifications found in 0.0 seconds
[2.75] main UI initialized...
[2.75] Hiding splash screen
DEBUG:    0.0 get_baen_id: match_group= None
[3.18] splash screen hidden
[3.19] Started up in 3.19 seconds with 864 books
DEBUG:    1.5 get_baen_id: match_group= None
Metadata sources cache was recently updated not updating again



calibre, version 3.31.0
ERROR: Download failed: Failed to download metadata. Click Show Details to see details

Traceback (most recent call last):
  File "site-packages/calibre/utils/ipc/simple_worker.py", line 289, in main
  File "site-packages/calibre/ebooks/metadata/sources/worker.py", line 102, in single_identify
  File "site-packages/calibre/ebooks/metadata/sources/update.py", line 79, in patch_plugins
  File "site-packages/calibre/ebooks/metadata/sources/update.py", line 62, in patch_search_engines
  File "<string>", line 11, in <module>
ImportError: No module named polyglot.builtins

calibre-debug -g
calibre 3.28  embedded-python: True is64bit: False
Windows-10-10.0.10240-SP0 Windows ('32bit', 'WindowsPE')
('Windows', '10', '10.0.10240')
Python 2.7.12+
Windows: ('10', '10.0.10240', 'SP0', u'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 3, 6) && Quality Check (1, 9, 11) && Generate Cover (1, 5, 21) && Modify ePub (1, 3, 13) && Baen (0, 0, 3) && Barnes & Noble (1, 2, 15) && KindleUnpack - The Plugin (0, 81, 5) && Diaps Editing Toolbag (0, 3, 5) && Hyphenate This! (0, 0, 8) && EpubSplit (2, 4, 0) && Goodreads (1, 1, 14)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 120.0 x 120.0
physicalDpi: 179.624309392 x 172.203389831
Using calibre Qt style: True
[0.00] Starting up...
[0.02] Showing splash screen...
[0.53] splash screen shown
[0.91] Initializing db...
[2.19] db initialized
[2.19] Constructing main UI...
libpng warning: iCCP: known incorrect sRGB profile
[14.09] main UI initialized...
[14.09] Hiding splash screen
DEBUG:    0.0 get_baen_id: match_group= None
[15.95] splash screen hidden
[15.97] Started up in 15.97 seconds with 2958 books
Metadata sources cache was recently updated not updating again



calibre, version 3.28.0
ERROR: Download failed: Failed to download metadata. Click Show Details to see details

Traceback (most recent call last):
  File "site-packages\calibre\utils\ipc\simple_worker.py", line 289, in main
  File "site-packages\calibre\ebooks\metadata\sources\worker.py", line 102, in single_identify
  File "site-packages\calibre\ebooks\metadata\sources\update.py", line 79, in patch_plugins
  File "site-packages\calibre\ebooks\metadata\sources\update.py", line 62, in patch_search_engines
  File "<string>", line 11, in <module>
ImportError: No module named polyglot.builtins


bernie

Last edited by gbm; 09-10-2018 at 02:51 PM. Reason: added windows debug info
gbm is offline  
Old 09-10-2018, 02:37 PM   #6
JanSH
Junior Member
JanSH began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2018
Device: Kindle Paperwhite
I came here to post the exact same problem. I have only just updated to 3.31. I did notice the installation for the first time insisted on a reboot, which I did. Attempting to download metadata now fails instantly with the "Failed to download metadata" and the traceback posted below (exactly the same as the others').

Windows 10 64-bit.

What I have tried (which does not work):
- Reboot.
- Repair install set
- Uninstall Calibre and reinstall to a different path on disk.
- Tear out my hair.

Any help would be much appreciated!

Traceback (most recent call last):
File "site-packages\calibre\utils\ipc\simple_worker.py", line 289, in main
File "site-packages\calibre\ebooks\metadata\sources\worker.py ", line 102, in single_identify
File "site-packages\calibre\ebooks\metadata\sources\update.py ", line 79, in patch_plugins
File "site-packages\calibre\ebooks\metadata\sources\update.py ", line 62, in patch_search_engines
File "<string>", line 11, in <module>
ImportError: No module named polyglot.builtins

Last edited by JanSH; 09-10-2018 at 02:38 PM. Reason: typo
JanSH is offline  
Old 09-10-2018, 03:06 PM   #7
ps67
Guru
ps67 ought to be getting tired of karma fortunes by now.ps67 ought to be getting tired of karma fortunes by now.ps67 ought to be getting tired of karma fortunes by now.ps67 ought to be getting tired of karma fortunes by now.ps67 ought to be getting tired of karma fortunes by now.ps67 ought to be getting tired of karma fortunes by now.ps67 ought to be getting tired of karma fortunes by now.ps67 ought to be getting tired of karma fortunes by now.ps67 ought to be getting tired of karma fortunes by now.ps67 ought to be getting tired of karma fortunes by now.ps67 ought to be getting tired of karma fortunes by now.
 
Posts: 732
Karma: 7025494
Join Date: Aug 2017
Location: Italy
Device: Kindle Paperwhite, Kobo Elipsa, Pocketbook Color PB633, Inkpad Color
I have the same issue. In Linux 64 Ubuntu-Kubuntu 18.04 calibre 3.31 and in Windows 10 64 calibre 3.31. I tried to solve downgrading calibre to 3.30 in Windows but no luck.

(I posted a message here two hours ago but I can't see anymore )
ps67 is offline  
Old 09-10-2018, 03:15 PM   #8
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
A temporary workaround for this problem.

Go to

Preferences-Miscellaneous--Open calibre configuration directory

Then delete the file metadata-sources-cache.json

This is will only work as long as you do not close calibre, you close then you wiil have to replete.

bernie
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2018-09-10 15-13-58.png
Views:	406
Size:	53.1 KB
ID:	166195  
gbm is offline  
Old 09-10-2018, 03:18 PM   #9
JanSH
Junior Member
JanSH began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2018
Device: Kindle Paperwhite
That works. You are truly a Wizard, gbm. Thank you!
JanSH is offline  
Old 09-10-2018, 03:22 PM   #10
JP11310
Junior Member
JP11310 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Sep 2018
Device: kindle
Thanks gbm.... It fixed the problem for me as well.
JP11310 is offline  
Old 09-10-2018, 03:24 PM   #11
nwgal
Member
nwgal began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Sep 2018
Location: Pacific Northwest
Device: Nook
I followed these instructions, this didn't work for me. I still can't download metadata.

Quote:
Originally Posted by gbm View Post
A temporary workaround for this problem.

Go to

Preferences-Miscellaneous--Open calibre configuration directory

Then delete the file metadata-sources-cache.json

This is will only work as long as you do not close calibre, you close then you wiil have to replete.

bernie
nwgal is offline  
Old 09-10-2018, 03:26 PM   #12
nwgal
Member
nwgal began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Sep 2018
Location: Pacific Northwest
Device: Nook
Okay, never mind. I tried it again, and it worked. THANK YOU. So is this a permanent fix? Will we have to do this each time we open Calibre?
nwgal is offline  
Old 09-10-2018, 03:28 PM   #13
PacificNW
Junior Mint
PacificNW began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2018
Device: Kindle of DOOM
Workaround is OK... but only for one download.

Quote:
Originally Posted by gbm View Post
A temporary workaround for this problem.

Go to

Preferences-Miscellaneous--Open calibre configuration directory

Then delete the file metadata-sources-cache.json

This is will only work as long as you do not close calibre, you close then you wiil have to replete.

bernie
It worked! But only ONE metadata download works, then the poison cache-file is created and the process fails as usual. This focuses the source of the problem, which is good, but it's a cumbersome workaround.
PacificNW is offline  
Old 09-10-2018, 04:41 PM   #14
PacificNW
Junior Mint
PacificNW began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2018
Device: Kindle of DOOM
Some Progress, but a bit strange

Instead of deleting the file "metadata-sources-cache.json" I set it to be a zero-byte-sized file.

Now it all works again.... even repeatedly through calibre restarts, etc.

BUT... a strange BUT.....

When I download metadata for popular titles, now they are almost always for the audiobook versions of the books [I don't use audiobooks].

Have NEVER, over years of use, seen this happen.

So the fix is still partial, but liveable for now.

EDIT: I also tried a two-byte file, containing an empty JSON dataset {}. This also works.

Last edited by PacificNW; 09-10-2018 at 04:51 PM. Reason: Added info on empty-JSON file instead of zero-byte file.
PacificNW is offline  
Old 09-10-2018, 04:51 PM   #15
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by PacificNW View Post
Instead of deleting the file "metadata-sources-cache.json" I set it to be a zero-byte-sized file.

Now it all works again.... even repeatedly through calibre restarts, etc.

BUT... a strange BUT.....

When I download metadata for popular titles, now they are almost always for the audiobook versions of the books [I don't use audiobooks].

Have NEVER, over years of use, seen this happen.

So the fix is still partial, but liveable for now.
How many sources do you have configured? Audiobook only might be because whatever is broken, is the only one that is still functioning.
I just did a test on my laptop running (a never updated) Calibre 3.29, Same issue.
theducks is offline  
Closed Thread

Tags
metadata download


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
'Download metadata' problem Marok Calibre 21 01-07-2020 11:48 AM
Problem with language and metadata download Terisa de morgan Library Management 16 02-11-2016 01:42 PM
Download Metadata problem after upgrade Ptcheuchter Library Management 1 03-30-2014 02:46 PM
Bulk Metadata Download Problem sweetevilbunies Library Management 6 07-04-2011 10:39 PM
Metadata Download Problem Paulie_D Calibre 2 05-07-2011 10:06 AM


All times are GMT -4. The time now is 12:03 PM.


MobileRead.com is a privately owned, operated and funded community.