I ran into this error with lilypond not being to work with any script with SCAMP (Or I guess for specifically abjad), however it works with the application frescobaldi. The music playing works perfectly, but it never seems to be able to generate a PDF after playing. The error is as below:
FileNotFoundError: [Errno 2] No such file or directory: ‘lilypond’
from scamp import test_run
test_run.play(show_lilypond=True)