View Single Post
Old 10-10-2022, 11:08 AM   #1
netfortius
Junior Member
netfortius began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2022
Device: kindle paperwhite
Errors when trying to add online dictionary (lookup source) in e-book viewer

No matter which online dictionary I try to add, which accepts the format:

https://..../{word}

I am getting the error below:

calibre, version 6.6.1
ERROR: Unhandled exception: <b>TypeError</b>:&lt;function google_dictionary at 0x10fb544c0&gt; is not JSON serializable

calibre 6.6.1 embedded-python: True
macOS-12.6-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '21.6.0', 'Darwin Kernel Version 21.6.0: Mon Aug 22 20:17:10 PDT 2022; root:xnu-8020.140.49~2/RELEASE_X86_64')
Python 3.10.1
OSX: ('12.6', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 49, 0) && DeDRM (7, 1, 0) && Package KFX (from KFX Input) (1, 49, 0) && KFX metadata reader (from KFX Input) (1, 49, 0) && KFX Input (1, 49, 0) && Kindle Collections (1, 7, 29) && KindleUnpack - The Plugin (0, 83, 1)
Traceback (most recent call last):
File "calibre/gui2/viewer/lookup.py", line 205, in accept
File "calibre/utils/config.py", line 429, in __setitem__
File "calibre/utils/config.py", line 395, in commit
File "calibre/utils/config.py", line 413, in to_raw
File "calibre/utils/config_base.py", line 109, in json_dumps
File "json/__init__.py", line 238, in dumps
File "json/encoder.py", line 201, in encode
File "json/encoder.py", line 431, in _iterencode
File "json/encoder.py", line 405, in _iterencode_dict
File "json/encoder.py", line 325, in _iterencode_list
File "json/encoder.py", line 405, in _iterencode_dict
File "json/encoder.py", line 438, in _iterencode
File "calibre/utils/config_base.py", line 62, in to_json
TypeError: <function google_dictionary at 0x10fb544c0> is not JSON serializable

Last edited by netfortius; 10-10-2022 at 11:11 AM.
netfortius is offline   Reply With Quote