![]() |
#1 |
Connoisseur
![]() Posts: 53
Karma: 10
Join Date: Sep 2020
Device: KOA3 JB
|
OPDS Client fails with calibre 5.38.0
This morning I upgraded calibre to the latest version, 5.38.0. After restarting, I attempted to invoke the OPDS Client plugin, and it failed with a "KeyError: 'Server'" error. I restarted calibre in debug mode and produced the attached log file.
After reinstalling calibre 5.37.0, the plugin worked as normal. Has anyone noted any issues with 5.38? Cheers, Kevin |
![]() |
![]() |
![]() |
#2 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
At a wild eyed guess, that plugin has not been updated to Python 3.
Take a look at model.py where you see import urllib2 and then later where you see lines starting with calibreRestSearchResponse = urllib2.urlopen(. urllib2 is deprecated in Python 3. Edit: I had a bit of time to kill so I ran 2to3 (convert python2 code to python3 code) against the .py files for the plugin and added the modified files to a zip archive. The resultant plugin comes up asking which tool bars to show in and after a restart, the configuration dialog shows when I click on the icon. When I have the calibre server running on port 8080 and open the OPDS client, I can see the various selection options and libraries, etc. If I remove the checkmark on Hide books already in library, I can see the books. Since I am looking at the existing libraries, this is a bit useless other than for testing. Last edited by DNSB; 03-06-2022 at 12:43 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Connoisseur
![]() Posts: 53
Karma: 10
Join Date: Sep 2020
Device: KOA3 JB
|
The plugin was actually updated to Python 3 about a year and a half ago in response to calibre releasing version 5, which also went to Python 3. The author of the plugin did work to make it compatible, and it's worked on every iteration of calibre 5 until 5.38, which changed something under the dashboard and broke it.
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That will be be because feedparser bundled with calibre is updated to version 6. If the plugin needs version 5 it should use its own private copy.
|
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() Posts: 53
Karma: 10
Join Date: Sep 2020
Device: KOA3 JB
|
Thanks, Kovid! I'll add your info to my GitHub issue on the plugin!
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Connoisseur
![]() Posts: 53
Karma: 10
Join Date: Sep 2020
Device: KOA3 JB
|
The author pushed a fixed version that now works with calibre 5.38.0.
https://github.com/steinarb/opds-reader |
![]() |
![]() |
![]() |
#8 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
![]() Spoiler:
Last edited by DNSB; 03-06-2022 at 09:01 PM. |
|
![]() |
![]() |
![]() |
#9 | |
Connoisseur
![]() Posts: 53
Karma: 10
Join Date: Sep 2020
Device: KOA3 JB
|
Quote:
That's strange, because it's working fine for me with 5.38. Before I updated calibre, I removed the plugin and restarted. When I was sure it was gone, I updated to 5.38. I followed the instructions on GitHub to clone the repository and install it. Works perfectly! |
|
![]() |
![]() |
![]() |
#10 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Edit: My default is to have the content server user/password protected. I had to disable authentication for the plugin to work. Last edited by DNSB; 03-07-2022 at 12:57 PM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
OPDS Client that will allow selection of format? | PiperKev | Plugins | 1 | 02-14-2021 01:42 AM |
calibre as an OPDS client | cedhax | Related Tools | 1 | 07-19-2016 04:16 AM |
just found this: OPDS client testing catalog | At_Libitum | Marvin | 1 | 11-14-2013 03:47 PM |
OPDS Client? | Kudalufi | Calibre | 9 | 12-21-2012 01:59 AM |
Touch OPDS client ??? | vlad59 | Kobo Reader | 7 | 12-04-2011 09:36 AM |