lucaschessR2
lucaschessR2 copied to clipboard
Exporting opening lines from menu item Export fails and logs bug in bug.log.
Ubuntu 24.04.3 LTS Python 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0] on linux Lucas Chess R 2.20c version R 2.20c
In opening lines, trying to export all lines to pgn (using menu at top, "Export") -- it doesn't matter whether there is just one line, or there are multiple lines, the same IndexError occurs in bug.log (below).
There is an easy workaround: exporting by right clicking on a line and selecting export in pgn format as mainline does export all the lines, and with the selected line as the main line as expected.
2025-08-29 09:13:18.373816 Traceback (most recent call last): File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/Code/Openings/WindowOpeningLine.py", line 161, in exportar File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/Code/Openings/OpeningLines.py", line 1352, in export_to_pgn File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/Code/Base/Move.py", line 315, in analisis2variantes File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/Code/Base/Move.py", line 597, in analisis2variantes File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/Code/Base/Game.py", line 453, in move IndexError: list index out of range 2025-08-29 09:16:05.999610 Traceback (most recent call last): File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/Code/Openings/WindowOpeningLine.py", line 161, in exportar File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/Code/Openings/OpeningLines.py", line 1352, in export_to_pgn File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/Code/Base/Move.py", line 315, in analisis2variantes File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/Code/Base/Move.py", line 597, in analisis2variantes File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/Code/Base/Game.py", line 453, in move IndexError: list index out of range
Fixed, to the next update. Thanks.