Gabriel Ellsworth <[email protected]> writes:

>> File
>> "/home/knute/lilypond/lilypond-2.27.3/share/lilypond/2.27.3/python/convertrules.py",
>> line 5702, in conv
>>
>> s = re.sub(r'ly:book\?',r'ly:book-or-bookpart?')
>>
>> TypeError: sub() missing 1 required positional argument: 'string'
>
> I am getting the same error message when I try to run convert-ly from
> 2.27.1 to 2.27.3.
>
> On Thu, 10 Sept 2026, David Kastrup wrote:
>
>> I just merged a fix, but the public will likely not get to see it before
>> 2.27.4.  This should never have happened.  Sorry.
>>
>
> Thank you, David, for submitting the fix.
>
> https://gitlab.com/lilypond/lilypond/-/merge_requests/3147
>
> For now, should I just use 2.27.2 instead of 2.27.3?

Personally I would just change the line

    s = re.sub(r'ly:book\?',r'ly:book-or-bookpart?')

to

    s = re.sub(r'ly:book\?',r'ly:book-or-bookpart?', s)

manually in python/convertrules.py at line 5702.  Be sure to retain the
original indentation; Python is particular about that.

2.27.3 has per-book variables which are pretty nice for organizing your
scores.

-- 
David Kastrup

Reply via email to