![]() |
#1 |
Member
![]() Posts: 10
Karma: 10
Join Date: Jul 2021
Location: Romania
Device: none
|
KeyError: 'user_categories' - please help
Getting this error - any ideas please....
calibre, version 5.22.1 ERROR: Unhandled exception: <b>KeyError</b>:'user_categories' calibre 5.22.1 embedded-python: True is64bit: False Windows-10-10.0.19041 Windows ('32bit', 'WindowsPE') 32bit process running on 64bit windows ('Windows', '10', '10.0.19041') Python 3.8.5 Windows: ('10', '10.0.19041', '', 'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: EpubMerge (2, 11, 0) && EpubSplit (3, 0, 0) && Fantastic Fiction (1, 4, 0) && Find Duplicates (1, 6, 3) && Goodreads (1, 5, 1) Traceback (most recent call last): File "calibre\gui2\add.py", line 516, in process_duplicate StopIteration During handling of the above exception, another exception occurred: Traceback (most recent call last): File "calibre\db\backend.py", line 112, in __getitem__ KeyError: 'user_categories' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "calibre\gui2\library\models.py", line 583, in current_changed File "calibre\gui2\library\models.py", line 566, in get_book_display_info File "calibre\db\legacy.py", line 696, in get_metadata File "calibre\db\cache.py", line 687, in get_metadata File "calibre\db\cache.py", line 372, in _get_metadata File "calibre\db\backend.py", line 114, in __getitem__ KeyError: 'user_categories' |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,343
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That looks like something has deleted the user_categories preference from the calibre database. Running the following will fix it:
Code:
calibre-debug -c "from calibre.library import db; db = db().new_api; db.set_pref('user_categories', {})" |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 10
Karma: 10
Join Date: Jul 2021
Location: Romania
Device: none
|
how do I run it?
Sorry, how do I run it?
|
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,343
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
open the command prompt application and copy paste the command and press enter.
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
KeyError: u'format_group' | sws | Server | 4 | 06-10-2020 03:57 AM |
KeyError: u'MimeType' | Geremia | Calibre | 3 | 02-03-2017 09:39 AM |
KeyError: u'kind' | senhal | Calibre | 2 | 06-19-2016 03:37 PM |
KeyError:u'set_to_default' | phossler | Editor | 8 | 11-28-2014 09:43 PM |
KeyError when changing libraries | macnab69 | Library Management | 5 | 06-29-2013 11:18 AM |