Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progress functions fails. #8

Open
rigogsilva opened this issue May 13, 2020 · 0 comments
Open

Progress functions fails. #8

rigogsilva opened this issue May 13, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@rigogsilva
Copy link

Hi, trying to use your library. Getting this error when running progress. I am definitely interested in that ExtraData blob. I would be willing to get some work on that if I can get this one working.

Thoughts?

(base) XXX:kobuddy-master rigo$ ./kobuddy --db KoboReader.sqlite progress 
2020-05-13 16:01:39 - kobuddy - INFO - Using KoboReader.sqlite for highlights
2020-05-13 16:01:39 - kobuddy - INFO - processing KoboReader.sqlite
Traceback (most recent call last):
  File "XXX:/opt/anaconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "XXX:/opt/anaconda3/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "XXX:/Documents/Projects/kobuddy-master/src/kobuddy/__main__.py", line 56, in <module>
    main()
  File "XXX:/Documents/Projects/kobuddy-master/src/kobuddy/__main__.py", line 46, in main
    print_progress(errors=args.errors)
  File "XXX:/Documents/Projects/kobuddy-master/src/kobuddy/__init__.py", line 968, in print_progress
    for bevents in get_books_with_events(**kwargs):
  File "XXX:/Documents/Projects/kobuddy-master/src/kobuddy/__init__.py", line 960, in get_books_with_events
    vit = sorted(vit, key=lambda be: be.last)
  File "XXX:/Documents/Projects/kobuddy-master/src/kobuddy/common.py", line 62, in it_val
    for r in vit:
  File "XXX:/Documents/Projects/kobuddy-master/src/kobuddy/__init__.py", line 951, in iter_books_with_events
    for book, events in group_by_key(vit, key=lambda e: e.book).items():
  File "XXX:/Documents/Projects/kobuddy-master/src/kobuddy/common.py", line 37, in group_by_key
    for i in l:
  File "XXX:/Documents/Projects/kobuddy-master/src/kobuddy/common.py", line 62, in it_val
    for r in vit:
  File "XXX:/Documents/Projects/kobuddy-master/src/kobuddy/__init__.py", line 864, in iter_events
    for x in _iter_events_aux(**kwargs):
  File "XXX:/Documents/Projects/kobuddy-master/src/kobuddy/__init__.py", line 530, in _iter_events_aux
    raise e
  File "XXX:/Documents/Projects/kobuddy-master/src/kobuddy/__init__.py", line 527, in _iter_events_aux
    yield from _iter_events_aux_Event(row=row, books=books, idx=i)
  File "XXX:/Documents/Projects/kobuddy-master/src/kobuddy/__init__.py", line 657, in _iter_events_aux_Event
    raise RuntimeError(f'Unexpected event kind: {name}\n' + context())
RuntimeError: Unexpected event kind: b'Orientation'
@karlicoss karlicoss added the bug Something isn't working label Jul 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants