Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-12-2022, 06:44 AM   #1
Abin Shaw
Junior Member
Abin Shaw began at the beginning.
 
Abin Shaw's Avatar
 
Posts: 3
Karma: 10
Join Date: Aug 2022
Device: none
Unhappy Downloading metadata error!!!

I try to download metadata from Douban, Amazon, Google..., but they all failed.

The error log:
Code:
Running identify query with parameters: 
{'title': 'UNIX环境高级编程(第3版)(异步图书)', 'authors': ['W. Richard Stevens', 'Stephen A. Rago'], 'identifiers': {'isbn': '9787115352118'}, 'timeout': 30} 
Using plugins: Douban Books (3, 2, 0), jike isbn (1, 0, 0), Google (1, 1, 0), Amazon.com (1, 3, 1) 
The log from individual plugins is below 

****************************** Douban Books (3, 2, 0) ****************************** 
Found 0 results 
Downloading from Douban Books took 0.6256730556488037 
Failed to make identify query: 'https://api.douban.com/v2/book/isbn/9787115352118?apikey=054022eaeae0b00e0fc068c0c0a2102a'
Traceback (most recent call last):
  File "calibre_plugins.dummy1.__init__", line 334, in identify
  File "mechanize\_mechanize.py", line 241, in open_novisit
  File "mechanize\_mechanize.py", line 313, in _mech_open
mechanize._response.get_seek_wrapper_class.<locals>.httperror_seek_wrapper: HTTP Error 403: Forbidden 

******************************************************************************** 

****************************** jike isbn (1, 0, 0) ****************************** 
Found 0 results 
Downloading from jike isbn took 1.0762465000152588 
Making query: https://api.jike.xyz/situ/book/isbn/9787115352118
here entries are [None]
Plugin jike isbn failed
Traceback (most recent call last):
  File "calibre_plugins.dummy2.__init__", line 404, in get_all_details
  File "calibre_plugins.dummy2.__init__", line 85, in to_metadata
AttributeError: 'NoneType' object has no attribute 'get'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "calibre\ebooks\metadata\sources\identify.py", line 47, in run
  File "calibre_plugins.dummy2.__init__", line 569, in identify
  File "calibre_plugins.dummy2.__init__", line 416, in get_all_details
  File "src/lxml/etree.pyx", line 3462, in lxml.etree.tostring
TypeError: Type 'NoneType' cannot be serialized. 

******************************************************************************** 

****************************** Google (1, 1, 0) ****************************** 
Found 0 results 
Downloading from Google took 21.33840560913086 
Making query: https://books.google.com/books/feeds...ewability=none
Failed to make identify query: 'https://books.google.com/books/feeds/volumes?q=isbn%3A9787115352118&max-results=20&start-index=1&min-viewability=none'
Traceback (most recent call last):
  File "mechanize\_urllib2_fork.py", line 1236, in do_open
  File "http\client.py", line 1282, in request
  File "http\client.py", line 1328, in _send_request
  File "http\client.py", line 1277, in endheaders
  File "http\client.py", line 1037, in _send_output
  File "http\client.py", line 975, in send
  File "http\client.py", line 1447, in connect
  File "http\client.py", line 941, in connect
  File "socket.py", line 845, in create_connection
  File "socket.py", line 833, in create_connection
TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "calibre\ebooks\metadata\sources\google.py", line 514, in make_query
  File "mechanize\_mechanize.py", line 241, in open_novisit
  File "mechanize\_mechanize.py", line 287, in _mech_open
  File "mechanize\_opener.py", line 193, in open
  File "mechanize\_urllib2_fork.py", line 425, in _open
  File "mechanize\_urllib2_fork.py", line 414, in _call_chain
  File "calibre\utils\browser.py", line 28, in https_open
  File "mechanize\_urllib2_fork.py", line 1240, in do_open
urllib.error.URLError: <urlopen error [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。> 

******************************************************************************** 

****************************** Amazon.com (1, 3, 1) ****************************** 
Found 0 results 
Downloading from Amazon.com took 21.33940887451172 
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36
Server: auto
Making google query: https://www.google.com/search?q=%289...www.amazon.com
Plugin Amazon.com failed
Traceback (most recent call last):
  File "mechanize\_urllib2_fork.py", line 1236, in do_open
  File "http\client.py", line 1282, in request
  File "http\client.py", line 1328, in _send_request
  File "http\client.py", line 1277, in endheaders
  File "http\client.py", line 1037, in _send_output
  File "http\client.py", line 975, in send
  File "http\client.py", line 1447, in connect
  File "http\client.py", line 941, in connect
  File "socket.py", line 845, in create_connection
  File "socket.py", line 833, in create_connection
TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "calibre\ebooks\metadata\sources\identify.py", line 47, in run
  File "calibre\ebooks\metadata\sources\amazon.py", line 1569, in identify
  File "calibre\ebooks\metadata\sources\amazon.py", line 1495, in search_search_engine
  File "calibre\ebooks\metadata\sources\search_engines.py", line 371, in google_search
  File "calibre\ebooks\metadata\sources\search_engines.py", line 93, in query
  File "mechanize\_mechanize.py", line 241, in open_novisit
  File "mechanize\_mechanize.py", line 287, in _mech_open
  File "mechanize\_opener.py", line 193, in open
  File "mechanize\_urllib2_fork.py", line 425, in _open
  File "mechanize\_urllib2_fork.py", line 414, in _call_chain
  File "calibre\utils\browser.py", line 28, in https_open
  File "mechanize\_urllib2_fork.py", line 1240, in do_open
urllib.error.URLError: <urlopen error [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。> 

******************************************************************************** 
The identify phase took 21.36 seconds 
The longest time (21.339409) was taken by: Amazon.com 
Merging results from different sources 
We have 0 merged results, merging took: 0.00 seconds

Last edited by issybird; 08-12-2022 at 07:13 AM. Reason: Added code tags.
Abin Shaw is offline   Reply With Quote
Old 08-12-2022, 07:43 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,771
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Something is blocking calibre either an antivirus or a firewall. Exclude calibre.exe and calibre_parallel.exe from these and you shoul dbe fine.
kovidgoyal is offline   Reply With Quote
Old 08-12-2022, 10:20 PM   #3
Abin Shaw
Junior Member
Abin Shaw began at the beginning.
 
Abin Shaw's Avatar
 
Posts: 3
Karma: 10
Join Date: Aug 2022
Device: none
Quote:
Originally Posted by kovidgoyal View Post
Something is blocking calibre either an antivirus or a firewall. Exclude calibre.exe and calibre_parallel.exe from these and you shoul dbe fine.
I even tried switching to another PC and I've tried using Calibre to download the metadata on Linux, but it still doesn't work. I was able to use other functions that required Internet access such as grabbing news, but only the downloading metadata isn't working.
Abin Shaw is offline   Reply With Quote
Old 08-12-2022, 10:51 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,771
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
THen the firewall is on the network path to the internet. Look at the errors they are all timeouts which happens when something is blocking.
kovidgoyal is offline   Reply With Quote
Old 08-13-2022, 04:30 AM   #5
Abin Shaw
Junior Member
Abin Shaw began at the beginning.
 
Abin Shaw's Avatar
 
Posts: 3
Karma: 10
Join Date: Aug 2022
Device: none
I think that it could be a problem with the site where the metadata was downloaded, so I found another plugin that download metadata on github.
Link of the plugin: https://github.com/fugary/calibre-douban
In fact, I can download metadata using an Amazon plugin, but I need to switch the server to China and the Amazon plugin isn't supported to download 'isbn', so I give up it.
Abin Shaw is offline   Reply With Quote
Reply

Tags
calibre, e-book, error, metadata

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error downloading metadata on OS X igorius Library Management 5 12-10-2021 03:25 AM
[Kobo] Error When Downloading Metadata NormalToblerone Library Management 2 04-06-2021 06:30 AM
3.39.1 Metadata not downloading, again Joy Phillip Library Management 5 02-02-2019 02:37 AM
Error in log downloading metadata Terisa de morgan Calibre 2 03-16-2017 08:21 AM
Metadata priority when re-downloading metadata truth1ness Library Management 20 04-12-2015 01:02 PM


All times are GMT -4. The time now is 08:47 AM.


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