> > btw, it compiles with no error with > > pdflatex --shell-escape sample.tex > > but not with > > lualatex --shell-escape sample.tex > It seems to be known issue, see https://tex.stackexchange.com/a/365784/2891 Best regards, Michal