LyXExport to LyX archive fails

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
krjackson
Posts: 2
Joined: Wed Jan 15, 2014 12:07 am

Export to LyX archive fails

Post by krjackson »

I'm trying to export my project to a Lyx archive, but it fails with an error. The terminal shows:

Code: Select all

Running: python2 -tt "/usr/share/lyx/scripts/lyxpak.py" "/home/krjackson/Documents/"/"XRQuick.lyx"
Traceback (most recent call last):
  File "/usr/share/lyx/lyx2lyx/lyx2lyx", line 24, in <module>
    import LyX
  File "/usr/share/lyx/lyx2lyx/LyX.py", line 23, in <module>
    from parser_tools import get_value, check_token, find_token, \
  File "/usr/share/lyx/lyx2lyx/parser_tools.py", line 143
    '''
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 1485-1486: truncated \uXXXX escape
/usr/share/lyx/lyx2lyx/lyx2lyx failed to convert "/home/krjackson/Documents//XRQuick.lyx"
Systemcall.cpp (273): Systemcall: 'python2 -tt "/usr/share/lyx/scripts/lyxpak.py" "/home/krjackson/Documents/"/"XRQuick.lyx"' finished with exit code 1
Error: Cannot convert file
Has anyone encountered this before? I'm by no means a LyX power user, so perhaps I've done something unexpected in the text. Google didn't return anything useful to me, and a quick search here didn't find anything. Any input or advice would be welcome.

Edit: I should also note that LyX is as close as I get to actual LaTeX. My LyX Version is 2.0.6, running on an Arch box. I'm using TeX Live from tug.org, not Arch's distro packages. Don't know that any of that is relevant, but there it is.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

krjackson
Posts: 2
Joined: Wed Jan 15, 2014 12:07 am

Export to LyX archive fails

Post by krjackson »

I have made a little headway, maybe. A friend of mine worked some magic with emacs and determined that position 1485-1486 mentioned in the error output is in the LyX header at the beginning of this line:

Code: Select all

\paragraph_separation skip
I don't know why that looks like a "truncated /uXXXX escape", but I don't know what a truncated escape looks like anyway.

Anyone have any ideas on where to go from here?
Post Reply