Encountered the following bug (windows 10, python 3.12) - preview of math fails:
graphics\PreviewLoader.cpp (2ef): PreviewLoader::finishedInProgress(1): processing failed for py -3 -tt $$s/scripts/lyxpreview2bitmap.py --png "C:/Users/idank/AppData/Local/Temp/lyx_tmpdir.mzhGYGTpQcAc/lyx_tmpbuf0/lyxpreviewuaCFJC.tex" --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
0001-Fix-returned-value-of-win32file.ReadFile.patch
Description: Binary data
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel