lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

musicxml2ly problems


From: James E. Bailey
Subject: musicxml2ly problems
Date: Sun, 10 Feb 2008 08:02:27 +0100


Message: 5
Date: Sat, 9 Feb 2008 23:38:58 +0000 (UTC)
From: Reinhold Kainhofer <address@hidden>
Subject: Re: musicxml2ly problems
To: address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain; charset=us-ascii

File "/Applications/LilyPond.app/Contents/Resources/bin/ musicxml2ly", line
1789, in print_ly_additional_definitions
 for a in set(needed_additional_definitions):
 NameError: global name 'set' is not defined

Hmm, that's weird. Which version of Python do you have installed?

The "set" data type is new in Python 2.3, and is needed in musicxml2ly to prevent duplicate definitions (i.e. I store all needed additional definitions in a list. However, some of them might be needed more than once throughout the piece, so some definitions are duplicate). By converting the list to a set, Python automatically gets rid of any duplicates, and no duplicate definitions
should be written to the .ly file...

Cheers,
Reinhold


I have no idea which version of python it is. Just whatever is in Lilypond 2.11.37




reply via email to

[Prev in Thread] Current Thread [Next in Thread]