Shell-escape enabled but not working

Paul A. Rubin parubin73 at gmail.com
Thu Feb 23 17:24:21 UTC 2023



On 2/23/23 12:15, Mario D wrote:
> A few months ago I posted about this problem: sadly I got no reply. :(
>
> Even more sadly, I have not been to solve the issue!
>
> So I am still forced to export my lyx file to a tex file and compile 
> it running "pdflatex -shell-escape" to update pictures, before being 
> able to go on with my work in Lyx.
>
> I really don't understand why Lyx doesn't behave like it is intended, 
> since I ticked the right option and this is driving me crazy!
>
> Any help is appreciated.
>
> Thanks
>
> M
>
> PS: if needed I can provide a MWE (but I don't know how to provide it: 
> can I attach a file?)
>
> Il giorno mer 5 ott 2022 alle ore 20:39 Mario D <egalua at gmail.com> ha 
> scritto:
>
>     Hi,
>     I have a document which uses the external library of tikz, so I
>     need shell escape.
>
>     I have lyx 2.3.6 so I enabled shell escape via
>
>     Document->Settings->Formats and check "Allow running of external
>     programs."
>
>     Nevertheless, when I run pdflatex, I get this error:
>
>     -----------------------------------------------------------------
>
>     ! I can't write on file `myfile_figure0.md5'.
>
>     <to be read again>
>
>     \relax
>
>     l.320 \end{tikzpicture}
>
>     (Press Enter to retry, or Control-D to exit; default file
>     extension is `.tex')
>
>     Please type another output file name
>
>     ! Emergency stop.
>
>     <to be read again>
>
>     \relax
>
>     l.320 \end{tikzpicture}
>
>     *** (job aborted, file error in nonstop mode)
>
>     -------------------------------------------------------------------
>
>     Am I missing something?
>
>     BTW, if I export my lyx file to a latex file and I compile it
>     (with pdflatex --shell-escape), it compiles smoothly.
>
>     Thank you
>
>
The error message is very strange. File extension MD5 usually means a 
checksum file, used to verify the legitimacy of a download, so I can't 
imagine why LyX or pdflatex would be trying to write it.

As for an MWE, yes, you can attach a file to an email to the list. It 
would help to sort things out.

Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20230223/4f922d39/attachment-0001.html>


More information about the lyx-users mailing list