Open ExecutorElassus opened 8 years ago
Note that this file can only be compiled in the original context as otherwise the includes cannot be resolved.
I suspected this failed include could be the reason but when placing the flattened file in the original context a) it became compilable and b) the MusicXML export fails with the same message. So this is not the issue.
The other thing is that I tried that with python-ly
from Git (where the OP obviously has the packaged version), and the error is the same. So that isn't a reason either.
I bumped into this bug when trying a very simple test:
Unknown command: \mergeDifferentlyDottedOn
Unknown command: \mergeDifferentlyHeadedOn
Warning: End not implemented!
'NoneType' object has no attribute 'merge_voice'
Traceback (most recent call last):
File "/usr/bin/ly", line 4, in
As a workaround I changed line 293 in ly2xml_mediator.py. I am not enough of a Python programmer to judge if this makes any sense, but it worked for me now.
# self.sections.pop()
if self.sections:
self.sections.pop()
The same situation in 2022. As written in previous comment it's possible to patch /usr/lib/python3/dist-packages/ly/musicxml/ly2xml_mediator.py
— different lines but the same code
301c301,302
< self.sections.pop()
---
> if self.sections:
> self.sections.pop()
I have the following file transkription kayser 6. messe d-moll - flattened.ly.zip
Export to MusicXML fails with the following error:
(the \includes in that file are all layout/font options. The entire file tree can be found here).
What is going wrong here? Is there some issue of formatting that isn't being correctly interpreted?
Thanks for the help