Converting this file with convert-ly on the command line works, though, as well as the result, with \tocItem lines active. Find it attached.
JM
ControllingBookPartsPageNumbersExample_2.22.ly
Description: Binary data
> Le 17 juin 2021 à 06:42, Jacques Menu <imj-muz...@bluewin.ch> a écrit : > > Hello Ignacio, > >> Le 17 juin 2021 à 04:30, Ignacio Lois <ignaciol...@gmail.com> a écrit : >> >> Hello all, >> >> I'm putting together a set of orchestral parts of a piece where each >> \bookpart is a separate instrument. >> >> Is it possible to reset the page numbering for each bookpart? > > For what it’s worth, maybe start from the attached file, which I found on > this list (didn’t add the author’s name, though)? > > I’ve had to comment the \tocItem lines because they’re no longer accepted as > is by Lily 2.22. > > BTW, convert-ly crashes Frescobaldi on this file here, just sent them a bug > report: > > Python path configuration: > PYTHONHOME = '/Applications/Frescobaldi.app/Contents/Resources' > PYTHONPATH = '/Applications/Frescobaldi.app/Contents/Resources' > program name = '/opt/local/bin/python3.8' > isolated = 0 > environment = 1 > user site = 1 > import site = 1 > sys._base_executable = '/opt/local/bin/python3.8' > sys.base_prefix = '/Applications/Frescobaldi.app/Contents/Resources' > sys.base_exec_prefix = '/Applications/Frescobaldi.app/Contents/Resources' > sys.executable = '/opt/local/bin/python3.8' > sys.prefix = '/Applications/Frescobaldi.app/Contents/Resources' > sys.exec_prefix = '/Applications/Frescobaldi.app/Contents/Resources' > sys.path = [ > '/Applications/Frescobaldi.app/Contents/Resources', > '/Applications/Frescobaldi.app/Contents/Resources/lib/python38.zip', > '/Applications/Frescobaldi.app/Contents/Resources/lib/python3.8', > '/Applications/Frescobaldi.app/Contents/Resources/lib/python3.8/lib-dynload', > ] > Fatal Python error: init_fs_encoding: failed to get the Python codec of the > filesystem encoding > Python runtime state: core initialized > ModuleNotFoundError: No module named 'encodings' > > Current thread 0x0000000100b1bd40 (most recent call first): > <no Python frame> > > > Le document n'a pas été modifié. > > JM > > > <ControllingBookPartsPageNumbersExample.ly> >