08-07-2024, 02:21 AM | #3061 |
Enthusiast
Posts: 38
Karma: 68
Join Date: Sep 2014
Location: Australia
Device: Kobo Clara 2E
|
Automatic - default settings. AFAIK - I have never changed anything there. And definitely not changed anything since I removed it and reinstalled!
Last edited by trishau; 08-07-2024 at 02:23 AM. Reason: sp |
08-09-2024, 07:19 AM | #3062 | |
Junior Member
Posts: 3
Karma: 10
Join Date: Aug 2024
Device: Kobo Glo
|
Problem with Kobo Utilities plugin
Hi, I'm using the latest version of Calibre on a fully updated Fedora KDE Plasma. When I install Kobo Utilities, I obviously need to restart Calibre. But after a restart, and even after completely rebooting, I keep getting the same message:
Quote:
BTW, I have access to a Macbook, where the plugins work just fine. |
|
Advert | |
|
08-09-2024, 09:54 AM | #3063 |
Junior Member
Posts: 3
Karma: 10
Join Date: Aug 2024
Device: Kobo Glo
|
Found it!
I reinstalled Calibre not from the Fedora repository, but from the downloadpage instead. That solved the problem.
|
08-09-2024, 11:33 AM | #3064 | ||
Resident Curmudgeon
Posts: 76,533
Karma: 136565488
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
||
08-09-2024, 01:02 PM | #3065 | ||||
Junior Member
Posts: 7
Karma: 10
Join Date: Oct 2022
Device: Kobo Forma
|
Quote:
Code:
Traceback (most recent call last): File "/usr/lib64/calibre/calibre/gui2/ui.py", line 147, in __init__ ac = self.init_iaction(action) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/calibre/calibre/gui2/ui.py", line 165, in init_iaction ac = action.load_actual_plugin(self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/calibre/calibre/customize/__init__.py", line 659, in load_actual_plugin ac = getattr(importlib.import_module(mod), cls)(gui, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "/usr/lib64/calibre/calibre/customize/zipplugin.py", line 205, in exec_module exec(compiled, module.__dict__) File "calibre_plugins.koboutilities.action", line 40, in <module> from six.moves.configparser import SafeConfigParser ImportError: cannot import name 'SafeConfigParser' from 'configparser' (/usr/lib/python3.12/configparser.py). Did you mean: 'RawConfigParser'? Quote:
(Also, don't know about the quality of the packaging on other distros, but I'm on Gentoo where everything is built from source and where "download the binary from the website" is not an acceptable solution.) |
||||
Advert | |
|
08-09-2024, 02:15 PM | #3066 |
Custom User Title
Posts: 9,589
Karma: 65099765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Yeah, don't use Calibre from repository.
|
08-09-2024, 02:25 PM | #3067 | |
Wizard
Posts: 2,129
Karma: 8796706
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Yes you do want to run the calibre binary from the calibre website. My system has Python 3.12.3 installed but runs calibre with no problems.
Spoiler:
Note that the calibre binary has its own version of python. bernie Quote:
|
|
08-09-2024, 08:21 PM | #3068 | |
Junior Member
Posts: 7
Karma: 10
Join Date: Oct 2022
Device: Kobo Forma
|
Quote:
|
|
08-10-2024, 12:37 PM | #3069 | |
Resident Curmudgeon
Posts: 76,533
Karma: 136565488
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
08-10-2024, 12:52 PM | #3070 |
Well trained by Cats
Posts: 30,455
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
As to compiling from source.
The source may be fine, and the OS distribution messed up a dependency |
08-11-2024, 08:38 AM | #3071 | |
Junior Member
Posts: 2
Karma: 32
Join Date: Aug 2024
Device: Kobo Libra 2
|
Thanks, @WovenTales, for identifying the issue with deprecated stuff in python 3.12. I made a very small patch, following what the python changelog says, and it works great on my calibre. Here's my patched version if anyone's interested. All I did was change SafeConfigParser to ConfigParser in 4 locations. I also bumped the version to 2.17.2 and added a change to the changelog, and added a quick note to the about.txt message for a new source code location. Seems to work great on my machine.
Does anyone know how to get in touch with the cbhaley person who seems to be maintaining this plugin's release? New to the forum and unsure how to do that. Quote:
|
|
08-11-2024, 08:51 AM | #3072 |
Junior Member
Posts: 2
Karma: 32
Join Date: Aug 2024
Device: Kobo Libra 2
|
Here's a copy of the source in my zip file for 2.17.2 if anyone wants it: https://github.com/damccull/Kobo-Utilities
|
08-11-2024, 09:00 AM | #3073 |
Grand Sorcerer
Posts: 12,046
Karma: 7548549
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
That person is me.
I'm not going to release this until calibre itself uses python 3.12. Doing otherwise is supporting distro builds that change fundamental calibre dependencies, and there be dragons. There are incompatibilities between python 3.11 and 3.12 that affect calibre. Once @kovidgoyal has dealt with those I will look at what is necessary to update the plugin. |
08-11-2024, 09:17 AM | #3074 | |
Grand Sorcerer
Posts: 12,783
Karma: 75641916
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Quote:
|
|
08-11-2024, 09:56 PM | #3075 | |
Junior Member
Posts: 7
Karma: 10
Join Date: Oct 2022
Device: Kobo Forma
|
Quote:
But this response of "I'm not going to make this change because Calibre is still on 3.11" is inarguably a shortsighted response which, to be blunt, doesn't show good code/project management. damccull and I aren't asking for the entire version support to be changed, we're asking for four lines to be updated in a backwards-compatible manner (I had found the same ones but didn't post my own patch because I was annoyed with the community response and hoped the official one was better). The SafeConfigParser name has been deprecated since Python 3.02; Calibre has packaged versions which support the recommended alias of ConfigParser since Calibre 5.0.0, and unless you have some concrete reason to support the older versions using Python 2.7 you don't lose anything from not updating now. (I honestly doubt the code supports 2.7 anyway no matter what the matrix in Calibre's "Get a plugin" dialog says -- and even if it somehow does this would just be another entry in whatever version compatibility code you'd already have to be using.) This is not jumping ahead of Calibre to support a Python version it doesn't, this is getting ahead of the plugin breaking unnecessarily when 3.12 finally removes something which has been incorrect in general since 2011 and incorrect for Calibre specifically since 2020. damccull, thanks for publishing your patch. For anyone using any Linux/BSD distro which does ignore the bundled Python, that works perfectly for me when manually installed, and contrary to the fearmongering I've not had any problems running Calibre on 3.12 -- or with running this addon after that patch. That's certainly not to say there's not going to be bugs lurking in the corners somewhere or that reporting those bugs will be well-received with that setup, but everyday use is fine. |
|
Tags |
calibre, kobo, kobo utilities, kobo-utilities, plugins |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Manga plugin | mastertea | Plugins | 6 | 01-06-2022 03:43 AM |
[GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 06:25 AM |
Kobo Utilities Plugin Question | nikev | Kobo Reader | 10 | 09-26-2018 12:55 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 01:27 PM |