llSourcell / Music_Generator_Demo

Music Generator Demo by @Sirajology on Youtube
246 stars 123 forks source link

module 'midi' has no attribute 'read_midifile' #25

Open Paras-dua opened 6 years ago

Paras-dua commented 6 years ago

Traceback (most recent call last): File "rbm_chords.py", line 36, in songs = get_songs('Pop_Music_Midi') # These songs have already been converted from midi to msgpack File "rbm_chords.py", line 32, in get_songs raise e File "rbm_chords.py", line 28, in get_songs song = np.array(midi_manipulation.midiToNoteStateMatrix(f)) File "C:\Users\Paras\Downloads\tensorflow-music-generator-master\midi_manipulation.py", line 11, in midiToNoteStateMatrix pattern = midi.read_midifile(midifile) AttributeError: module 'midi' has no attribute 'read_midifile' Please provide a solution as soon as possible!

ZZY2017321 commented 6 years ago

I have the same question.... Have you had the solution now?

marvinschopf commented 6 years ago

same

dewayneroy commented 6 years ago

Has anyone found a solution to this problem? It's really giving me a headache.

mehrzeller commented 6 years ago

well : install git first, then reboot your system. then : pip3 install git+https://github.com/vishnubob/python-midi@feature/python3 should work now

EulerGCH commented 5 years ago

Install "module midi" from new repository: pip install --upgrade git+https:// github.com/louisabraham/python3-midi

SuperStar888 commented 1 year ago

Is it working now?