On Mon, Jun 10, 2024 at 10:30:07AM +0000, José Matos wrote: > commit 04ecabef6005640450cb20e813eeb2bb284b9487 > Author: José Matos <jama...@lyx.org> > Date: Mon Jun 10 11:29:56 2024 +0100 > > Update Python scripts to Python 3+ > > Remove support for Python 2 > > Use formatted strings where appropriated > ---
A git bisect led me here. I now get the following when doing export to LyX pack: $ lyx -e lyxgz lib/examples/Welcome.lyx Traceback (most recent call last): File "/home/scott/lyxbuilds/master-master/repo/lib/scripts/lyxpak.py", line 404, in <module> main(sys.argv) File "/home/scott/lyxbuilds/master-master/repo/lib/scripts/lyxpak.py", line 305, in main input = gzopen(lyxfile) ^^^^^^^^^^^^^^^ File "/home/scott/lyxbuilds/master-master/repo/lib/scripts/lyxpak.py", line 71, in gzopen input = open(file.decode('utf-8'), 'rb') ^^^^^^^^^^^ AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'? support/Systemcall.cpp (306): Systemcall: 'python3 "/home/scott/lyxbuilds/master-master/repo/lib/scripts/lyxpak.py" "/home/scott/lyxbuilds/master-master/repo/lib/examples/"/"Welcome.lyx"' finished with exit code 1 Error: Cannot convert file ---------------------------------------- An error occurred while running: python3 $$s/scripts/lyxpak.py "/home/scott/lyxbuilds/master-master/repo/lib/examples/"/"Welcome.lyx" Is the problem that the object should not be a string? $ python3 --version Python 3.12.3 Scott
signature.asc
Description: PGP signature
-- lyx-devel mailing list lyx-devel@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-devel