I'm trying to convert a piece with musicxml2ly which was set and exported by 
MuseScore in musicxml. However it won't work, and this is the error 
log:Traceback (most recent call last):
  File "/usr/share/lilypond/2.24.3/bin/../libexec/musicxml2ly", line 3482, in 
<module>
    main()
  File "/usr/share/lilypond/2.24.3/bin/../libexec/musicxml2ly", line 3475, in 
main
    voices = convert(filename, options)
  File "/usr/share/lilypond/2.24.3/bin/../libexec/musicxml2ly", line 3370, in 
convert
    score_information.print_ly(printer)
  File "/usr/share/lilypond/2.24.3/share/lilypond/2.24.3/python/musicexp.py", 
line 956, in print_ly
    self.format_header_strings(k, v, printer)
  File "/usr/share/lilypond/2.24.3/share/lilypond/2.24.3/python/musicexp.py", 
line 948, in format_header_strings
    printer.dump(value)
  File "/usr/share/lilypond/2.24.3/share/lilypond/2.24.3/python/musicexp.py", 
line 162, in dump
    words = utilities.split_string_and_preserve_doublequoted_substrings(
  File "/usr/share/lilypond/2.24.3/share/lilypond/2.24.3/python/utilities.py", 
line 83, in split_string_and_preserve_doublequoted_substrings
    return list(lex)
  File "/usr/share/lilypond/2.24.3/lib/python3.10/shlex.py", line 300, in 
__next__
    token = self.get_token()
  File "/usr/share/lilypond/2.24.3/lib/python3.10/shlex.py", line 109, in 
get_token
    raw = self.read_token()
  File "/usr/share/lilypond/2.24.3/lib/python3.10/shlex.py", line 191, in 
read_token
    raise ValueError("No closing quotation")
ValueError: No closing quotation

I checked the xml with xmllint and it seems ok. The exported file is read back 
in MuseScore without problems, so it's probably a minor problem. Can 
musicxml2ly report on which line of the input file the problem occurs, so that 
I can have a look there? The XML file is 16 820 lines long.

Reply via email to