Quote:
Originally Posted by kevn57
I haven't been able to get any info from goodreads and thought I'd post this error report, not sure if my still using calibre 5.34 with the new plugin is the issue.
Code:
calibre, version 5.34.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:
{'title': 'Walden; Or, Life in the Woods', 'authors': ['Henry David Thoreau'], 'identifiers': {'isbn': '9780486284958', 'goodreads': '77667'}, 'timeout': 30}
Using plugins: Goodreads (1, 7, 6)
The log from individual plugins is below
****************************** Goodreads (1, 7, 6) ******************************
Found 0 results
Downloading from Goodreads took 0.0
identify - start. title=Walden; Or, Life in the Woods, authors=['Henry David Thoreau'], identifiers={'isbn': '9780486284958', 'goodreads': '77667'}
Plugin Goodreads failed
Traceback (most recent call last):
File "calibre_plugins.goodreads.__init__", line 51, in user_agent
ImportError: cannot import name 'random_common_chrome_user_agent' from 'calibre.utils.random_ua' (C:\Program Files\Calibre2\app\bin\python-lib.bypy.frozen\calibre\utils\random_ua.pyc)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre\ebooks\metadata\sources\identify.py", line 46, in run
File "calibre_plugins.goodreads.__init__", line 211, in identify
File "calibre\ebooks\metadata\sources\base.py", line 291, in browser
File "calibre_plugins.goodreads.__init__", line 55, in user_agent
ImportError: cannot import name 'random_chrome_ua' from 'calibre.utils.random_ua' (C:\Program Files\Calibre2\app\bin\python-lib.bypy.frozen\calibre\utils\random_ua.pyc)
********************************************************************************
The identify phase took 0.22 seconds
The longest time (0.000000) was taken by: Goodreads
Merging results from different sources
We have 0 merged results, merging took: 0.00 seconds
|
From my understanding, the fallback random_chrome_ua() function is only available from Calibre v2.81.0 to v5.8.1 while the random_common_chrome_user_agent() function will work from v5.40.0 onwards.
So if you insist on keeping your Calibre on version 5, then you can make the latest version of this plugin work by downgrading/upgrading your Calibre to any versions that is not from v5.9.0 to v5.39.1.