C5,W3,A2 Ex: Exercise 4 - create_training_example

Are you solving the assignment in coursera lab environment?

I’ve faced this issue because of music21. Use 6.5.0 and see if the assertion continues. Here’s a post which lists the dependencies.