Command line export on PC problem

"Gatzke, Edward" <[email protected]>
Newsgroups gmane.editors.lyx.general
Message-ID <BYAPR19MB28393C67D26005ADFEB08BCCB611A@BYAPR19MB2839.namprd19.prod.outlook.com>
The following opens the file fine.   From the GUI interface I can export a ps file without a problem.
C:\cygwin64\tmp>"c:\Users\gatzke\AppData\Local\Programs\LyX 2.4\bin\LyX.exe"   test.lyx

However, trying to use the command line export it fails, see below.

I have tried running from cygwin shell and cmd and both fail.

I have tried different temp directories  (/tmp, c:\Temp   and c:/Users/gatzke/temp)

Any ideas how I have failed to configure this or what may be happening?

Thanks!

BTW, recently found some of my 1997 LyX files from version 0.10, thanks devs!   :-)




"c:\Users\gatzke\AppData\Local\Programs\LyX 2.4\bin\LyX.exe"   test.lyx --export ps

C:\cygwin64\tmp>This is pdfTeX, Version 3.141592653-2.6-1.40.27 (MiKTeX 25.4) (preloaded format=latex.fmt)
 restricted \write18 enabled.
entering extended mode
(test.tex
LaTeX2e <2025-06-01> patch level 1
L3 programming layer <2025-07-20>

support\FileName.cpp (264): Could not rename file C:/Users/gatzke/temp/lyx_tmpdir.uUKcPeuBRfqn/lyx_tmpbuf0/tmpfile.out to C:/Users/gatzke/temp/lyx_tmpdir.uUKcPeuBRfqn/lyx_tmpbuf0/test.dvi
support\FileName.cpp (292): Could not move file C:/Users/gatzke/temp/lyx_tmpdir.uUKcPeuBRfqn/lyx_tmpbuf0/tmpfile.out to C:/Users/gatzke/temp/lyx_tmpdir.uUKcPeuBRfqn/lyx_tmpbuf0/test.dvi
Error: Cannot convert file
----------------------------------------
An error occurred while running:
python -tt $$s/scripts/clean_dvi.py "test.dvi" "tmpfile.out"
support\FileName.cpp (681): Could not delete C:/Users/gatzke/temp/lyx_tmpdir.uUKcPeuBRfqn/lyx_tmpbuf0
Buffer.cpp (601): Could not remove the temporary directory C:/Users/gatzke/temp/lyx_tmpdir.uUKcPeuBRfqn/lyx_tmpbuf0
support\FileName.cpp (668): Could not delete C:/Users/gatzke/temp/lyx_tmpdir.uUKcPeuBRfqn/lyx_tmpbuf0
support\FileName.cpp (681): Could not delete C:/Users/gatzke/temp/lyx_tmpdir.uUKcPeuBRfqn
LyX.cpp (425): Unable to remove the temporary directory C:/Users/gatzke/temp/lyx_tmpdir.uUKcPeuBRfqn




Version info:

Version 2.4.4
(Thursday, June 5, 2025)

Qt Version (run-time): 6.9.1 on platform windows
Qt Version (compile-time): 6.9.1
OS Version (run-time): Windows 11 Version 24H2
Python detected: 3.12.3 (C:\Users\gatzke\AppData\Local\Programs\LyX 2.4\Python\python.exe)

-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.