Calibre-Remarkable-Device-Driver-Plugin icon indicating copy to clipboard operation
Calibre-Remarkable-Device-Driver-Plugin copied to clipboard

"Error while trying to open True" on device detection

Open eythian opened this issue 3 years ago • 0 comments

When launching Calibre with the plugin installed, I get:

 calibre
Trying to connect to 10.11.99.1
PING 10.11.99.1 (10.11.99.1) 56(84) bytes of data.
64 bytes from 10.11.99.1: icmp_seq=1 ttl=64 time=0.534 ms

--- 10.11.99.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.534/0.534/0.534/0.000 ms
Devcie 10.11.99.1 Present
Opening device
Creating document root
Reading document information |#                               | 1/31Error while trying to open True (Driver: <calibre_plugins.remarkable_plugin.RemarkablePlugin object at 0x7efe98143ca0>)
Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/gui2/device.py", line 325, in detect_device
    dev.open(cd, self.current_library_uuid)
  File "calibre_plugins.remarkable_plugin.__init__", line 86, in open
    self.document_root = remarkable_fs.documents.DocumentRoot(self.conn)
  File "/home/robin/.config/calibre/plugins/Remarkable Plugin.zip/remarkable_fs/documents.py", line 250, in __init__
    self.load_node_without_linking(id)
  File "/home/robin/.config/calibre/plugins/Remarkable Plugin.zip/remarkable_fs/documents.py", line 292, in load_node_without_linking
    if not node.deleted:
  File "/home/robin/.config/calibre/plugins/Remarkable Plugin.zip/remarkable_fs/documents.py", line 87, in get
    return self.metadata[name]
KeyError: 'deleted'

this then repeats, and Calibre fails to see the tablet (Remarkable 2, v3.2.3.1595, and I'm running Ubuntu 22.04)

eythian avatar Mar 21 '23 17:03 eythian