View Single Post
Old 07-18-2021, 12:20 AM   #960
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,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by prs350 View Post
Greetings all - an issue with the plugin when trying to export annotations from an epub on a Sony PRS-350 (I didn't see in the previous 64 pages and apologize if I missed). And can confirm that it also occurs under Linux (can provide the error for as well). I realize it's an old reader, but if it can be made to export, it'd save me from buying another:

calibre, version 5.23.0
ERROR: Unhandled exception: <b>AttributeError</b>:'NoneType' object has no attribute 'execute'

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, 0) && 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 606, 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'
Firstly, this is the first time someone has actually reported using the plugin with a Sony device. The support was taken from someone elses code with a few changes. I don't have a Sony device and couldn't test it properly. It was done in response to a request, but, there was no feedback.

That looks like the plugin could not find the database on the device. Could you post the full path to the database on the device? It looks like it should be "database/books.db". And if you could run calibre in debug mode and post the log, that would help me validate what the plugin is seeing. There is also a debug option in the plugins configuration. Please turn that on to show exactly what the plugin is seeing.

Also, could you install the beta that @DNSB pointd to. There should not be any differences that affect this, but, there are enough changes in the other code that this should help track what is happening.
davidfor is offline   Reply With Quote