Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

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

Bug with musicxml Import #161

Closed
manoskary opened this issue Oct 10, 2022 · 2 comments · Fixed by #160
Closed

Bug with musicxml Import #161

manoskary opened this issue Oct 10, 2022 · 2 comments · Fixed by #160
Assignees
Labels
bug Something isn't working

Comments

@manoskary
Copy link
Member

manoskary commented Oct 10, 2022

Load .musicxml fails with Error:

Traceback (most recent call last):
    score = pt.load_musicxml(score)
  File "/partitura/partitura/utils/misc.py", line 49, in wrapper
    return f(*args, **kwargs)
  File "partitura/partitura/utils/misc.py", line 71, in wrapper
    return f(*args, **kwargs)
  File "partitura/partitura/io/importmusicxml.py", line 231, in load_musicxml
    _parse_parts(document, part_dict)
  File "partitura/partitura/io/importmusicxml.py", line 362, in _parse_parts
    start_times = [0] + [r.end.t for r in part.iter_all(score.Repeat)]
  File "partitura/partitura/io/importmusicxml.py", line 362, in <listcomp>
    start_times = [0] + [r.end.t for r in part.iter_all(score.Repeat)]
AttributeError: 'NoneType' object has no attribute 't'

AlbinoniT-O6N10-4.zip

@manoskary manoskary added the bug Something isn't working label Oct 10, 2022
@sildater sildater self-assigned this Oct 11, 2022
@sildater
Copy link
Member

Can you send me the file that produces the error?

@manoskary
Copy link
Member Author

Can you send me the file that produces the error?

It's already attached.

@manoskary manoskary linked a pull request Oct 19, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants