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

Working with Python3 #2

Open
ambs opened this issue Dec 7, 2020 · 1 comment
Open

Working with Python3 #2

ambs opened this issue Dec 7, 2020 · 1 comment

Comments

@ambs
Copy link

ambs commented Dec 7, 2020

Hi,
It looks like it is not working with Python3. I get this backtrace:

  File "parabens.py", line 34, in <module>
    iomidi.write('simple.mid', midi)
  File "/opt/python/lib/python3.8/site-packages/iomidi.py", line 402, in write
    writer.write(fileName, midi)
  File "/opt/python/lib/python3.8/site-packages/iomidi.py", line 292, in write
    self._writeHeader(f, midi.header)
  File "/opt/python/lib/python3.8/site-packages/iomidi.py", line 297, in _writeHeader
    self._writeBlock(f, _CHUNK_TYPE_HEADER)
  File "/opt/python/lib/python3.8/site-packages/iomidi.py", line 391, in _writeBlock
    f.write(data)
TypeError: a bytes-like object is required, not 'str'
@ambs
Copy link
Author

ambs commented Dec 7, 2020

Using mxm.midifile for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant