Encountered the following bug (windows 10, python 3.12) - preview of math

 graphics\PreviewLoader.cpp (2ef): PreviewLoader::finishedInProgress(1):
processing failed for py -3 -tt $$s/scripts/lyxpreview2bitmap.py --png
--dpi 137 --fg 000000 --bg ffffff --bibtex="bibtex"

Running the command manually gives the problem:

  File "C:\Program Files\LyX 2.4\Resources\scripts\lyxpreview_tools.py",
line 168, in run_command_win32
    data = data + buffer
TypeError: can only concatenate str (not "bytes") to str

Apparently, the returned value from win32file.ReadFile
<https://timgolden.me.uk/pywin32-docs/win32file__ReadFile_meth.html> should
be converted to a string.
Fix patch attached.
Thank you, Idan

Attachment: 0001-Fix-returned-value-of-win32file.ReadFile.patch
Description: Binary data

lyx-devel mailing list

Reply via email to