Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 05-10-2024, 08:12 PM   #1726
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,250
Karma: 74000002
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
I wonder though. Is calibre being installed from the official Kovid site, or from the distributions own repository? Kovid tends to frown on the distribution supplied versions of calibre in that they tend to make changes for philosophical reasons which are not fully tested.

Sent from my Pixel 7a using Tapatalk
PeterT is offline   Reply With Quote
Old 05-10-2024, 10:02 PM   #1727
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 36,506
Karma: 145748888
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by PeterT View Post
I wonder though. Is calibre being installed from the official Kovid site, or from the distributions own repository? Kovid tends to frown on the distribution supplied versions of calibre in that they tend to make changes for philosophical reasons which are not fully tested.
Given the use of Python 3.12, it's very likely to be a Linux distro installed version with an external Python install being used.
DNSB is offline   Reply With Quote
Old 05-14-2024, 11:29 PM   #1728
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,645
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Goodreads Sync v1.16.6

Release Notes
https://github.com/kiwidude68/calibr...s_sync-v1.16.6

Special thanks to StegSchreck for the contribution. This release will hopefully help those of you on Linux battling with the Python 3.12 issues...
kiwidude is offline   Reply With Quote
Old 05-28-2024, 05:22 PM   #1729
Ambassador Dave
Junior Member
Ambassador Dave began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2024
Device: Kindle Paperwhite
Hi kiwidude, thank you and StegSchreck for taking a stab at helping "those of" us, much appreciated!

Quote:
Originally Posted by kiwidude View Post
Release Notes
https://github.com/kiwidude68/calibr...s_sync-v1.16.6

Special thanks to StegSchreck for the contribution. This release will hopefully help those of you on Linux battling with the Python 3.12 issues...
Unfortunately, as you suggested it can be difficult without a test environment. I happened into Calibre today to look for a book, saw the plugin update, updated & tried it. New error message:

Code:
AttributeError: 'HTTPSConnectionWithTimeout' object has no attribute 'key_file'
Long version (popup window show details)
Spoiler:
Quote:
calibre, version 7.11.0
ERROR: Unhandled exception: <b>AttributeError</b>:'HTTPSConnectionWithTimeout' object has no attribute 'key_file'

calibre 7.11 embedded-python: False
Linux-6.9.2-arch1-1-x86_64-with-glibc2.39 Linux ('64bit', 'ELF')
('Linux', '6.9.2-arch1-1', '#1 SMP PREEMPT_DYNAMIC Sun, 26 May 2024 01:30:29 +0000')
Python 3.12.3
Interface language: None
EXE path: /usr/bin/python3
Successfully initialized third party plugins: DeACSM (0, 0, 16) && DeDRM (10, 0, 3) && Goodreads Sync (1, 16, 6) && Obok DeDRM (10, 0, 3)
Traceback (most recent call last):
File "calibre_plugins.goodreads_sync.action", line 436, in search_goodreads_to_link_book
self.search_to_link_books(calibre_books)
File "calibre_plugins.goodreads_sync.action", line 458, in search_to_link_books
goodreads_id_for_isbn = self.grhttp.get_goodreads_id_for_isbn(isbn)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "calibre_plugins.goodreads_sync.core", line 416, in get_goodreads_id_for_isbn
(response, content) = self._request_get(url, suppress_status='404')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "calibre_plugins.goodreads_sync.core", line 176, in _request_get
response, content = h.request(url, method='GET')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "calibre_plugins.goodreads_sync.httplib2.__init__" , line 1688, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "calibre_plugins.goodreads_sync.httplib2.__init__" , line 1428, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^
File "calibre_plugins.goodreads_sync.httplib2.__init__" , line 1348, in _conn_request
conn.connect()
File "calibre_plugins.goodreads_sync.httplib2.__init__" , line 1098, in connect
sock, self.key_file, self.cert_file,
^^^^^^^^^^^^^
AttributeError: 'HTTPSConnectionWithTimeout' object has no attribute 'key_file'


I'm more than glad to try out / troubleshoot / etc any other updates you may get/have to "battle" the Python updates. Unfortunately my light coding knowledge is in C++ (and some ancient expertise in Pascal & Perl) so I'm not much of a help with Python as far as proffering patches.

To address PeterT's question, yes, I use the distro's 'version' of Calibre. However, if I understand correctly, the Arch Linux 'version' simply utilizes an installer script to download and install Calibre direct from the source. Plugins are manually installed by users like me within Calibre.

DNSB's guess is correct, python is a separately maintained package for the distro. Arch Linux (and therefore Arch-based EndeavourOS) is a 'rolling' distro that updates parts as they come available.

Last, a quick apology for appearing to drop a message here then go silent. I thought by being subscribed to the topic I'd receive e-mail notifications of updates, but learned today didn't. I think I've got that turned on correctly now...
Ambassador Dave is offline   Reply With Quote
Old 05-30-2024, 03:13 AM   #1730
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,645
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Can you please try this version attached then?

Unfortunately the person who submitted the patch never actually tested it (something I only found out afterwards else I would never have touched it). I have no linux system to test on so I couldn't either. I released it on faith and clearly shouldn't have. This version has some more tweaks submitted by them but again they have been untested.
Attached Files
File Type: zip Goodreads Sync.zip (736.6 KB, 9 views)
kiwidude is offline   Reply With Quote
Old 05-30-2024, 06:16 AM   #1731
user1213
Junior Member
user1213 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2024
Device: kobo
Hey I have the same error as Ambassador Dave, also running Linux.
I tested 1.16.7 but the issue is still there.
user1213 is offline   Reply With Quote
Old 05-30-2024, 10:43 AM   #1732
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,645
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by user1213 View Post
Hey I have the same error as Ambassador Dave, also running Linux.
I tested 1.16.7 but the issue is still there.
Can you post the error log from using the plugin version above? I need to see a stack trace to see where the issue lies.
kiwidude is offline   Reply With Quote
Old Yesterday, 03:08 PM   #1733
Ambassador Dave
Junior Member
Ambassador Dave began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2024
Device: Kindle Paperwhite
Quote:
Originally Posted by kiwidude View Post
Can you please try this version attached then?
Gladly tested. Sadly looks like similar error:

Spoiler:
Code:
calibre 7.11  embedded-python: False
Linux-6.9.2-arch1-1-x86_64-with-glibc2.39 Linux ('64bit', 'ELF')
('Linux', '6.9.2-arch1-1', '#1 SMP PREEMPT_DYNAMIC Sun, 26 May 2024 01:30:29 +0000')
Python 3.12.3
Interface language: None
EXE path: /usr/bin/python3
Successfully initialized third party plugins: DeACSM (0, 0, 16) && DeDRM (10, 0, 3) && Goodreads Sync (1, 16, 7) && Obok DeDRM (10, 0, 3)
Traceback (most recent call last):
  File "calibre_plugins.goodreads_sync.action", line 436, in search_goodreads_to_link_book
    self.search_to_link_books(calibre_books)
  File "calibre_plugins.goodreads_sync.action", line 458, in search_to_link_books
    goodreads_id_for_isbn = self.grhttp.get_goodreads_id_for_isbn(isbn)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.goodreads_sync.core", line 416, in get_goodreads_id_for_isbn
    (response, content) = self._request_get(url, suppress_status='404')
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.goodreads_sync.core", line 176, in _request_get
    response, content = h.request(url, method='GET')
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.goodreads_sync.httplib2.__init__", line 1683, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.goodreads_sync.httplib2.__init__", line 1423, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.goodreads_sync.httplib2.__init__", line 1343, in _conn_request
    conn.connect()
  File "calibre_plugins.goodreads_sync.httplib2.__init__", line 1095, in connect
    sock, self.key_file, self.cert_file,
          ^^^^^^^^^^^^^
AttributeError: 'HTTPSConnectionWithTimeout' object has no attribute 'key_file'


I hear you on the difficulty testing w/o the environment, and am glad to try out more. Thanks for trying!

Last edited by Ambassador Dave; Yesterday at 03:12 PM. Reason: Added spoiler to diminish the wall of error code
Ambassador Dave is offline   Reply With Quote
Old Today, 04:31 AM   #1734
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,645
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Thanks Ambassador Dave. There is a subtle difference in the stack trace but looking at the code now I can see this was never going to work, the submitted patch is incomplete.

If someone else wants to contribute a proper patch for this then please feel free to submit it - but please test it first...
kiwidude is offline   Reply With Quote
Reply

Tags
calibre, goodreads


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Clipboard Search kiwidude Plugins 29 04-02-2024 10:05 PM
[GUI Plugin] Search the Internet kiwidude Plugins 433 04-01-2024 05:48 PM
[GUI Plugin] Open With kiwidude Plugins 403 04-01-2024 08:39 AM
[GUI Plugin] Quick Preferences kiwidude Plugins 62 03-16-2024 11:47 PM
[GUI Plugin] Book Sync **Deprecated** kiwidude Plugins 111 06-07-2011 07:47 PM


All times are GMT -4. The time now is 09:35 AM.


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