paopre / Spontini

A text-combined-with-graphic music editor for creating professional scores with LilyPond
GNU General Public License v3.0
77 stars 7 forks source link

Look for LilyPond in /Applications/LilyPond.app/Contents/Resources/bin on macOS #7

Closed jeandeaual closed 3 years ago

jeandeaual commented 3 years ago

Following up on this Reddit thread.

Here is the resulting log:

2021-01-26 08:28:00 [I] Checking default Lilypond installation in sys path
2021-01-26 08:28:00 [I] Checking if "lilypond" is a valid Lilypond executable
2021-01-26 08:28:00 [I] Traceback (most recent call last):
  File "/Users/alexis/src/Spontini/lib/python/spontini_server_core.py", line 175, in checkLilyExecutable
    p = subprocess.run([execCmd, "--version"], encoding='utf-8')
  File "/usr/local/Cellar/python@3.9/3.9.1_6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 501, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/local/Cellar/python@3.9/3.9.1_6/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 "/usr/local/Cellar/python@3.9/3.9.1_6/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'

2021-01-26 08:28:00 [I] "lilypond" is not a valid Lilypond executable
2021-01-26 08:28:00 [S] Found default valid Lilypond installation
2021-01-26 08:28:00 [I] 
2021-01-26 08:28:00 [I] ***********************************
2021-01-26 08:28:00 [I] ***********************************
2021-01-26 08:28:00 [I] 
2021-01-26 08:28:00 [I] -- Version: 0.7
2021-01-26 08:28:00 [I] -- Workspace: /Users/alexis/src/Spontini/examples
2021-01-26 08:28:00 [I] -- Lilypond executable: /Applications/LilyPond.app/Contents/Resources/bin/lilypond
2021-01-26 08:28:00 [I] -- Pip3 found
2021-01-26 08:28:00 [I] -- Python virtual env found/set
2021-01-26 08:28:00 [I] -- cairosvg disabled
2021-01-26 08:28:00 [I] -- Running in virtual env: spontinivenv
2021-01-26 08:28:00 [I] 
2021-01-26 08:28:00 [I] Spontini Server initialized
paopre commented 3 years ago

Thanks!