Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Exporting to .XML works for single instrument, but not for 2 or more

16 views
Skip to first unread message

Viktor Mastoridis

unread,
Aug 8, 2024, 8:19:17 AM8/8/24
to fresc...@googlegroups.com
On Frescobaldi 3.2 and Lilypond 2.24 I am able to export single instruments as XML files with great success.
However, if I try to export two or more of them at the same time, I get the error below.

I have 4 staffs, they are all in the same document, I only hide the instruments by using % in the \score section.

I was wondering whether you can see an obvious error in the output below.
The document is linked to several other external docs, but if needed, I will try to compile a simple version.

Here's the error output in Frescobaldi:
-------------
Traceback (most recent call last):
  File "/usr/share/frescobaldi/frescobaldi_app/file_export/__init__.py", line 65, in exportMusicXML
    writer.parse_text(doc.toPlainText(), orgname)
  File "/usr/lib/python3/dist-packages/ly/musicxml/lymus2musxml.py", line 104, in parse_text
    self.parse_document(doc)
  File "/usr/lib/python3/dist-packages/ly/musicxml/lymus2musxml.py", line 121, in parse_document
    self.parse_tree(mustree)
  File "/usr/lib/python3/dist-packages/ly/musicxml/lymus2musxml.py", line 135, in parse_tree
    self.parse_nodes(mus_nodes)
  File "/usr/lib/python3/dist-packages/ly/musicxml/lymus2musxml.py", line 147, in parse_nodes
    func_call(m)
  File "/usr/lib/python3/dist-packages/ly/musicxml/lymus2musxml.py", line 657, in End
    self.mediator.check_simultan()
  File "/usr/lib/python3/dist-packages/ly/musicxml/ly2xml_mediator.py", line 301, in check_simultan
    self.sections.pop()
IndexError: pop from empty list
---
Viktor Mastoridis



Federico Bruni

unread,
Aug 8, 2024, 5:43:40 PM8/8/24
to fresc...@googlegroups.com, Viktor Mastoridis


Il giorno gio 8 ago 2024 alle 13:18:37 +01:00:00, Viktor Mastoridis
<viktor.m...@gmail.com> ha scritto:
It seems the same error reported here:
https://github.com/frescobaldi/frescobaldi/issues/1712

but the right place to discuss is python-ly repository and this is a
more interesting issue with a possible fix:
https://github.com/frescobaldi/python-ly/issues/76



Viktor Mastoridis

unread,
Aug 9, 2024, 6:18:10 AM8/9/24
to Federico Bruni, fresc...@googlegroups.com


It seems the same error reported here:
https://github.com/frescobaldi/frescobaldi/issues/1712

but the right place to discuss is python-ly repository and this is a
more interesting issue with a possible fix:
https://github.com/frescobaldi/python-ly/issues/76
 
Thank you, Federico.

Yes, it's the same bug reported there.

I'll watch the spaces.
Reply all
Reply to author
Forward
0 new messages