View Single Post
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