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

AttributeError: 'module' object has no attribute 'read_midifile' #1

Open
sreekanth3333 opened this issue Feb 28, 2018 · 7 comments
Open

Comments

@sreekanth3333
Copy link

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
AttributeError: 'module' object has no attribute 'read_midifile'

I am getting the above error, please help

@vivek-sethia
Copy link

I had the same problem.

Have a look at this solution.It works after that:
https://stackoverflow.com/a/44288773/5698977

@Paras-dua
Copy link

Can anyone explain the working of code? and also about how RBM and Tensorflow are reall being used here?

@AnkanDas22
Copy link

Download the 'midi' module by this command (otherwise it considers it to be python2):

pip install git+https://github.com/vishnubob/python-midi@feature/python3

@marcellom
Copy link

marcellom commented Sep 9, 2018

For Ubuntu this is the list of dependencies to fix the problem:
pip3 install pandas
pip3 install msgpack-python
pip3 install glob2
pip3 install tqdm
pip3 install py-midi
pip3 install tensorflow
sudo apt-get install swig
sudo apt-get install libasound2-dev
pip3 install git+https://github.com/vishnubob/python-midi@feature/python3

@rick51888
Copy link

https://github.com/vishnubob/python-midi@feature/python3 is 404 now.
What I did as blow:
git clone -b feature/python3 https://github.com/vishnubob/python-midi.git
python setup.py install

Maybe you will also need:
pip3 install libasound2
pip3 install libasound2-dev

@lawakesh23
Copy link

Collecting git+https://github.com/vishnubob/python-midi@feature/python3
Cloning https://github.com/vishnubob/python-midi (to revision feature/python3) to c:\users\lawakesh\appdata\local\temp\pip-req-build-tu19ye3s
Error [WinError 2] The system cannot find the file specified while executing command git clone -q https://github.com/vishnubob/python-midi C:\Users\lawakesh\AppData\Local\Temp\pip-req-build-tu19ye3s
Cannot find command 'git' - do you have 'git' installed and in your PATH?

@vivek-sethia i found this error, please help me
and i am running this : pip install git+https://github.com/vishnubob/python-midi@feature/python3

@Vickyilango
Copy link

Collecting git+https://github.com/vishnubob/python-midi@feature/python3
Cloning https://github.com/vishnubob/python-midi (to revision feature/python3) to c:\users\lawakesh\appdata\local\temp\pip-req-build-tu19ye3s
Error [WinError 2] The system cannot find the file specified while executing command git clone -q https://github.com/vishnubob/python-midi C:\Users\lawakesh\AppData\Local\Temp\pip-req-build-tu19ye3s
Cannot find command 'git' - do you have 'git' installed and in your PATH?

@vivek-sethia i found this error, please help me
and i am running this : pip install git+https://github.com/vishnubob/python-midi@feature/python3

Collecting git+https://github.com/vishnubob/python-midi@feature/python3
Cloning https://github.com/vishnubob/python-midi (to revision feature/python3) to c:\users\lawakesh\appdata\local\temp\pip-req-build-tu19ye3s
Error [WinError 2] The system cannot find the file specified while executing command git clone -q https://github.com/vishnubob/python-midi C:\Users\lawakesh\AppData\Local\Temp\pip-req-build-tu19ye3s
Cannot find command 'git' - do you have 'git' installed and in your PATH?

@vivek-sethia i found this error, please help me
and i am running this : pip install git+https://github.com/vishnubob/python-midi@feature/python3

Check if git is installed !

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

8 participants