lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: run error Lilypond-book on Windows 10


From: David Wright
Subject: Re: run error Lilypond-book on Windows 10
Date: Fri, 6 Aug 2021 10:13:59 -0500
User-agent: Mutt/1.10.1 (2018-07-13)

On Fri 06 Aug 2021 at 12:31:06 (+0100), Archer Endrich wrote:
> 
> I have been using Lilypond for a long time and am in awe of those who
> have created Lilypond and who maintain it.  It is the most wonderful
> and flexible package, with super high-quality results. I have not
> written to the Users Group before, but will have certain specialised
> notation queries in the future.
> 
> One of the key parts of Lilypond for me is Lilypond Book, and I am
> working on a major project with it.  I have used it extensively with
> Lilypond 2.18.2.
> 
> Since moving to Windows 10, I have not been able to get it to run,
> although David Wright's message to the User Group about adding the .py
> extension when invoking it got me further than I was at first. 

I saw my name. I'm not sure whether my comment would be a help or
a hindrance. I don't know how the windows versions are invoked,
but only that windows sometimes needs help with deciding which
interpreter to run when handed a script with a shebang at the top.

> I have
> Lilypond 2.22.1 installed.  My batch file is:
> 
> lilypond-book.py --output=out --pdf ALMdurasnumber.lytex
> cd out
> pdflatex ALMdurasnumber.tex
> cd ..\
> 
> which is what has always worked for me in the past.
> 
> 
> The error message I get is as follows:
> 
> C:\P3L\lpbk>ALMdurasnumber.bat
> 
> C:\P3L\lpbk>lilypond-book.py --output=out --pdf ALMdurasnumber.lytex
>   File "C:\Lilypond2221\usr\bin\lilypond-book.py", line 376
>     except subprocess.CalledProcessError as e:
>                                           ^
> SyntaxError: invalid syntax

Again, non-windows user disclaimer.

Something looks odd about C:\Lilypond2221\usr\bin\lilypond-book.py
in that I would expect either C:\Lilypond2221\bin\lilypond-book
or C:\Lilypond2221\LILYPOND\usr\bin\lilypond-book where LILYPOND
is either lowercase or camelcase (I have seen both). (I'm leaving
aside any consideration of a .py suffix.)

On linux, the former is a (shell) script that sets up the correct
environment for the latter (python script) to execute in. A versioned
directory, like Lilypond2221/, would normally contain just bin/
and lilypond/. The scripts in Lilypond2221/bin/ run the programs and
scripts in Lilypond2221/lilypond/usr/bin/.

> C:\P3L\lpbk>cd out
> 
> C:\P3L\lpbk\out>pdflatex ALMdurasnumber.tex
> 'pdflatex' is not recognized as an internal or external command,
> operable program or batch file.
> 
> C:\P3L\lpbk\out>cd ..\
> 
> C:\P3L\lpbk>
> 
> The message about pdflatex is a conundrum.  It has always worked
> before, but I cannot find a 'pdflatex' file in the \user\bin of
> version 2.18.2 or 2.22.1.  It does not appear to be complaining about
> anything in my lytex file -- which I had previously compiled
> successfully with 2.18.2.

That suggests a messed-up PATH, as presumably you haven't removed
pdflatex from your system. It could be related to the first problem.

Again, non-windows user disclaimer. You probably need a windows
user to help go over your 2.22.1 installation. Do you still have
2.18.2 installed? AFAICT the two versions are installed in exactly
the same manner, if both have been downloaded from the LP website.
(Obviously not for those on linux who might be comparing LP website
versions with a distribution's own version.)

Cheers,
David.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]