Hi,

 I found the reason: In my installation the ~/bin folder was symlinked
to the bin folder of the lilypond installation and that threw it
off. The following change to the second line of the convert-ly and
lilypond-invoke-editor scripts fixes it to facilitate symlinks:

change

root="$(dirname $0)"

to

root="$(dirname "$(readlink -f "$0")")/.."

That should be backwards compatible and work in any circumstance.

--
Orm

Am Mittwoch, den 17. August 2022 um 13:13:44 Uhr (+0200) schrieb Orm Finnendahl:
> Hi,
> 
>  after upgrading from lilpond 2.19 to 2.23, lilypond-invoke-editor and
> convert-ly stopped working.
> 
> In both cases I get
> 
> Traceback (most recent call last):
>   File "~/bin/../libexec/convert-ly", line 24, in <module>
>     import gettext
> ModuleNotFoundError: No module named 'gettext'
> 
> I installed python-gettext on my systemwide python installation but it
> seems lilypond gets shipped with its own python3.10 binary and invokes
> that.
> 
> Does anybody know how to make it working?
> 
> --
> Orm
> 

Reply via email to