|
|
#1291 |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 42
Karma: 100180
Join Date: Apr 2020
Device: none
|
scarlettruin and wolfi please try installing the plugin from the latest Annotations.zip file in one of the previous posts.
|
|
|
|
|
|
#1292 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,183
Karma: 1512904
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
using the one from thread #1279
caliber, version 9.3.0 ERROR: Unconsidered exception: <b>ModuleNotFoundError</b>:No module named 'ParseKindleMyClippingsTxt' caliber 9.3 embedded-python: True Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19045') Python 3.14.2 Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free') Interface language: en EXE path: C:\Program Files\Calibre2\calibre.exe Successfully initialized third party plugins: DeACSM (0, 0, 16) && DeDRM (10, 0, 3) && Annotations (1, 17, 15) && Count Pages (1, 14, 6) && Ebook Translator (2, 4, 1) && Find Duplicates (1, 10, 10) && Goodreads (1, 8, 4) && Kindle hi-res covers (0, 5, 1) && Reading List (1, 15, 7) Traceback (most recent call last): File "calibre_plugins.annotations.action", line 376, in fetch_usb_connected_device_annotations File "calibre_plugins.annotations.action", line 420, in fetch_usb_device_annotations File "calibre_plugins.annotations.action", line 637, in get_annotated_books_on_usb_device File "C:\Users\Usuario\AppData\Local\Temp\calibre-928fgc_w\calibre_annotations_plugin\Kindle.py", line 71, in get_active_annotations File "C:\Users\Usuario\AppData\Local\Temp\calibre-928fgc_w\calibre_annotations_plugin\Kindle.py", line 362, in _parse_my_clippings ModuleNotFoundError: No module named 'ParseKindleMyClippingsTxt' |
|
|
|
|
|
#1293 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54,553
Karma: 182340325
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
The module appears to be in the Readers' folder. The error only occurs when I have a Kindle ereader connected and try to pull annotations from it.
|
|
|
|
|
|
#1294 | |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2013
Device: kindle
|
Quote:
|
|
|
|
|
|
|
#1295 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Mar 2026
Device: Kindle Paperwhite
|
Unfortunately a similar error on my Kindle Paperwhite with the latest version 1.17.15 (the one from thread #1279):
calibre, version 9.4.0 ERROR: Unhandled exception: <b>ModuleNotFoundError</b>:No module named 'ParseKindleMyClippingsTxt' calibre 9.4 embedded-python: True Windows-11-10.0.26100-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '11', '10.0.26100') Python 3.14.2 Windows: ('11', '10.0.26100', 'SP0', 'Multiprocessor Free') Interface language: None EXE path: C:\Program Files\Calibre2\calibre.exe Successfully initialized third party plugins: Annotations (1, 17, 15) Traceback (most recent call last): File "calibre_plugins.annotations.action", line 376, in fetch_usb_connected_device_annotations File "calibre_plugins.annotations.action", line 420, in fetch_usb_device_annotations File "calibre_plugins.annotations.action", line 637, in get_annotated_books_on_usb_device File "C:\Users\UserX\AppData\Local\Temp\calibre-_a17zjlf\calibre_annotations_plugin\Kindle.py", line 71, in get_active_annotations File "C:\Users\UserX\AppData\Local\Temp\calibre-_a17zjlf\calibre_annotations_plugin\Kindle.py", line 362, in _parse_my_clippings ModuleNotFoundError: No module named 'ParseKindleMyClippingsTxt' Please help to resolve this issue or let me know if you need some additional info. Thank you so much in advance! |
|
|
|
|
|
#1296 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Mar 2026
Device: Kindle Paperwhite
|
Below is the solution provided by Gemini.
I have tested it in both Calibre 9.4 and 9.5 and it did work OK for me. Hope it helps you too! I am new to this forum - please feel free to remove the post if it is inappropriate in any way. ========== ### Summary of Changes to Fix `ModuleNotFoundError` in Annotations Plugin The error `ModuleNotFoundError: No module named 'ParseKindleMyClippingsTxt'` occurs because of the order and manner in which the plugin loads its internal files (modules). The fix involves making two small edits to the `action.py` file within the plugin to ensure that modules are loaded in the correct order and are properly shared. Here are the exact changes that were made: **1. Enabled Module Caching in `action.py`** To ensure that a loaded module is available to other modules that need it, caching was enabled. * **File:** `action.py` * **Function:** `load_source` * **Change:** The line `sys.modules[module.__name__] = module` was uncommented. **Before:** ```python # The module is always executed and not cached in sys.modules. # Uncomment the following line to cache the module. # sys.modules[module.__name__] = module ``` **After:** ```python # The module is always executed and not cached in sys.modules. # Uncomment the following line to cache the module. sys.modules[module.__name__] = module ``` **2. Prioritized Module Loading in `action.py`** To fix the import error, the code was instructed to load the required `ParseKindleMyClippingsTxt.py` module *before* any other modules that depend on it. * **File:** `action.py` * **Function:** `load_dynamic_reader_classes` * **Change:** Logic was added to find `ParseKindleMyClippingsTxt.py` in the list of files to be loaded and move it to the beginning. **Before:** ```python # Load the builtin classes folder = 'readers/' reader_app_classes = get_resource_files(self.plugin_path, folder=folder) sample_classes = ['SampleExportingApp', 'SampleFetchingApp'] ``` **After:** ```python # Load the builtin classes folder = 'readers/' reader_app_classes = get_resource_files(self.plugin_path, folder=folder) # Ensure ParseKindleMyClippingsTxt is loaded first to satisfy dependencies parser_module = 'readers/ParseKindleMyClippingsTxt.py' if parser_module in reader_app_classes: reader_app_classes.remove(parser_module) reader_app_classes.insert(0, parser_module) sample_classes = ['SampleExportingApp', 'SampleFetchingApp'] ``` **3. ZIP and load into Calibre** Once the changes are done archive the entire folder into ZIP file - e.g. Annotations_1.17.16.zip The load the archive into Calibre using Preferences=> Advanced => Plugins => Load plugin from file ======================= Corresponding ZIP file is attached too. |
|
|
|
|
|
#1298 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jun 2009
Device: Kindle
|
#1296 fixed it for me too. Thank you!
|
|
|
|
|
|
#1299 |
|
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jul 2026
Device: Pocketbook Verse Pro
|
Pocketbook compatibility
Hi,
I have a fun idea to display my favourite quotes onto an e-ink monitor which I will put on my wall. I want to use the annotate function on my pocketbook to create a library. I see this plugin is not compatible with pocketbooks yet. Is this something anyone would be willing to look into? ![]() Thanks |
|
|
|
|
|
#1300 |
|
livin' with ebooks
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 49
Karma: 42048
Join Date: Jun 2014
Location: Berlin (DE), winters in Aomori (JP), from Montréal (CA)
Device: Libra2, KOA
|
Hi everyone.
I've rolled up the last 3 "hotfixes" posted in this forum, in order, into the Calibre-Annotations repo I forked from davidfor's "master" branch a little while back, and have issued releases of all three. The three release are here: https://github.com/calibre-annotatio...tions/releases As of right now (September 3, 2026), release v1.17.16 is the latest and *should* work as well as what PeterT and SetKindle uploaded here recently. https://github.com/calibre-annotatio...s/tag/v1.17.16 By "rolled up" I mean I carefully and judiciously merged the fixes, in order of appearance, into the last davidfor master. This gets us where we are today. You can simply download the "Source code (zip)" (https://github.com/calibre-annotatio...s/v1.17.16.zip) and install that in Calibre using the "Install from file" button in the Plugins section. I hope we can get this to the point where we can get this sourced as the official plugin download in-app. I invite anyone who wants to work on the Annotations codebase to please use this new repo. Submit issues, submit Pull Requests. There is even a discussion forum there for technical discussions of the code, a wiki if we need to document anything, etc… The community and user-base around this plugin is very small, but I hope we can keep it alive, and thriving, by making it easier to make fixes and improvements. A message board is not optimal for managing a software project, so I really hope we can move this community effort (I mean just the software dev aspect!) to a proper git repo. Last edited by bopuc; 09-03-2026 at 10:29 AM. |
|
|
|
|
|
#1301 |
|
Weirdo
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,294
Karma: 13516840
Join Date: Nov 2019
Location: Wuppertal, Germany
Device: Kobo Libra 2, Kobo Sage, Kobo Aura H2O, reMarkable PaperPro
|
Can you create a new thread with your fork so that it can be directly downloaded in Calibre?
|
|
|
|
|
|
#1302 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84,989
Karma: 153791427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
|
|
|
|
|
#1303 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54,553
Karma: 182340325
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Minor nit is that when you download the source code .zip file from bopuc's GitHub site, the plugin is not in the root of the .zip file but rather inside a directory (calibre-annotations-1.17.16) in the .zip file. calibre can't load this since __init__.py must be in the root of the .zip file. I unzipped the file, moved the contents of the calibre-annotations-1.17.16 into the root and then re-zipped it. Installed in calibre with no complaints. I've attached that file to this message.
Edit: The issue with the directory inside the .zip file has been corrected so I removed the attachment. Last edited by DNSB; 09-04-2026 at 05:17 PM. Reason: Issue has been corrected. |
|
|
|
|
|
#1304 | |
|
livin' with ebooks
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 49
Karma: 42048
Join Date: Jun 2014
Location: Berlin (DE), winters in Aomori (JP), from Montréal (CA)
Device: Libra2, KOA
|
Quote:
[Update] Indeed it seems Github's automatic source code zip places the files into a directory before zipping. Interestingly, when unzipping the "correct" plugin zip, in some cases the app doing the unzipping will also create a folder. That's why I didn't catch it. Noted! I will figure out how to produce a usable release package. Thank you DNSB! Last edited by bopuc; 09-04-2026 at 05:21 AM. |
|
|
|
|
|
|
#1305 |
|
livin' with ebooks
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 49
Karma: 42048
Join Date: Jun 2014
Location: Berlin (DE), winters in Aomori (JP), from Montréal (CA)
Device: Libra2, KOA
|
Regarding starting a new thread:
Yeah that certainly makes sense, but I would want to make sure a few things first: 1. Repo Naming. I admit I perhaps too hastily named the github repo "calibre-annotations". I worry this choice may have been problematic in a few ways (confusion with Calibre's own annotations functionality, not clear that it is in fact the Annotations plugin…). I'll assume we're all comfortable continuing with just "Annotations", and will go rename that repo (and maybe the "org" account I created for it). 2. Thread Naming. This also touches the forum thread naming though. "[GUI Plugin] Annotations" is already used (for this thread)… What should we call the new one? 3. The Future… I can imagine this fork needs a fair amount of cleanup work, and it could evolve, become something bigger. This begs the question: maybe a so-called "hard fork", with a new name entirely is in order. Doing this now would also solve the above two naming questions, but it is a notable "step away" from "Annotations"… One I would not take lightly and certainly not without support. (This could also be done later I guess…) For now, I am going to figure out the release issue DNSB flagged above, and just rename the repo to "Annotations" and update the README to include some explanation, for clarity. Hope we can discuss and figure this out. Last edited by bopuc; 09-04-2026 at 07:39 AM. |
|
|
|
![]() |
| Tags |
| sampleexportingapp |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 546 | 05-21-2026 02:44 PM |
| [GUI Plugin] Open With | kiwidude | Plugins | 405 | 02-09-2026 07:54 AM |
| [GUI Plugin] Annotations (closed) | GRiker | Plugins | 68 | 06-17-2014 06:11 AM |
| [GUI Plugin] KiNotes | -axel- | Plugins | 0 | 07-14-2013 06:39 PM |
| [GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |