--
You received this message because you are subscribed to the Google Groups "abjad-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to abjad-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/abjad-user/CA%2BZFxkFkRNBcSUZNidLb7FxUHgj3w-CFJtsu_05S-gxiHhXbmQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/abjad-user/CACTvJ4WUsQ0oSp1u%3D4ZgQ4vv0%3DzyMLo8iQm29qAh6bPyvnOuxg%40mail.gmail.com.
Hi,
What do …
~$ lilypond --version
GNU LilyPond 2.21.82
Copyright (c) 1996--2020 by
Han-Wen Nienhuys <han...@xs4all.nl>
Jan Nieuwenhuizen <jan...@gnu.org>
and others.
This program is free software. It is covered by the GNU General Public
License and you are welcome to change it and/or distribute copies of it
under certain conditions. Invoke as `lilypond --warranty' for more
information.
… and …
~$ which lilypond
/Applications/LilyPond.app/Contents/Resources/bin/lilypond
… give you at the terminal?
If the shell doesn’t find LilyPond, then add LilyPond to your path.
If the shell finds a stray file called lilypond (that, for example, you have created and put somewhere that your shell finds), then move this file so that your shell finds the legit LilyPond executable somewhere similar to what I’ve pasted in above.
If the shell does find a valid LilyPond executable, what does …
~$ python
Python 3.9.0 (v3.9.0:9cf6752276, Oct 5 2020, 11:29:23)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import subprocess
>>> command = ["lilypond", "--version"]
>>> proc = subprocess.run(command, stdout=subprocess.PIPE)
>>> proc.stdout.decode().split()[2]
'2.21.82'
… give you?
When I hide LilyPond from my shell to reproduce your problem, I get …
~$ python
Python 3.9.0 (v3.9.0:9cf6752276, Oct 5 2020, 11:29:23)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import subprocess
>>> command = ["lilypond", "--version"]
>>> proc = subprocess.run(command, stdout=subprocess.PIPE)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 947, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1819, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'lilypond'
… which is different to what you’re seeing.
The error at the bottom of your stacktrace …
OSError: [Errno 8] Exec format error: 'lilypond'
… is new to me. But Googling makes me think three things:
lilypond; butI’m just guessing, though, based on:
https://stackoverflow.com/questions/27606653/oserror-errno-8-exec-format-error
When you find the solution, please reply back to this thread to archive a solution for later users.
To view this discussion on the web visit https://groups.google.com/d/msgid/abjad-user/CA%2BZFxkF1v5beiBkyoBGYT0yz1yk%3DgU%3Diwt8e5_xy8fJG16Bd3w%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/abjad-user/CACTvJ4XGqh8-BHtyyv4-Y2P1ZJ3ObHUhKCsyWnxLxmPdi5HCrw%40mail.gmail.com.