kobuddy icon indicating copy to clipboard operation
kobuddy copied to clipboard

AssertionError: assert book is not None

Open curiositry opened this issue 2 years ago • 0 comments

Hello @karlicoss !

When I run kobuddy, I get:

Using /tmp/tmphnubcetl for highlights
Traceback (most recent call last):
  File "/home/username/.local/bin/kobuddy", line 8, in <module>
    sys.exit(main())
  File "/home/username/.local/lib/python3.8/site-packages/kobuddy/__main__.py", line 66, in main
    print_annotations()
  File "/home/username/.local/lib/python3.8/site-packages/kobuddy/__init__.py", line 989, in print_annotations
    for i in get_highlights():
  File "/home/username/.local/lib/python3.8/site-packages/kobuddy/__init__.py", line 854, in get_highlights
    return list(sorted(_iter_highlights(**kwargs), key=lambda h: h.created))
  File "/home/username/.local/lib/python3.8/site-packages/kobuddy/__init__.py", line 835, in _iter_highlights
    for h in _load_highlights(bfile, books=books):
  File "/home/username/.local/lib/python3.8/site-packages/kobuddy/__init__.py", line 848, in _load_highlights
    assert book is not None
AssertionError

I have tried it with the --db flag pointing to a backup of my KoboReader.sqlite, as well as letting it find my connected reader. I have tried it withr with progress and annotations with the same results.

I am using pip3 install of kobuddy (fresh install today) on Ubuntu, trying to export annotations from a Kobo Aura One with the latest firmware.

What am I doing wrong?

Thanks!

curiositry avatar Aug 30 '22 23:08 curiositry