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

TypeError: '<' not supported between instances of 'str' and 'int' #1

Open
michaelneuper opened this issue Apr 10, 2023 · 1 comment

Comments

@michaelneuper
Copy link

calibre, version 6.15.1
ERROR: Unhandled exception: TypeError:'<' not supported between instances of 'str' and 'int'

calibre 6.15.1 embedded-python: False
Linux-6.2.10-zen1-1-zen-x86_64-with-glibc2.37 Linux ('64bit', 'ELF')
('Linux', '6.2.10-zen1-1-zen', '#1 ZEN SMP PREEMPT_DYNAMIC Fri, 07 Apr 2023 02:10:16 +0000')
Python 3.10.10
Interface language: None
Successfully initialized third party plugins: Goodreads (1, 7, 6) && KOReader Sync (0, 4, 1) && Kindle Collections (1, 7, 29) && Kindle hi-res covers (0, 5, 0) && Kobo Books (1, 9, 2)
Traceback (most recent call last):
File "calibre_plugins.koreader.action", line 495, in sync_to_calibre
value = column'transform'
File "calibre_plugins.koreader.config", line 116, in
'transform': (lambda d: json.dumps(
File "/usr/lib/python3.10/json/init.py", line 238, in dumps
**kw).encode(obj)
File "/usr/lib/python3.10/json/encoder.py", line 201, in encode
chunks = list(chunks)
File "/usr/lib/python3.10/json/encoder.py", line 431, in _iterencode
yield from _iterencode_dict(o, _current_indent_level)
File "/usr/lib/python3.10/json/encoder.py", line 405, in _iterencode_dict
yield from chunks
File "/usr/lib/python3.10/json/encoder.py", line 353, in _iterencode_dict
items = sorted(dct.items())
TypeError: '<' not supported between instances of 'str' and 'int'

@Hyphen-ated
Copy link
Owner

It looks like you're using upstream version 0.4.1 of this plugin, rather than my fork. So you're in the wrong place. Also there have been two newer releases of upstream since 0.4.1, try updating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants