Re: lilypond 'not recognized'
I have it sorted out now. In multiple attempts to fix the PATH I found I had errors. Thank to those who sent suggestions. I do appreciate it. -David - Original Message - > From: "bobroff" > Cc: "Lillypond Users Mailing List" > Sent: Friday, September 29, 2023 11:18:11 AM > Subject: Re: lilypond 'not recognized' > Yes, that long command works. I should mention that it worked after moving > the > 2.24.2 installation to \Users\"me" before it worked. Running 'lilypond-book' > on it's own produces: > > > 'lilypond-book' is not recognized as an internal or external command, > operable program or batch file. > > Same goes for executing the 'lilypond' command. I've checked my PATH and it > looks right. > > > > - Original Message - >> From: "Jean Abou Samra" >> To: "bobroff" >> Cc: "Lillypond Users Mailing List" >> Sent: Friday, September 29, 2023 9:55:44 AM >> Subject: Re: lilypond 'not recognized' > >> Le vendredi 29 septembre 2023 à 09:06 +, bobr...@centrum.is a écrit : >>> Thank you Jean for pointing me to those instructions. They are very clear. >>> I >>> followed them to the letter. I used plain cmd -- even in admin mode -- and >>> edited the path to where my LilyPond 'bin' is located. I closed/re-opened >>> cmd. I even restarted the computer. I still get the same message that >>> lilypond-book is not recognized. I even tried using the long version: >>> >>> python C:\Users\me\lilypond-2.25.8\bin\lilypond-book.py myfile.ly >>> >>> ...edited for my installation, of course, and got: >>> >>> >>> 'H:python' is not recognized as an internal or external command, >>> operable program or batch file. >> >> >> >> Have you tried >> >> C:\Users\me\lilypond-2.25.8\bin\python.exe C:\Users\me\lilypond- >> 2.25.8\bin\lilypond-book.py myfile.ly >> >> ? >> >> (Obviously, "me" needs to be replaced with your user name, here and in the > > linked instructions.)
Re: lilypond 'not recognized'
Yes, that long command works. I should mention that it worked after moving the 2.24.2 installation to \Users\"me" before it worked. Running 'lilypond-book' on it's own produces: 'lilypond-book' is not recognized as an internal or external command, operable program or batch file. Same goes for executing the 'lilypond' command. I've checked my PATH and it looks right. - Original Message - > From: "Jean Abou Samra" > To: "bobroff" > Cc: "Lillypond Users Mailing List" > Sent: Friday, September 29, 2023 9:55:44 AM > Subject: Re: lilypond 'not recognized' > Le vendredi 29 septembre 2023 à 09:06 +, bobr...@centrum.is a écrit : >> Thank you Jean for pointing me to those instructions. They are very clear. >> I >> followed them to the letter. I used plain cmd -- even in admin mode -- and >> edited the path to where my LilyPond 'bin' is located. I closed/re-opened >> cmd. I even restarted the computer. I still get the same message that >> lilypond-book is not recognized. I even tried using the long version: >> >> python C:\Users\me\lilypond-2.25.8\bin\lilypond-book.py myfile.ly >> >> ...edited for my installation, of course, and got: >> >> >> 'H:python' is not recognized as an internal or external command, >> operable program or batch file. > > > > Have you tried > > C:\Users\me\lilypond-2.25.8\bin\python.exe C:\Users\me\lilypond- > 2.25.8\bin\lilypond-book.py myfile.ly > > ? > > (Obviously, "me" needs to be replaced with your user name, here and in the > linked instructions.)
Re: lilypond 'not recognized'
> Thank you Jean for pointing me to those instructions. They are very > clear. I followed them to the letter. I used plain cmd -- even in > admin mode -- and edited the path to where my LilyPond 'bin' is > located. I closed/re-opened cmd. I even restarted the computer. I > still get the same message that lilypond-book is not recognized. I > even tried using the long version: > > python C:\Users\me\lilypond-2.25.8\bin\lilypond-book.py myfile.ly > > ...edited for my installation, of course, and got: > > 'H:python' is not recognized as an internal or external command, > operable program or batch file. 'H:python'? What's that? Is it possible that you have another Python installation on your computer? Can you actually execute C:\Users\me\lilypond-2.25.8\bin\python --help successfully? Irrespective of that it might be that the instructions in https://lilypond.org/doc/v2.25/Documentation/usage/command_002dline-preliminaries.html for `convert-ly` (these instructions are essentially the same as for `lilypond-book`) are not completely accurate. While I tried to check this on a Windows computer, I'm not a real Windows user at all, and it is possible that I missed or misrepresented some details. In particular, I didn't cover the situation of two different Python installations in parallel – maybe there are conflicts. Werner
Re: lilypond 'not recognized'
Le vendredi 29 septembre 2023 à 09:06 +, bobr...@centrum.is a écrit : > Thank you Jean for pointing me to those instructions. They are very clear. I > followed them to the letter. I used plain cmd -- even in admin mode -- and > edited the path to where my LilyPond 'bin' is located. I closed/re-opened > cmd. I even restarted the computer. I still get the same message that > lilypond-book is not recognized. I even tried using the long version: > > python C:\Users\me\lilypond-2.25.8\bin\lilypond-book.py myfile.ly > > ...edited for my installation, of course, and got: > > > 'H:python' is not recognized as an internal or external command, > operable program or batch file. Have you tried C:\Users\me\lilypond-2.25.8\bin\python.exe C:\Users\me\lilypond- 2.25.8\bin\lilypond-book.py myfile.ly ? (Obviously, "me" needs to be replaced with your user name, here and in the linked instructions.) signature.asc Description: This is a digitally signed message part
Re: lilypond 'not recognized'
Thank you Jean for pointing me to those instructions. They are very clear. I followed them to the letter. I used plain cmd -- even in admin mode -- and edited the path to where my LilyPond 'bin' is located. I closed/re-opened cmd. I even restarted the computer. I still get the same message that lilypond-book is not recognized. I even tried using the long version: python C:\Users\me\lilypond-2.25.8\bin\lilypond-book.py myfile.ly ...edited for my installation, of course, and got: 'H:python' is not recognized as an internal or external command, operable program or batch file. - Original Message - > From: "Jean Abou Samra" > To: "bobroff" > Cc: "Lillypond Users Mailing List" > Sent: Thursday, September 28, 2023 10:19:40 PM > Subject: Re: lilypond 'not recognized' > Le jeudi 28 septembre 2023 à 22:12 +, bobr...@centrum.is a écrit : >> Yes! Thank you! That's half the problem solved. Now if I can get lilypond- >> book working I'll be happy for now. I still get this: >> >> > lilypond-book --pdf test.lytex >> 'lilypond-book' is not recognized as an internal or external command, >> operable program or batch file. > > You need to run it with python.exe. > See > > https://lilypond.org/doc/v2.25/Documentation/usage/command_002dline-preliminaries.html > (this applies to lilypond-book just like with convert-ly).
Re: lilypond 'not recognized'
Le jeudi 28 septembre 2023 à 22:12 +, bobr...@centrum.is a écrit : > Yes! Thank you! That's half the problem solved. Now if I can get lilypond- > book working I'll be happy for now. I still get this: > > > lilypond-book --pdf test.lytex > 'lilypond-book' is not recognized as an internal or external command, > operable program or batch file. You need to run it with python.exe. See https://lilypond.org/doc/v2.25/Documentation/usage/command_002dline-preliminaries.html (this applies to lilypond-book just like with convert-ly). signature.asc Description: This is a digitally signed message part
Re: lilypond 'not recognized'
Yes! Thank you! That's half the problem solved. Now if I can get lilypond-book working I'll be happy for now. I still get this: >lilypond-book --pdf test.lytex 'lilypond-book' is not recognized as an internal or external command, operable program or batch file. - Original Message - > From: "Phil Holmes" > To: "bobroff" > Cc: "Lillypond Users Mailing List" > Sent: Thursday, September 28, 2023 2:40:49 PM > Subject: Re: lilypond 'not recognized' > On 28/09/2023 15:36, bobr...@centrum.is wrote: >> >>> PATH >> PATH=<*snip*>C:\Program Files (x86)\LilyPond\usr\bin\lilypond.exe; >> >> C:\Users\David>lilypond -v >> 'lilypond' is not recognized as an internal or external command, >> operable program or batch file. >> > You need to get rid of the "lilypond.exe" in your PATH statement.
Re: lilypond 'not recognized'
On 28/09/2023 15:36, bobr...@centrum.is wrote: PATH PATH=<*snip*>C:\Program Files (x86)\LilyPond\usr\bin\lilypond.exe; C:\Users\David>lilypond -v 'lilypond' is not recognized as an internal or external command, operable program or batch file. You need to get rid of the "lilypond.exe" in your PATH statement.
Re: lilypond 'not recognized'
Responding to a couple of answers here. I get this with 2.22.2 which was installed via an installer. This command was in plain vanilla cmd in Windows: lilypond-book "c:/Program Files (x86)/LilyPond/usr/bin/lilypond-book" test.lytex '"c:/Program Files (x86)/LilyPond/usr/bin/lilypond-book"' is not recognized as an internal or external command, operable program or batch file. lilypond "c:/Program Files (x86)/LilyPond/usr/bin/lilypond" -v GNU LilyPond 2.22.2 Copyright (c) 1996--2021 by Han-Wen Nienhuys Jan Nieuwenhuizen and others. [etc.] This is what happens with v2.24.2 which was placed in the same directory as v2.22.2: lilypond-book "c:/Program Files (x86)/lilypond-2.24.2/bin/lilypond-book" test.lytex Usage: lilypond-book [OPTION]... FILE Process LilyPond snippets in hybrid HTML, LaTeX, texinfo or DocBook document. Examples: $ lilypond-book --filter="tr '[a-z]' '[A-Z]'" BOOK $ lilypond-book -F "convert-ly --no-version --from=2.0.0 -" BOOK $ lilypond-book --process='lilypond -I include' BOOK Options: [etc.] *** lilypond "c:/Program Files (x86)/lilypond-2.24.2/bin/lilypond" -v GNU LilyPond 2.24.2 (running Guile 2.2) Copyright (c) 1996--2023 by Han-Wen Nienhuys Jan Nieuwenhuizen and others. *** After editing my PATH: >PATH PATH=<*snip*>C:\Program Files (x86)\LilyPond\usr\bin\lilypond.exe; C:\Users\David>lilypond -v 'lilypond' is not recognized as an internal or external command, operable program or batch file. This last should be pointing to v2.22.2 which was installed with an installer. I have no clue. -David - Original Message - > From: "Jean Abou Samra" > To: "bobroff" > Cc: "Lillypond Users Mailing List" > Sent: Thursday, September 28, 2023 7:22:27 AM > Subject: Re: lilypond 'not recognized' > Le jeudi 28 septembre 2023 à 06:26 +, bobr...@centrum.is a écrit : >> Understood. As noted in my original post, I also still have v2.22.2 >> installed >> which I installed with the installer. The fact that I installed 2.22.2 with >> the installer leaves me puzzled as to why I can't invoke it without the full >> path. > > > I think you might need to call it as "lilypond.exe", not "lilypond". Or maybe > "lilypond-windows.exe". I don't really know much about Windows terminals > though. > > >> I can, indeed, use the full path -- with quotes to cope with spaces in folder >> names in Windows -- to both versions. I checked my PATH and the location of >> the LilyPond folders is in it. I have also tried specifying the complete >> paths to 'lilypond-book' for each version. For v2.22.2 I get: >> >> "c:/Program Files (x86)/LilyPond/usr/bin/lilypond-book"' is not recognized as >> an internal or external command, >> operable program or batch file. >> >> For 2.24.2 I get the 'help' file when trying it on as small test file. No >> output is produced. > > > By "help file" do you mean the usage message (same as --help)? Are you sure > you > didn't make a mistake on the command like a typo in the name of an option?
Re: lilypond 'not recognized'
On 2023-09-28 12:22 am, Jean Abou Samra wrote: Le jeudi 28 septembre 2023 à 06:26 +, bobr...@centrum.is a écrit : Understood. As noted in my original post, I also still have v2.22.2 installed which I installed with the installer. The fact that I installed 2.22.2 with the installer leaves me puzzled as to why I can't invoke it without the full path. I think you might need to call it as "lilypond.exe", not "lilypond". Or maybe "lilypond-windows.exe". I don't really know much about Windows terminals though. lilypond-windows.exe differs only in that the executable targets the GUI subsystem. The effect is that it runs without needing to spawn a visible terminal window with the process. When setting up file association for .ly files, it can be very useful. If you are already in a console environment however, then there should be no functional difference between lilypond.exe versus lilypond-windows.exe. In general, executable types (.exe, .com, .bat, .cmd...) are assumed by the classic* command prompt, so typing "lilypond" should be able to find and resolve to a "lilypond.exe" in the PATH if it exists. You can run "where lilypond" to verify not only that it is being found but also the locations of all matches if there are multiple. (* By "classic", I mean the old-school cmd.exe shell. If you are running an alternate shell such as PowerShell, then you will need to consult its documentation.) -- Aaron Hill
Re: lilypond 'not recognized'
Le jeudi 28 septembre 2023 à 06:26 +, bobr...@centrum.is a écrit : > Understood. As noted in my original post, I also still have v2.22.2 installed > which I installed with the installer. The fact that I installed 2.22.2 with > the installer leaves me puzzled as to why I can't invoke it without the full > path. I think you might need to call it as "lilypond.exe", not "lilypond". Or maybe "lilypond-windows.exe". I don't really know much about Windows terminals though. > I can, indeed, use the full path -- with quotes to cope with spaces in folder > names in Windows -- to both versions. I checked my PATH and the location of > the LilyPond folders is in it. I have also tried specifying the complete > paths to 'lilypond-book' for each version. For v2.22.2 I get: > > "c:/Program Files (x86)/LilyPond/usr/bin/lilypond-book"' is not recognized as > an internal or external command, > operable program or batch file. > > For 2.24.2 I get the 'help' file when trying it on as small test file. No > output is produced. By "help file" do you mean the usage message (same as --help)? Are you sure you didn't make a mistake on the command like a typo in the name of an option? signature.asc Description: This is a digitally signed message part
Re: lilypond 'not recognized'
Understood. As noted in my original post, I also still have v2.22.2 installed which I installed with the installer. The fact that I installed 2.22.2 with the installer leaves me puzzled as to why I can't invoke it without the full path. I can, indeed, use the full path -- with quotes to cope with spaces in folder names in Windows -- to both versions. I checked my PATH and the location of the LilyPond folders is in it. I have also tried specifying the complete paths to 'lilypond-book' for each version. For v2.22.2 I get: "c:/Program Files (x86)/LilyPond/usr/bin/lilypond-book"' is not recognized as an internal or external command, operable program or batch file. For 2.24.2 I get the 'help' file when trying it on as small test file. No output is produced. - Original Message - > From: "Jean Abou Samra" > To: "bobroff" , "Lillypond Users Mailing List" > > Sent: Wednesday, September 27, 2023 10:33:39 PM > Subject: Re: lilypond 'not recognized' > The word "install" has many different meanings. LilyPond is not "installed" > in the way you think. At least for 2.24, if you followed the procedure in > the learning manual, you have just downloaded it and put it somewhere (actual > location doesn't matter) on your computer, then pointed Frescobaldi to it. > If you want to have the program callable as "lilypond" in a terminal, you > can't put it anywhere (I mean, imagine if just downloading a program made it > the default in your terminal ... it would just be plain dangerous). You > need to put it in a directory that is on the PATH variable. However, this is > quite unnecessary since you should be able to execute it as > > C:\...\lilypond-2.24.2\bin\lilypond.exe file.ly
Re: lilypond 'not recognized'
The word "install" has many different meanings. LilyPond is not "installed" in the way you think. At least for 2.24, if you followed the procedure in the learning manual, you have just downloaded it and put it somewhere (actual location doesn't matter) on your computer, then pointed Frescobaldi to it. If you want to have the program callable as "lilypond" in a terminal, you can't put it anywhere (I mean, imagine if just downloading a program made it the default in your terminal ... it would just be plain dangerous). You need to put it in a directory that is on the PATH variable. However, this is quite unnecessary since you should be able to execute it as C:\...\lilypond-2.24.2\bin\lilypond.exe file.ly signature.asc Description: This is a digitally signed message part
Re: lilypond not recognized
bobr...@centrum.is bobr...@centrum.is wrote: After solving a mysterious hardware problem I finally got my Windows 7 box up and running again. I installed LilyPond 2.16.2-1 but it won't run from the CLI. I get: 'lilypond' is not recognized as an internal or external command, operable program or batch file. I have, in fact, edited the PATH to point to the /bin directory which contains LilyPond. How have you edited the PATH? If you've simply used a set command in a command window, that changes the PATH only for that window. To do it globally, type path in the search box in the Start menu. Select Edit environment variables for your account. Find PATH in the User variables box (or create it if it doesn't exist), and add the path to the Lilypond bin directory to it. -- Tim Slattery slatter...@bls.gov ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond not recognized
bobr...@centrum.is bobr...@centrum.is wrote: After solving a mysterious hardware problem I finally got my Windows 7 box up and running again. I installed LilyPond 2.16.2-1 but it won't run from the CLI. I get: 'lilypond' is not recognized as an internal or external command, operable program or batch file. I have, in fact, edited the PATH to point to the /bin directory which contains LilyPond. I don't ever recall having this problem before. Before I had my recent computer problem I am sure that Lily was installed and working just fine. The 'drag-n-drop' method works, but I would much rather use the CLI. Are you using Cygwin? (The fact that you wrote /bin makes me ask.) For cmd, adding C:\Program Files\lilypond\usr\bin to the path should be enough. Because I dislike polluting my PATH, I have a c:\bin in the path, then I add a file called lilypond.bat to that directory with @echo off C:\Apps\Lilypond\usr\bin\lilypond.exe %* -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond not recognized
- Original Message - From: Tim Slattery slatter...@bls.gov To: lilypond-user@gnu.org Sent: Friday, May 17, 2013 4:30:59 PM Subject: Re: lilypond not recognized bobr...@centrum.is bobr...@centrum.is wrote: After solving a mysterious hardware problem I finally got my Windows 7 box up and running again. I installed LilyPond 2.16.2-1 but it won't run from the CLI. I get: 'lilypond' is not recognized as an internal or external command, operable program or batch file. I have, in fact, edited the PATH to point to the /bin directory which contains LilyPond. How have you edited the PATH? If you've simply used a set command in a command window, that changes the PATH only for that window. To do it globally, type path in the search box in the Start menu. Select Edit environment variables for your account. Find PATH in the User variables box (or create it if it doesn't exist), and add the path to the Lilypond bin directory to it. Tim, I edited the PATH following the instructions on the Lily download page, that is, by going into the Environment variables. -David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond not recognized
- Original Message - From: Tim Roberts t...@probo.com To: lilypond-user@gnu.org Sent: Friday, May 17, 2013 5:16:06 PM Subject: Re: lilypond not recognized bobr...@centrum.is bobr...@centrum.is wrote: After solving a mysterious hardware problem I finally got my Windows 7 box up and running again. I installed LilyPond 2.16.2-1 but it won't run from the CLI. I get: 'lilypond' is not recognized as an internal or external command, operable program or batch file. I have, in fact, edited the PATH to point to the /bin directory which contains LilyPond. I don't ever recall having this problem before. Before I had my recent computer problem I am sure that Lily was installed and working just fine. The 'drag-n-drop' method works, but I would much rather use the CLI. Are you using Cygwin? (The fact that you wrote /bin makes me ask.) For cmd, adding C:\Program Files\lilypond\usr\bin to the path should be enough. Because I dislike polluting my PATH, I have a c:\bin in the path, then I add a file called lilypond.bat to that directory with @echo off C:\Apps\Lilypond\usr\bin\lilypond.exe %* I *do* have cygwin installed but Lily won't run from a cygwin bash shell *or* a Windows cmd. I just took another look at my Environment variables and thought I had found the culprit; an extra '\' in the PATH. I also noticed that it is called 'Path' rather than 'PATH'. Will that have an effect? AND; the varible in the PATH is written with '\' rather than the '/' I used above. WellI looked again and found the problem. The extra '\' I mentioned above was part of the problem. Apparently, I had a small cut/paste error leaving me with '\\' and not 'C:\'. It's fine now. Thanks Tims for your responses. It got me looking at the right spot. -David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user