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 07-18-2021, 02:32 PM   #961
prs350
Junior Member
prs350 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2021
Device: Sony PRS-350
Thanks for the quick reply! Glad I could throw ye olde issue into the mix with the ancient Sony. In rapid succession and hope it helps!

1. The beta version didn't solve the issue.

2. The attached screenshot shows the entire directory structure for the PRS-350 (including hidden files). No books.db to be found, only an .annot file buried in Digital Editions>Annotations>database>media>books>some_boo k>some_book.annot



3. Debug mode results below. Will note right away the "DEBUG: 0.0 Annotations plugin: Error loading libiMobileDevice. This hasn't worked for a while, and is blacklisted in calibre v3."
Spoiler:

***
calibre Debug log
calibre 5.23 embedded-python: True is64bit: True
macOS-10.16-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '20.5.0', 'Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64')
Python 3.8.5
OSX: ('10.16', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: Annotations (1, 15, 2) && Sony PRS-T1 notes plugin (1, 1, 0)
calibre 5.23 embedded-python: True is64bit: True
macOS-10.16-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '20.5.0', 'Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64')
Python 3.8.5
OSX: ('10.16', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: Annotations (1, 15, 2) && Sony PRS-T1 notes plugin (1, 1, 0)
devicePixelRatio: 2.0
logicalDpi: 72.0 x 72.0
physicalDpi: 128.00000192236715 x 127.50000191485789
Using calibre Qt style: True
[0.00] Starting up...
[0.03] Showing splash screen...
[0.39] splash screen shown
[0.39] Initializing db...
[0.40] db initialized
[0.40] Constructing main UI...
DEBUG: 0.0 Annotations plugin: Error loading libiMobileDevice. This hasn't worked for a while, and is blacklisted in calibre v3.
DEBUG: 0.0 Annotations plugin: Error is: No module named 'calibre.devices.idevice'
DEBUG: 0.0 Annotations::reader_app_support.py - loading translations
DEBUG: 0.0 Annotations::common_utils.py - loading translations
DEBUG: 0.0 Annotations::appearance.py - loading translations
DEBUG: 0.0 Annotations::config.py - loading translations
DEBUG: 0.0 Annotations::annotated_books.py - loading translations
DEBUG: 0.1 Annotations::action.py - loading translations
DEBUG: 0.2 ~~~~~~~~~~~~~~~~~~~~~~~ Annotations plugin 1.15.2 (OS X) ~~~~~~~~~~~~~~~~~~~~~~~
DEBUG: 0.2 AnnotationsAction:genesis(ERROR) Error loading library libiMobileDevice: name 'libiMobileDevice' is not defined
DEBUG: 0.2 AnnotationsAction:init_options(disable_caching: False)
DEBUG: 0.2 AnnotationsDB:connect(db_version: 1)
DEBUG: 0.2 AnnotationsAction:init_prefs(Updating prefs to 1.15.2)
DEBUG: 0.2 AnnotationsAction:load_dynamic_reader_classes()
DEBUG: 0.2 loading built-in class 'GoodReader'
DEBUG: 0.3 loading built-in class 'Kindle'
DEBUG: 0.3 loading built-in class 'KoboTouch'
DEBUG: 0.3 loading built-in class 'ParseKindleMyClippingsTxt'
DEBUG: 0.3 loading built-in class 'ParseTolinoNotesTxt'
DEBUG: 0.3 loading built-in class 'PocketBook'
DEBUG: 0.3 loading built-in class 'Sony'
DEBUG: 0.3 loading built-in class 'Tolino'
DEBUG: 0.3 AnnotationsAction:inflate_dialog_resources()
[1.63] main UI initialized...
[1.63] Hiding splash screen
Starting QuickView
Traceback (most recent call last):
File "calibre/gui2/ui.py", line 134, in __init__
File "calibre/gui2/ui.py", line 152, in init_iaction
File "calibre/customize/__init__.py", line 626, in load_actual_plugin
File "importlib/__init__.py", line 127, in import_module
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "calibre/customize/zipplugin.py", line 192, in exec_module
File "calibre_plugins.prst1_notes.ui", line 12, in <module>
from calibre_plugins.prst1_notes.main import PRST1NotesDialog
File "calibre/customize/zipplugin.py", line 192, in exec_module
File "calibre_plugins.prst1_notes.main", line 12, in <module>
from PyQt4.Qt import QDialog, QVBoxLayout, QPushButton, QMessageBox, QLabel, QTableWidget, QButtonGroup, QHBoxLayout
ModuleNotFoundError: No module named 'PyQt4'
calibre 5.23 embedded-python: True is64bit: True
macOS-10.16-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '20.5.0', 'Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64')
Python 3.8.5
OSX: ('10.16', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: Annotations (1, 15, 2) && Sony PRS-T1 notes plugin (1, 1, 0)
Traceback (most recent call last):
File "calibre_plugins.annotations.action", line 364, in fetch_usb_connected_device_annotations
self.fetch_usb_device_annotations(primary_name)
File "calibre_plugins.annotations.action", line 392, in fetch_usb_device_annotations
annotated_book_list = self.get_annotated_books_on_usb_device(reader_app)
File "calibre_plugins.annotations.action", line 611, in get_annotated_books_on_usb_device
ra.get_installed_books()
File "/var/folders/qg/270jyqsn4hzcpdpgn4n18cjr0000gn/T/calibre_annotations_plugin/Sony.py", line 219, in get_installed_books
AttributeError: 'NoneType' object has no attribute 'execute'

[9.99] splash screen hidden
[9.99] Started up in 9.99 seconds with 13 books

{'bsd_drives': {'main': '/dev/disk2'},
'drives': {'main': '/Volumes/READER'},
'mount_map': {'/dev/disk1s1s1': '/',
'/dev/disk1s2': '/System/Volumes/Preboot',
'/dev/disk1s4': '/System/Volumes/VM',
'/dev/disk1s5': '/System/Volumes/Data',
'/dev/disk1s6': '/System/Volumes/Update',
'/dev/disk2': '/Volumes/READER',
'/dev/disk3': '/Volumes/SETTING',
'devfs': '/dev',
'map auto_home': '/System/Volumes/Data/home'}}
DEBUG: 14.9 AnnotationsActionn_device_connection_changed(SON Y Device Interface)
Shortcut for 'Interface Action: Annotations (Annotations) - Find annotations' already registered by Find annotations
Job: 0 Get device information started
DeviceJob: 0 Get device information done, calling callback
DeviceJob: 0 Get device information callback returned
Job: 1 Set library information started
DeviceJob: 1 Set library information done, calling callback
DeviceJob: 1 Set library information callback returned
Job: 2 Get list of books on device started
DEBUG: 15.0 PRS505: starting fetching books for card None
DEBUG: 15.0 USBMS: Fetching list of books from device. Device= PRS505 oncard= None
DEBUG: 15.0 USBMS: dirs are: /Volumes/READER/ database/media/books
DEBUG: 15.1 USBMS: scan from root True /Volumes/READER/
DEBUG: 15.1 USBMS: count found in cache: 20, count of files in metadata: 20, need_sync: False
DEBUG: 15.1 USBMS: Finished fetching list of books from device. oncard= None
DEBUG: 15.1 Building XMLCache... {0: '/Volumes/READER/database/cache/media.xml'}
DEBUG: 15.2 Done building XMLCache...
DEBUG: 15.2 Updating JSON cache: 0
DEBUG: 15.2 Start build_id_playlist_map
DEBUG: 15.2 after cleaning playlists
DEBUG: 15.2 Finish build_id_playlist_map. Found 11
DEBUG: 15.2 Finished updating JSON cache: 0
DEBUG: 15.2 PRS505: finished fetching books for card None
DEBUG: 15.2 PRS505: starting fetching books for card carda
DEBUG: 15.2 USBMS: Fetching list of books from device. Device= PRS505 oncard= carda
DEBUG: 15.2 Building XMLCache... {0: '/Volumes/READER/database/cache/media.xml'}
DEBUG: 15.2 Done building XMLCache...
DEBUG: 15.2 PRS505: finished fetching books for card carda
DEBUG: 15.2 PRS505: starting fetching books for card cardb
DEBUG: 15.2 USBMS: Fetching list of books from device. Device= PRS505 oncard= cardb
DEBUG: 15.2 Building XMLCache... {0: '/Volumes/READER/database/cache/media.xml'}
DEBUG: 15.2 Done building XMLCache...
DEBUG: 15.2 PRS505: finished fetching books for card cardb
DeviceJob: 2 Get list of books on device done, calling callback
DeviceJob: metadata_downloaded: Starting set_books_in_library
DeviceJob: set_books_in_library: books to process= 20
DeviceJob: set_books_in_library finished: time= 0.02074909210205078
DeviceJob: metadata_downloaded: updating views
DeviceJob: metadata_downloaded: syncing
DeviceJob: metadata_downloaded: refreshing ondevice
DeviceJob: metadata_downloaded: sending metadata_available signal
DeviceJob: 2 Get list of books on device callback returned
Job: 0 Get device information finished
No details available.
Job: 1 Set library information finished
No details available.
Job: 2 Get list of books on device finished
No details available.
Worker Launch took: 0.01 seconds
DEBUG: 19.2 AnnotationsAction:launch_library_scanner(updating library index)
Shortcut for 'Interface Action: Annotations (Annotations) - Find annotations' already registered by Find annotations
DEBUG: 19.4 AnnotationsAction:library_index_complete()
DEBUG: 25.0 AnnotationsAction:launch_library_scanner(library index current)
Shortcut for 'Interface Action: Annotations (Annotations) - Find annotations' already registered by Find annotations
DEBUG: 26.7 AnnotationsAction:fetch_usb_connected_device_annot ations(Start)
DEBUG: 26.7 AnnotationsAction:fetch_usb_connected_device_annot ations(Have device)
DEBUG: 26.7 AnnotationsAction:launch_library_scanner(library index current)
DEBUG: 26.8 AnnotationsAction:get_annotated_books_on_usb_devic e()
Job: 2 Get list of books on device finished
No details available.
DEBUG: 36.9 AnnotationsAction:shutting_down()
***

Last edited by theducks; 07-18-2021 at 08:52 PM. Reason: spoilered
prs350 is offline   Reply With Quote
Old 07-18-2021, 02:38 PM   #962
prs350
Junior Member
prs350 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2021
Device: Sony PRS-350
Thanks for the quick reply! Glad I could throw ye olde issue into the mix with the ancient Sony. In rapid succession and hope it helps!

And can report for @DNSB that the beta version didn't solve the issue.
prs350 is offline   Reply With Quote
Old 07-18-2021, 02:39 PM   #963
prs350
Junior Member
prs350 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2021
Device: Sony PRS-350
@davidfor - image below is the full directory structure for the PRS-350 (with hidden files turned on as well). Nothing .db-like, only an .annot file buried in Digital Editions>Annotations>database>media>books>some_boo k>some_book.annot

prs350 is offline   Reply With Quote
Old 07-18-2021, 02:41 PM   #964
prs350
Junior Member
prs350 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2021
Device: Sony PRS-350
@davidfor - and many thanks for the assist with the version! Full debug is below. I was trying to post an image of the directory structure for the PRS-350 but am getting a blank comment when I do. Will type out in the next reply. Meantime...
Spoiler:

***
calibre Debug log
calibre 5.23 embedded-python: True is64bit: True
macOS-10.16-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '20.5.0', 'Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64')
Python 3.8.5
OSX: ('10.16', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: Annotations (1, 15, 2) && Sony PRS-T1 notes plugin (1, 1, 0)
calibre 5.23 embedded-python: True is64bit: True
macOS-10.16-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '20.5.0', 'Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64')
Python 3.8.5
OSX: ('10.16', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: Annotations (1, 15, 2) && Sony PRS-T1 notes plugin (1, 1, 0)
devicePixelRatio: 2.0
logicalDpi: 72.0 x 72.0
physicalDpi: 128.00000192236715 x 127.50000191485789
Using calibre Qt style: True
[0.00] Starting up...
[0.03] Showing splash screen...
[0.39] splash screen shown
[0.39] Initializing db...
[0.40] db initialized
[0.40] Constructing main UI...
DEBUG: 0.0 Annotations plugin: Error loading libiMobileDevice. This hasn't worked for a while, and is blacklisted in calibre v3.
DEBUG: 0.0 Annotations plugin: Error is: No module named 'calibre.devices.idevice'
DEBUG: 0.0 Annotations::reader_app_support.py - loading translations
DEBUG: 0.0 Annotations::common_utils.py - loading translations
DEBUG: 0.0 Annotations::appearance.py - loading translations
DEBUG: 0.0 Annotations::config.py - loading translations
DEBUG: 0.0 Annotations::annotated_books.py - loading translations
DEBUG: 0.1 Annotations::action.py - loading translations
DEBUG: 0.2 ~~~~~~~~~~~~~~~~~~~~~~~ Annotations plugin 1.15.2 (OS X) ~~~~~~~~~~~~~~~~~~~~~~~
DEBUG: 0.2 AnnotationsAction:genesis(ERROR) Error loading library libiMobileDevice: name 'libiMobileDevice' is not defined
DEBUG: 0.2 AnnotationsAction:init_options(disable_caching: False)
DEBUG: 0.2 AnnotationsDB:connect(db_version: 1)
DEBUG: 0.2 AnnotationsAction:init_prefs(Updating prefs to 1.15.2)
DEBUG: 0.2 AnnotationsAction:load_dynamic_reader_classes()
DEBUG: 0.2 loading built-in class 'GoodReader'
DEBUG: 0.3 loading built-in class 'Kindle'
DEBUG: 0.3 loading built-in class 'KoboTouch'
DEBUG: 0.3 loading built-in class 'ParseKindleMyClippingsTxt'
DEBUG: 0.3 loading built-in class 'ParseTolinoNotesTxt'
DEBUG: 0.3 loading built-in class 'PocketBook'
DEBUG: 0.3 loading built-in class 'Sony'
DEBUG: 0.3 loading built-in class 'Tolino'
DEBUG: 0.3 AnnotationsAction:inflate_dialog_resources()
[1.63] main UI initialized...
[1.63] Hiding splash screen
Starting QuickView
Traceback (most recent call last):
File "calibre/gui2/ui.py", line 134, in __init__
File "calibre/gui2/ui.py", line 152, in init_iaction
File "calibre/customize/__init__.py", line 626, in load_actual_plugin
File "importlib/__init__.py", line 127, in import_module
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "calibre/customize/zipplugin.py", line 192, in exec_module
File "calibre_plugins.prst1_notes.ui", line 12, in <module>
from calibre_plugins.prst1_notes.main import PRST1NotesDialog
File "calibre/customize/zipplugin.py", line 192, in exec_module
File "calibre_plugins.prst1_notes.main", line 12, in <module>
from PyQt4.Qt import QDialog, QVBoxLayout, QPushButton, QMessageBox, QLabel, QTableWidget, QButtonGroup, QHBoxLayout
ModuleNotFoundError: No module named 'PyQt4'
calibre 5.23 embedded-python: True is64bit: True
macOS-10.16-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '20.5.0', 'Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64')
Python 3.8.5
OSX: ('10.16', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: Annotations (1, 15, 2) && Sony PRS-T1 notes plugin (1, 1, 0)
Traceback (most recent call last):
File "calibre_plugins.annotations.action", line 364, in fetch_usb_connected_device_annotations
self.fetch_usb_device_annotations(primary_name)
File "calibre_plugins.annotations.action", line 392, in fetch_usb_device_annotations
annotated_book_list = self.get_annotated_books_on_usb_device(reader_app)
File "calibre_plugins.annotations.action", line 611, in get_annotated_books_on_usb_device
ra.get_installed_books()
File "/var/folders/qg/270jyqsn4hzcpdpgn4n18cjr0000gn/T/calibre_annotations_plugin/Sony.py", line 219, in get_installed_books
AttributeError: 'NoneType' object has no attribute 'execute'

[9.99] splash screen hidden
[9.99] Started up in 9.99 seconds with 13 books

{'bsd_drives': {'main': '/dev/disk2'},
'drives': {'main': '/Volumes/READER'},
'mount_map': {'/dev/disk1s1s1': '/',
'/dev/disk1s2': '/System/Volumes/Preboot',
'/dev/disk1s4': '/System/Volumes/VM',
'/dev/disk1s5': '/System/Volumes/Data',
'/dev/disk1s6': '/System/Volumes/Update',
'/dev/disk2': '/Volumes/READER',
'/dev/disk3': '/Volumes/SETTING',
'devfs': '/dev',
'map auto_home': '/System/Volumes/Data/home'}}
DEBUG: 14.9 AnnotationsActionn_device_connection_changed(SON Y Device Interface)
Shortcut for 'Interface Action: Annotations (Annotations) - Find annotations' already registered by Find annotations
Job: 0 Get device information started
DeviceJob: 0 Get device information done, calling callback
DeviceJob: 0 Get device information callback returned
Job: 1 Set library information started
DeviceJob: 1 Set library information done, calling callback
DeviceJob: 1 Set library information callback returned
Job: 2 Get list of books on device started
DEBUG: 15.0 PRS505: starting fetching books for card None
DEBUG: 15.0 USBMS: Fetching list of books from device. Device= PRS505 oncard= None
DEBUG: 15.0 USBMS: dirs are: /Volumes/READER/ database/media/books
DEBUG: 15.1 USBMS: scan from root True /Volumes/READER/
DEBUG: 15.1 USBMS: count found in cache: 20, count of files in metadata: 20, need_sync: False
DEBUG: 15.1 USBMS: Finished fetching list of books from device. oncard= None
DEBUG: 15.1 Building XMLCache... {0: '/Volumes/READER/database/cache/media.xml'}
DEBUG: 15.2 Done building XMLCache...
DEBUG: 15.2 Updating JSON cache: 0
DEBUG: 15.2 Start build_id_playlist_map
DEBUG: 15.2 after cleaning playlists
DEBUG: 15.2 Finish build_id_playlist_map. Found 11
DEBUG: 15.2 Finished updating JSON cache: 0
DEBUG: 15.2 PRS505: finished fetching books for card None
DEBUG: 15.2 PRS505: starting fetching books for card carda
DEBUG: 15.2 USBMS: Fetching list of books from device. Device= PRS505 oncard= carda
DEBUG: 15.2 Building XMLCache... {0: '/Volumes/READER/database/cache/media.xml'}
DEBUG: 15.2 Done building XMLCache...
DEBUG: 15.2 PRS505: finished fetching books for card carda
DEBUG: 15.2 PRS505: starting fetching books for card cardb
DEBUG: 15.2 USBMS: Fetching list of books from device. Device= PRS505 oncard= cardb
DEBUG: 15.2 Building XMLCache... {0: '/Volumes/READER/database/cache/media.xml'}
DEBUG: 15.2 Done building XMLCache...
DEBUG: 15.2 PRS505: finished fetching books for card cardb
DeviceJob: 2 Get list of books on device done, calling callback
DeviceJob: metadata_downloaded: Starting set_books_in_library
DeviceJob: set_books_in_library: books to process= 20
DeviceJob: set_books_in_library finished: time= 0.02074909210205078
DeviceJob: metadata_downloaded: updating views
DeviceJob: metadata_downloaded: syncing
DeviceJob: metadata_downloaded: refreshing ondevice
DeviceJob: metadata_downloaded: sending metadata_available signal
DeviceJob: 2 Get list of books on device callback returned
Job: 0 Get device information finished
No details available.
Job: 1 Set library information finished
No details available.
Job: 2 Get list of books on device finished
No details available.
Worker Launch took: 0.01 seconds
DEBUG: 19.2 AnnotationsAction:launch_library_scanner(updating library index)
Shortcut for 'Interface Action: Annotations (Annotations) - Find annotations' already registered by Find annotations
DEBUG: 19.4 AnnotationsAction:library_index_complete()
DEBUG: 25.0 AnnotationsAction:launch_library_scanner(library index current)
Shortcut for 'Interface Action: Annotations (Annotations) - Find annotations' already registered by Find annotations
DEBUG: 26.7 AnnotationsAction:fetch_usb_connected_device_annot ations(Start)
DEBUG: 26.7 AnnotationsAction:fetch_usb_connected_device_annot ations(Have device)
DEBUG: 26.7 AnnotationsAction:launch_library_scanner(library index current)
DEBUG: 26.8 AnnotationsAction:get_annotated_books_on_usb_devic e()
Job: 2 Get list of books on device finished
No details available.
DEBUG: 36.9 AnnotationsAction:shutting_down()
***

Last edited by theducks; 07-18-2021 at 08:53 PM. Reason: please use SPOILER tags for logs
prs350 is offline   Reply With Quote
Old 07-18-2021, 02:42 PM   #965
prs350
Junior Member
prs350 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2021
Device: Sony PRS-350
@davidfor - and the directories:

prs350 is offline   Reply With Quote
Old 07-19-2021, 12:31 AM   #966
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
@prs350: It looks like the way the annotation is done is different on the PRS-350. Looking at the different drivers for the Sony devices, it looks like the annotation reading is only coded for the PRS-Tn devices. The code is looking for a database, and that does not appear to be there for the earlier Sony devices. Those devices appear to be using an XML file with the details of the books in them.

I don't know how the annotations are stored in these devices. It might be in the XML files, or it might be separate in the ANNOT files. I would need to look at the XML files to have an idea of how practical it is to add support for these devices.
davidfor is offline   Reply With Quote
Old 07-19-2021, 03:21 AM   #967
squizzie
Junior Member
squizzie began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Apr 2021
Device: Kindle Gen1 (want to move to Android and iPad non-kindle alternative)
Quote:
Originally Posted by davidfor View Post
@squizzie: That looks like a calibre version compatibility issue. I will have a look and see if I can solve this. But, it would be better if you upgrade calibre. If you are stuck on the 3.x versions of calibre, then I recommend installing 3.48. That is the last 3.x version and should be the best version to use. It is also the version I will do my compatibility testing with.
Quote:
Originally Posted by DNSB View Post
The 3.48 version is used for testing compatibility not development. Version 4.23 would also be a version that would be used for compatibility testing. Most of the testing efforts are likely to be on the current calibre version.
Quote:
Originally Posted by JSWolf View Post
You cannot go back to 3.48. Calibre 5.x updated the database format and 3.48 is not compatible. The oldest version that is compatible is 4.23.

With these in mind it seems like the v5.17 update I followed through on should have worked, but I've tried again to see what happens if I do a fresh (and updated version) install on a new machine and am still returning a similar error message:

calibre, version 5.23.0
Error fetching annotations: <p>Unable to fetch annotations from Amazon Kindle.</p>

Traceback (most recent call last):
File "calibre_plugins.annotations.action", line 324, in fetch_device_annotations
File "calibre_plugins.annotations.action", line 1080, in process_selected_books
File "calibre_plugins.annotations.action", line 503, in generate_confidence
TypeError: unhashable type: 'SortableTableWidgetItem'


At this point I'm beginning to wonder if there's something about my device and/or my library that's causing the issue?
squizzie is offline   Reply With Quote
Old 07-19-2021, 07:33 AM   #968
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Update to version 1.16.0

I have just release version 1.16.0 of the plugin. The main change is to support PocketBook devices. This is thanks to @wold.

The full release notes are:
  • New: Add PocketBooks support - Thanks to @wold.
  • Fix: Error "TypeError: unhashable type: 'SortableTableWidgetItem'" when importing from Kindle.
  • Fix: Error rendering annotations as HTML.
  • Fix: Change some handling of confidence generation as some devices have already matched the books.

This release is the same as the last beta released. I should have done this some time ago.

As usual, calibre will announce in the next hour or so. And if there are any issues, please report them here.
davidfor is offline   Reply With Quote
Old 07-19-2021, 07:34 AM   #969
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by squizzie View Post
With these in mind it seems like the v5.17 update I followed through on should have worked, but I've tried again to see what happens if I do a fresh (and updated version) install on a new machine and am still returning a similar error message:

calibre, version 5.23.0
Error fetching annotations: <p>Unable to fetch annotations from Amazon Kindle.</p>

Traceback (most recent call last):
File "calibre_plugins.annotations.action", line 324, in fetch_device_annotations
File "calibre_plugins.annotations.action", line 1080, in process_selected_books
File "calibre_plugins.annotations.action", line 503, in generate_confidence
TypeError: unhashable type: 'SortableTableWidgetItem'


At this point I'm beginning to wonder if there's something about my device and/or my library that's causing the issue?
You needed to use the beta version referred to above. But, I have released it the updated version now, so it should be offered soon. That should solve it.
davidfor is offline   Reply With Quote
Old 07-19-2021, 08:46 PM   #970
squizzie
Junior Member
squizzie began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Apr 2021
Device: Kindle Gen1 (want to move to Android and iPad non-kindle alternative)
Quote:
Originally Posted by davidfor View Post
You needed to use the beta version referred to above. But, I have released it the updated version now, so it should be offered soon. That should solve it.
ok thanks; I'd misread that as being more for other devices, so will keep checking for an update then download and try again, accordingly.
squizzie is offline   Reply With Quote
Old 07-19-2021, 10:34 PM   #971
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by squizzie View Post
ok thanks; I'd misread that as being more for other devices, so will keep checking for an update then download and try again, accordingly.
The primary reason for that beta was to test support for the Pocketbook devices. But, it included other fixes which were detailed in the release notes for the beta.

Calibre should have announced the update by now. There can be a lag of up to an hour, but, it should happen the first time you open calibre after the plugin gets updated.
davidfor is offline   Reply With Quote
Old 07-20-2021, 05:28 AM   #972
squizzie
Junior Member
squizzie began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Apr 2021
Device: Kindle Gen1 (want to move to Android and iPad non-kindle alternative)
Smile

Quote:
Originally Posted by davidfor View Post
The primary reason for that beta was to test support for the Pocketbook devices. But, it included other fixes which were detailed in the release notes for the beta.

Calibre should have announced the update by now. There can be a lag of up to an hour, but, it should happen the first time you open calibre after the plugin gets updated.
I'm very happy to report that this update did the trick; all annotations have been transferred. Many thanks - I can look at replacing my reader entirely now that I have these to hand

Many thanks again, both for making the plugin available to start with and for your clear dedication and hard work in maintaining it - I really appreciate it.
squizzie is offline   Reply With Quote
Old 07-23-2021, 12:13 AM   #973
Iroman
Junior Member
Iroman began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2021
Device: Kindle
Is there any way to read the book with the highlights imported by the annotation plugin?
Calibre now supports highlights so maybe there is workaround to achieve this?
Iroman is offline   Reply With Quote
Old 07-23-2021, 03:08 AM   #974
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Iroman View Post
Is there any way to read the book with the highlights imported by the annotation plugin?
Calibre now supports highlights so maybe there is workaround to achieve this?
No. The way the annotations plugin imports them is not compatible with the way calibre does annotations. I intend to change this, but, haven't gotten to it yet. And, it will depend on the device. I'm not sure I can do it for the Kindle devices as the location information the plugin sees is not enough to match to the actual location in the book.
davidfor is offline   Reply With Quote
Old 07-23-2021, 03:13 AM   #975
squizzie
Junior Member
squizzie began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Apr 2021
Device: Kindle Gen1 (want to move to Android and iPad non-kindle alternative)
import source

Since the Kindle reader on iPad and Android now sync annotations and highlights with each other and with Kindle devices I just wanted to check whether those made on another device and synced across to the connected Kindle device will also import into Calibre, or will it only work for annotations/highlights made on the device USB connected Kindle itself?
squizzie is offline   Reply With Quote
Reply

Tags
sampleexportingapp


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Open With kiwidude Plugins 403 04-01-2024 08:39 AM
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 492 10-25-2022 08:13 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


All times are GMT -4. The time now is 01:10 PM.


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