jperon / lyluatex

Alternative à lilypond-book pour lualatex
MIT License
58 stars 11 forks source link

Problem finding lilypond? #11

Closed ambs closed 8 years ago

ambs commented 8 years ago

Hi My project is failing with the following error message:

(compiling luc: /usr/local/texlive/2015/texmf-var/luatex-cache/generic/fonts/otf
/lmroman17-regular.luc)(load luc: /Users/ambs/Library/texlive/2015/texmf-var/lua
tex-cache/generic/fonts/otf/lmroman17-regular.luc)(compiling luc: /usr/local/tex
live/2015/texmf-var/luatex-cache/generic/fonts/otf/lmsans17-regular.luc)(load lu
c: /Users/ambs/Library/texlive/2015/texmf-var/luatex-cache/generic/fonts/otf/lms
ans17-regular.luc)(compiling luc: /usr/local/texlive/2015/texmf-var/luatex-cache
/generic/fonts/otf/lmroman12-bold.luc)(load luc: /Users/ambs/Library/texlive/201
5/texmf-var/luatex-cache/generic/fonts/otf/lmroman12-bold.luc)sh: lilypond: command not found

! LuaTeX error ./lyluatex.lua:137: attempt to index local 'i' (a nil value)
stack traceback:
    ./lyluatex.lua:137: in function 'retour_tex'
    ./lyluatex.lua:68: in function 'inclure_ly'
    [\directlua]:1: in main chunk.
\keycmd->includely ...{\commandkey {staffsize}} )}

This seems like lilypond is not being found in the program path. I tried to change the .lua file like this:

LILYPOND = '/Applications/LilyPond.app/Contents/Resources/bin/lilypond'

but the error persists. Ideas?

ambs commented 8 years ago

Commenting line 14 from the .sty file seems to solve the issue...

jperon commented 8 years ago

Excuse me for the silence, I couldn't access to the internet for nearly a year… Without commenting line 14, could you please try usepackage[program=/Applications/LilyPond.app/Contents/Resources/bin/lilypond]{lyluatex} ?