View Single Post
Old 04-09-2018, 06:55 AM   #1
Korben Dallas
Junior Member
Korben Dallas began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Dec 2010
Device: Sony Reader PRS-350
[SSL: CERTIFICATE_VERIFY_FAILED]

Since January (approximately) the functionality of downloading metadata ceased to work properly. Every attempt to download any metadata fails invariably—see following log:

Spoiler:

calibre, version 3.21.0
ERROR: No matches found: <p>Failed to find any books that match your search. Try making the search <b>less specific</b>. For example, use only the author's last name and a single distinctive word from the title.<p>To see the full log, click "Show details".

Running identify query with parameters:
{u'authors': [u'Hans Dominik'], u'identifiers': {u'uri': u'http://gutenberg.spiegel.de/buch/atlantis-8709/1'}, u'title': u'Atlantis', u'timeout': 30}
Using plugins: Google (1, 0, 0), Amazon.com (1, 2, 1), Overdrive (1, 0, 0)
The log from individual plugins is below

****************************** Amazon.com (1, 2, 1) ******************************
Found 0 results
Downloading from Amazon.com took 0.743000030518
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0
Server: auto
Making google query: https://www.google.com/search?q=Atla...Awww.amazon.de
Plugin Amazon.com failed
Traceback (most recent call last):
File "site-packages\calibre\ebooks\metadata\sources\identify. py", line 48, in run
File "site-packages\calibre\ebooks\metadata\sources\amazon.py ", line 1346, in identify
File "site-packages\calibre\ebooks\metadata\sources\amazon.py ", line 1282, in search_search_engine
File "site-packages\calibre\ebooks\metadata\sources\search_en gines.py", line 230, in google_search
File "site-packages\calibre\ebooks\metadata\sources\search_en gines.py", line 65, in query
File "site-packages\mechanize\_mechanize.py", line 239, in open_novisit
File "site-packages\mechanize\_mechanize.py", line 284, in _mech_open
File "site-packages\mechanize\_opener.py", line 195, in open
File "site-packages\mechanize\_urllib2_fork.py", line 352, in _open
File "site-packages\mechanize\_urllib2_fork.py", line 340, in _call_chain
File "site-packages\calibre\utils\browser.py", line 28, in https_open
File "site-packages\mechanize\_urllib2_fork.py", line 1160, in do_open
URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>

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

****************************** Google (1, 0, 0) ******************************
Found 0 results
Downloading from Google took 0.713000059128
Making query: https://books.google.com/books/feeds...max-results=20
Failed to make identify query: u'https://books.google.com/books/feeds/volumes?q=intitle%3AAtlantis%2Binauthor%3AHans+ina uthor%3ADominik&min-viewability=none&start-index=1&max-results=20'
Traceback (most recent call last):
File "site-packages\calibre\ebooks\metadata\sources\google.py ", line 362, in identify
File "site-packages\mechanize\_mechanize.py", line 239, in open_novisit
File "site-packages\mechanize\_mechanize.py", line 284, in _mech_open
File "site-packages\mechanize\_opener.py", line 195, in open
File "site-packages\mechanize\_urllib2_fork.py", line 352, in _open
File "site-packages\mechanize\_urllib2_fork.py", line 340, in _call_chain
File "site-packages\calibre\utils\browser.py", line 28, in https_open
File "site-packages\mechanize\_urllib2_fork.py", line 1160, in do_open
URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>

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

****************************** Overdrive (1, 0, 0) ******************************
Found 0 results
Downloading from Overdrive took 1.93400001526
Initial query is Hans Dominik
Cross reference query is Atlantis

************************************************** ******************************
The identify phase took 2.01 seconds
The longest time (1.934000) was taken by: Overdrive
Merging results from different sources and finding earliest publication dates from the worldcat.org service
We have 0 merged results, merging took: 0.00 seconds



Calling the urls from the log via Firefox (59.0.2), Edge, and Internet Explorer (11.334.16299.0) results in valid pages, i.e. no error.

So now the question is:
  • Why doesn't Calibre find the appropriate certificates?
Or put otherwise:
  • Where should I put the required certificate files, and in which format?
or
  • How can I prevent Calibre from trying to check the validity of these certificates? (As a last resort…)

Btw: My System:
  • Windows 10 Pro 64bit (ver 1709 build 16299.334)
  • Calibre 3.21 [64bit]
  • no proxy settings found whatsoever
Korben Dallas is offline   Reply With Quote