Ideas?


-------- Forwarded Message --------
Subject:        Re: Can't open 2.4.0-beta5 doc in 2.4.0-beta3
Date:   Tue, 5 Sep 2023 20:03:16 -0500
From:   Christopher Menzel <chris.men...@gmail.com>
To:     Richard Kimberly Heck <rikih...@gmail.com>
CC:     LyX Users <lyx-us...@lists.lyx.org>



On 5 Sep 2023, at 5:01 PM, Richard Kimberly Heck <rikih...@gmail.com> wrote:
On 9/5/23 16:45, Christopher Menzel wrote:
LyX folk,

I recently compiled Lyx 2.4.0-beta5 under Linux and find that I am unable to open the file in Lyx 2.4.0-beta3 under MacOS and the conversion script is failing to export to 2.3.x. By changing "\lyxformat 618” to "\lyxformat 616” I was able to load the document in 2.4.0-beta3 although I got two "Document header” errors: "Unknown token: \use_formatted_ref \use_formatted_ref” and "Unknown token: 0 0”. After saving the file, it opened without any errors in beta3 and the contents appear to be OK. But I’d prefer a more elegant solution if one exists.

You can run the lyx2lyx script manually, with option: -t 616, to export to that format.

Hm, I'm getting a "format not supported" with that option.

What error are you getting from the 2.3.x export? That's a serious bug.

Error message below, generated inside the terminal when I started lyx from the command line and tried to export my longish (614k) document to 2.3.x.

-chris

*****
lyx2lyx warning: An error occurred in 604, <function revert_vcolumns2 at 0x7fe2423d7600>
Traceback (most recent call last):
 File "/usr/local/share/lyx/lyx2lyx/lyx2lyx", line 97, in <module>
   main()
 File "/usr/local/share/lyx/lyx2lyx/lyx2lyx", line 91, in main
   doc.convert()
 File "/usr/local/share/lyx/lyx2lyx/LyX.py", line 702, in convert
   conv(self)
 File "/usr/local/share/lyx/lyx2lyx/lyx_2_4.py", line 4154, in revert_vcolumns2
   elif count_pars_in_inset(document.body, begcell + 2) > 1:
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/local/share/lyx/lyx2lyx/parser_tools.py", line 692, in count_pars_in_inset
   if m and get_containing_inset(lines, j)[1] == ins[1]:
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
TypeError: 'bool' object is not subscriptable
Systemcall.cpp (306): Systemcall: 'python3 -tt "/usr/local/share/lyx/lyx2lyx/lyx2lyx" -V 2.3 -o "Logic,_Modality,_and_Singular_Existenc e.23.lyx" "Logic,_Modality,_and_Singular_Existence.lyx"' finished with exit code 1
Error: Cannot convert file
----------------------------------------
An error occurred while running:
python3 -tt $$s/lyx2lyx/lyx2lyx -V 2.3 -o
"Logic,_Modality,_and_Singular_Existence.23.lyx"
"Logic,_Modality,_and_Singular_Existence.lyx"

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to