View Single Post
Old 02-01-2022, 02:29 PM   #135
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
In the Editor I tried to use Compare > Options > Beautify files before compare and got this error message:
Code:
calibre, version 5.99.4
ERROR: Unhandled exception: <b>TypeError</b>:QTextDocument.setPlainText(): argument 1 has unexpected type 'bytes'

calibre 5.99.4 Portable embedded-python: True
Windows-10-10.0.19042 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19042')
Python 3.10.1
Windows: ('10', '10.0.19042', '', 'Multiprocessor Free')
Interface language: en_GB
Successfully initialized third party plugins: Device Old Books (0, 6, 0) && Epub2Kepub (0, 1, 0) && EpubCheck (0, 2, 4) && EpubMetadata (0, 1, 0) && EpubModBuild (0, 1, 0) && EpubXCustomMetadata (0, 1, 0) && JS_Editor_Tools (0, 6, 0) && JS_Editor_Utils (0, 1, 0) && JS_Modify_Epub (0, 1, 0) && KePub Input (3, 4, 3) && KePub Metadata Reader (3, 4, 3) && KePub Metadata Writer (3, 4, 3) && KindleUnpack - The Plugin (0, 83, 1) && Kobo Utilities (2, 15, 1) && KoboEject (0, 0, 3) && KoboTouchExtended (3, 5, 4) && Obok DeDRM (7, 2, 99) && ScrambleEbook (0, 5, 3) && Smart_Device_App_CSSAdd (0, 0, 12) && TTS to MP3 (0, 6, 0)
Traceback (most recent call last):
  File "calibre\gui2\tweak_book\diff\main.py", line 350, in toggle_beautify
  File "calibre\gui2\tweak_book\diff\main.py", line 344, in refresh
  File "calibre\gui2\tweak_book\diff\view.py", line 554, in add_diff
  File "calibre\gui2\tweak_book\diff\view.py", line 691, in add_text_diff
  File "calibre\gui2\tweak_book\diff\highlight.py", line 117, in get_highlighter
  File "calibre\gui2\tweak_book\diff\highlight.py", line 27, in __init__
TypeError: QTextDocument.setPlainText(): argument 1 has unexpected type 'bytes'
ETA: It looks like the same error also exists in v5.35.

Last edited by jackie_w; 02-01-2022 at 02:42 PM. Reason: ETA
jackie_w is offline   Reply With Quote