gregchapman-dev / converter21

A music21-based music notation file format converter CLI app, and some new sub converter plug-ins
Other
16 stars 1 forks source link

TypeError: '>=' not supported between instances of 'str' and 'int' #9

Closed jacobtylerwalls closed 1 year ago

jacobtylerwalls commented 1 year ago

Hi Greg. Was just trying to run your ottava test case, but saw that on versions of music21 >= v8, you will see this failure:

  File "/Users/jwalls/converter21/converter21/HumdrumConverter.py", line 80, in parseFile
    self.stream = hf.createMusic21Stream()
  File "/Users/jwalls/converter21/converter21/humdrum/humdrumfile.py", line 703, in createMusic21Stream
    if m21.base.VERSION[0] >= 7:
TypeError: '>=' not supported between instances of 'str' and 'int'

Apparently the version constant changed to a string in v8.

gregchapman-dev commented 1 year ago

Fixed on main (thanks!). I just removed the check since it didn't make sense anymore. It'll land in the next release.