View Single Post
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