相关文章推荐
体贴的拐杖  ·  .NET 8 之路 - ...·  2 月前    · 
傻傻的生姜  ·  Spring ...·  2 月前    · 

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

as described here , in python 3.9 the method xml.etree.ElementTree.Element.getchildren does not work anymore, and throws an error when running module-run.py with python 3.9 with default parameters (only -dev=-1 for cpu)

pyScoreParser/musicxml_parser/mxp/notations.py", line 55, in parse_notations
    notations = self.xml_notations.getchildren()
AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'

You have to change to code from notations = self.xml_notations.getchildren() to notations = list(self.xml_notations) in order for it to work.

You also have to change child_list = direction.find('direction-type').getchildren() to child_list = list(direction.find('direction-type')) in direction.py .