View Single Post
Old 05-20-2022, 02:19 AM   #1
asm0dey
Junior Member
asm0dey began at the beginning.
 
asm0dey's Avatar
 
Posts: 8
Karma: 10
Join Date: May 2022
Device: Pocketbook 302
calibredb add failes

When I run command
Code:
calibredb add -r ../Books/native/ --with-library .
I get an error
Ian Fleming
Code:
Traceback (most recent call last):
  File "/usr/bin/calibredb", line 21, in <module>
    sys.exit(main())
  File "/usr/lib/calibre/calibre/db/cli/main.py", line 250, in main
    return run_cmd(cmd, opts, args[1:], DBCtx(opts))
  File "/usr/lib/calibre/calibre/db/cli/main.py", line 40, in run_cmd
    ret = m.main(opts, args, dbctx)
  File "/usr/lib/calibre/calibre/db/cli/cmd_add.py", line 474, in main
    do_add(
  File "/usr/lib/calibre/calibre/db/cli/cmd_add.py", line 268, in do_add
    book_title, ids, mids, dups = dbctx.run(
  File "/usr/lib/calibre/calibre/db/cli/main.py", line 183, in run
    return m.implementation(self.db.new_api, None, *args)
  File "/usr/lib/calibre/calibre/db/cli/cmd_add.py", line 180, in implementation
    return func(db, notify_changes, is_remote, args)
  File "/usr/lib/calibre/calibre/db/cli/cmd_add.py", line 172, in format_group
    added_ids, updated_ids, duplicates = do_adding(
  File "/usr/lib/calibre/calibre/db/cli/cmd_add.py", line 63, in do_adding
    identical_book_list = find_identical_books(mi, identical_books_data)
  File "/usr/lib/calibre/calibre/db/utils.py", line 68, in find_identical_books
    author_ids = author_map.get(icu_lower(a))
  File "/usr/lib/calibre/calibre/utils/icu.py", line 191, in change_case
    return _icu.change_case(x, which, _locale)
TypeError: Not a unicode string
First of all, "Ian Flemming" looks very unicode-y to me. Second of all, I would like to have information about particular file which causes an error. Third of all, I would like to solve this issue

If there is a way to turn on some debug/verbose logging for calibredb add —*that would be cool.

I do this all on my server, so I can't use desktop calibreversion. That's why I'm trying to setup calibre-web + calibredb

Any ideas how can I fix it?
asm0dey is offline   Reply With Quote