Python error

Guenter Milde milde at users.sf.net
Sat Mar 14 12:29:43 UTC 2020


On 2020-03-13, Jürgen Spitzmüller wrote:

> I get the following python traceback in master:

> Traceback (most recent call last):
>   File "/home/juergen/lyx/lyx-devel/lib/scripts/lyxpreview2bitmap.py",
> line 594, in <module>
>     sys.exit(main(sys.argv)[0])
>   File "/home/juergen/lyx/lyx-devel/lib/scripts/lyxpreview2bitmap.py",
> line 472, in main
>     latex_status, latex_stdout = run_latex(latex, latex_file, bibtex)
>   File "/home/juergen/lyx/lyx-devel/lib/scripts/lyxpreview_tools.py",
> line 297, in run_latex
>     if string_in_file("Warning: Citation", log_file):
>   File "/home/juergen/lyx/lyx-devel/lib/scripts/lyxpreview_tools.py",
> line 317, in string_in_file
>     for line in f.readlines():
>   File "/usr/lib64/python3.8/codecs.py", line 322, in decode
>     (result, consumed) = self._buffer_decode(data, self.errors, final)
> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbb in position
> 4180: invalid start byte

I'll have a look if you tell me how to reproduce...

Günter



More information about the lyx-devel mailing list