View Single Post
Old 01-22-2022, 06:33 AM   #109
georgemk
Addict
georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.
 
Posts: 243
Karma: 291844
Join Date: Oct 2019
Device: Kobo Nia
When the Device is attached (Nook Glowlight), clicking on the Title column header in Device view causes this crash and afterwards you cannot change Library view (all options greyed out in that menu).
You can still eject the device but that also gives the same exception type on the same line in config_base.py. Afterwards the only action possible is to close Calibre via the Windows X close box. Again it issues the same exception.

Click Title to sort :
Code:
calibre, version 5.99.3
ERROR: Unhandled exception: <b>TypeError</b>:&lt;SortOrder.DescendingOrder: 1&gt; is not JSON serializable

calibre 5.99.3  embedded-python: True
Windows-10-10.0.19043 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19043')
Python 3.10.1
Windows: ('10', '10.0.19043', '', 'Multiprocessor Free')
Interface language: en_GB
Successfully initialized third party plugins: DeDRM (10, 0, 2) && Find Duplicates (1, 9, 2) && Kobo Books (1, 8, 3) && Obok DeDRM (10, 0, 0) && Quality Check (1, 12, 0) && Quick Preferences (1, 5, 0)
Traceback (most recent call last):
  File "calibre\gui2\library\views.py", line 557, in user_sort_requested
  File "calibre\gui2\library\views.py", line 574, in intelligent_sort
  File "calibre\utils\config.py", line 438, in __setitem__
  File "calibre\utils\config.py", line 401, in commit
  File "calibre\utils\config.py", line 422, in to_raw
  File "calibre\utils\config_base.py", line 100, 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 405, in _iterencode_dict
  File "json\encoder.py", line 438, in _iterencode
  File "calibre\utils\config_base.py", line 53, in to_json
TypeError: <SortOrder.DescendingOrder: 1> is not JSON serializable
Click Eject Device
Code:
calibre, version 5.99.3
ERROR: Unhandled exception: <b>TypeError</b>:&lt;SortOrder.DescendingOrder: 1&gt; is not JSON serializable

calibre 5.99.3  embedded-python: True
Windows-10-10.0.19043 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19043')
Python 3.10.1
Windows: ('10', '10.0.19043', '', 'Multiprocessor Free')
Interface language: en_GB
Successfully initialized third party plugins: DeDRM (10, 0, 2) && Find Duplicates (1, 9, 2) && Kobo Books (1, 8, 3) && Obok DeDRM (10, 0, 0) && Quality Check (1, 12, 0) && Quick Preferences (1, 5, 0)
Traceback (most recent call last):
  File "calibre\gui2\device.py", line 352, in umount_device
  File "calibre\gui2\__init__.py", line 677, in __call__
  File "calibre\gui2\device.py", line 1098, in device_detected
  File "calibre\gui2\library\views.py", line 684, in save_state
  File "calibre\gui2\library\views.py", line 1441, in write_state
  File "calibre\utils\config.py", line 383, in set
  File "calibre\utils\config.py", line 438, in __setitem__
  File "calibre\utils\config.py", line 401, in commit
  File "calibre\utils\config.py", line 422, in to_raw
  File "calibre\utils\config_base.py", line 100, 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 405, in _iterencode_dict
  File "json\encoder.py", line 438, in _iterencode
  File "calibre\utils\config_base.py", line 53, in to_json
TypeError: <SortOrder.DescendingOrder: 1> is not JSON serializable
Click X to close
Code:
calibre, version 5.99.3
ERROR: Unhandled exception: <b>TypeError</b>:&lt;SortOrder.DescendingOrder: 1&gt; is not JSON serializable

calibre 5.99.3  embedded-python: True
Windows-10-10.0.19043 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19043')
Python 3.10.1
Windows: ('10', '10.0.19043', '', 'Multiprocessor Free')
Interface language: en_GB
Successfully initialized third party plugins: DeDRM (10, 0, 2) && Find Duplicates (1, 9, 2) && Kobo Books (1, 8, 3) && Obok DeDRM (10, 0, 0) && Quality Check (1, 12, 0) && Quick Preferences (1, 5, 0)
Traceback (most recent call last):
  File "calibre\gui2\ui.py", line 1205, in closeEvent
  File "calibre\gui2\ui.py", line 1055, in write_settings
  File "calibre\utils\config.py", line 411, in __exit__
  File "calibre\utils\config.py", line 401, in commit
  File "calibre\utils\config.py", line 422, in to_raw
  File "calibre\utils\config_base.py", line 100, 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 405, in _iterencode_dict
  File "json\encoder.py", line 438, in _iterencode
  File "calibre\utils\config_base.py", line 53, in to_json
TypeError: <SortOrder.DescendingOrder: 1> is not JSON serializable
georgemk is offline   Reply With Quote