musicxml2ly: "NameError: name 'mxl_note' is not defined"
I saw this with lilypond 2.24, but afaics the offending code is still present in the latest version. It happens with a musicxml file exported by Audiveris, which is probably not 100% correct, but I reckon musicxml2py shouldn't crash on it either:
musicxml2ly -z -a -v hedwig.mxl
musicxml2ly: Reading MusicXML from hedwig.mxl ...
musicxml2ly: Input file hedwig.mxl is compressed, extracting raw MusicXML data
musicxml2ly: Converting to LilyPond expressions...
Traceback (most recent call last):
File "/usr/bin/musicxml2ly", line 3482, in <module>
main()
File "/usr/bin/musicxml2ly", line 3475, in main
voices = convert(filename, options)
File "/usr/bin/musicxml2ly", line 3336, in convert
(voices, staff_info) = get_all_voices(parts)
File "/usr/bin/musicxml2ly", line 2923, in get_all_voices
voice = musicxml_voice_to_lily_voice(v)
File "/usr/bin/musicxml2ly", line 2550, in musicxml_voice_to_lily_voice
convert_rest_positions=conversion_settings.convert_rest_positions)
File "/usr/share/lilypond/2.24.1/python/musicxml.py", line 892, in to_lily_object
event.duration = self.initialize_duration()
File "/usr/share/lilypond/2.24.1/python/musicxml.py", line 841, in initialize_duration
% (mxl_note.start, mxl_note._duration))
NameError: name 'mxl_note' is not defined