LyX and LilyPond

Koji Yokota yokota6 at gmail.com
Mon Aug 3 08:33:23 UTC 2026


Hi Matt,

> To get the error to stop on opening the sample I added a converter for lilypond-book(latex)->Latex(plain) and giving it a path like this:
> $${python}  C:\path\lilypond-2.26.0\bin\lilypond-book.py  $$i
> or
> C:\pathtopython\python.exe  C:\path\lilypond-2.26.0\bin\lilypond-book.py  $$i

This looks like a symptom that LyX could not find lilypond. If LyX’s configuration works via Tool->Reconfigure, this need not be set manually.

> Once I found 2.20.0-1 on the Lilypond site and installed, put in the path, reconfig I did not have any errors going into the sample LilyPond guide, but still had errors on rendering.

I’m not sure if this helps, but there seem cases that conversion to get pdf from lilypond via dvipdf or its variants fails. Using other paths, e.g. pdflatex or lualatex, may solve the problem.

To use LuaTeX, check Document -> Settings -> Font -> Use non-TeX fonts and choose Document -> View PDF (LuaTeX) when output PDF.

Looking into errors more precisely, running Japanese example file LilyPond_Book.lyx via dvipdf gets the following error raised by dvipdf:

> >(Image:./5e/lily-71e9560f-1.eps[PS]Error: /invalidfileaccess in --file—
> Last OS error: Permission denied
> Current file position is 409
> GPL Ghostscript 10.07.1: Unrecoverable error, exit code 1

Ghostscript complains because the following command fails because the file name is single quoted.

> rungs -v -dSAFER -dNOPAUSE -dBATCH -dEPSCrop -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.7 -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dAutoRotatePages=/None -sOutputFile='/var/folders/68/mx20w3b146vgt6yfjqlh5gxm0000gn/T/dvipdfm-x.f14af449408d798d54229786a68c3552' -- './5e/lily-71e9560f-1.eps’

I cannot confirm this phenomenon with the English example file, so it may be related to the use of UTF chars.

Koji



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20260803/7515722a/attachment.htm>


More information about the lyx-users mailing list