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

Python 3: even your simple example doesn't work #2

Closed
GoogleCodeExporter opened this issue Mar 31, 2015 · 1 comment
Closed

Python 3: even your simple example doesn't work #2

GoogleCodeExporter opened this issue Mar 31, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Install your code
2. copy your example into a file
3. run it

What is the expected output? What do you see instead?
Traceback (most recent call last):
  File "miditest.py", line 7, in <module>
    MyMIDI = MIDIFile(1)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/midiutil/MidiFile3.py", line 695, in __init__
    self.header = MIDIHeader(numTracks)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/midiutil/MidiFile3.py", line 649, in __init__
    self.headerString = struct.pack('cccc','M','T','h','d')
struct.error: char format requires a bytes object of length 1


What version of the product are you using? On what operating system?
Current version, OSX ML




Original issue reported on code.google.com by GeneDeL...@gmail.com on 5 Oct 2013 at 12:21

@GoogleCodeExporter
Copy link
Author

This was related to the Python Version. The code in question worked under 3.0, 
but not under 3.3.

A new release has been created -- 0.89 -- which corrects this issue. Please 
download that version and let me know if you experience any issues.

Original comment by emergent...@gmail.com on 1 Dec 2013 at 7:59

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

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

No branches or pull requests

1 participant