Thank you Knute and David! I have downloaded and installed MiKTeX and
rerun my batch file (without the .py added to lilypond-book).
It appears to have called lilypond-book successfully and also pdflatex.
However, it still reports an error in lilypond-book.ly which is
preventing compilation.
Here is the output:
C:\P3L\lpbk>ALMdurasnumber.bat
C:\P3L\lpbk>lilypond-book --output=out --pdf ALMdurasnumber.lytex
File "C:\Lilypond2221\usr\bin\lilypond-book.py", line 376
except subprocess.CalledProcessError as e:
^
SyntaxError: invalid syntax
C:\P3L\lpbk>cd out
C:\P3L\lpbk\out>pdflatex ALMdurasnumber.tex
This is pdfTeX, Version 3.141592653-2.6-1.40.22 (MiKTeX 21.6)
entering extended mode
! I can't find file `ALMdurasnumber.tex'.
<*> ALMdurasnumber.tex
Please type another input file name:
So it all seems to be working except for the reported error.
Regarding paths, I had renamed my lilypond directory with a version
number, and updated my Windows path accordingly, Lilypond itself has
been running fine, so, as far as I can tell, the paths are OK (and it
was happy without the .py extension in the batch file).
Perhaps someone could check out line 376 for me. Thanks again.
Archer