dshieble / Music_RNN_RBM

Generating longer musical pieces with an RNN-RBM in TensorFlow
97 stars 34 forks source link

IOError: [Errno 2] No such file or directory: 'music_outputs/0_Every Time We Touch - Chorus.midi.mid' #9

Closed YuzukiTsuru closed 6 years ago

YuzukiTsuru commented 6 years ago

Traceback (most recent call last): File "rnn_rbm_generate.py", line 45, in <module> main(sys.argv[1]) File "rnn_rbm_generate.py", line 42, in main midi_manipulation.write_song(new_song_path, generated_music) File "/home/gloomyghost/rbm/Music_RNN_RBM/midi_manipulation.py", line 15, in write_song noteStateMatrixToMidi(song, name=path) File "/home/gloomyghost/rbm/Music_RNN_RBM/midi_manipulation.py", line 138, in noteStateMatrixToMidi midi.write_midifile("{}.mid".format(name), pattern) File "/usr/local/lib/python2.7/dist-packages/midi/fileio.py", line 150, in write_midifile midifile = open(midifile, 'wb') IOError: [Errno 2] No such file or directory: 'music_outputs/0_Every Time We Touch - Chorus.midi.mid'

YuzukiTsuru commented 6 years ago

I just make a huge mistake /sorry

hasagar97 commented 6 years ago

What was the mistake I think I am repeating the same @740291272 .

hasagar97 commented 6 years ago

The mistake was that Python was unable to create "music_outputs/" directory. you have to create it manually.