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

MIDI import #12

Open
Birkoniajack opened this issue Apr 20, 2017 · 19 comments
Open

MIDI import #12

Birkoniajack opened this issue Apr 20, 2017 · 19 comments

Comments

@Birkoniajack
Copy link

Hi is there anything I need to import for the 'import midi' statement in midi manipulation? I get no module "MIDI" error

@Birkoniajack
Copy link
Author

Renamed the midi folder to 'midi' to see if that was it but then it says Pattern isn't an attribute of midi

@Eumi
Copy link

Eumi commented Apr 21, 2017

u have installed this version of things?
+numpy==1.11.0
+tensorflow==0.12.0
+pandas==0.19.2
+msgpack-python==0.4.8
+glob2==0.5
+tqdm==4.11.2
+python-midi==0.2.4

thats whats needed to run

@Birkoniajack
Copy link
Author

Ahh I was missing the python-midi install, but tried to install it and I got this message:

Collecting python-midi
Using cached python-midi-v0.2.4.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-rijbime5/python-midi/setup.py", line 42
print "No sequencer available for '%s' platform." % platform
^
SyntaxError: Missing parentheses in call to 'print'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-rijbime5/python-midi/

Any ideas?

@Birkoniajack
Copy link
Author

UPDATE - was using pip3 musn't work on python3

@sadpotatoissad
Copy link

Hi @Birkoniajack I have the same issue how did you fix it exactly?

@darthdeus
Copy link

You can install python-midi on Python 3 using the feature/python3 branch as follows:

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

@sadpotatoissad
Copy link

sadpotatoissad commented May 12, 2017 via email

@jainbhawu
Copy link

jainbhawu commented Jan 7, 2018

While installing midi for python 3 i got this error. How can we resolve it?

pip3 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 feature/python3) to c:\users\dell\appdata\local\temp\pip-iifmigw7-build
Error [WinError 2] The system cannot find the file specified while executing command git clone -q https://github.com/vishnubob/python-midi C:\Users\Dell\AppData\Local\Temp\pip-iifmigw7-build
Cannot find command 'git'

@sayelaoda
Copy link

@darthdeus this page is not found......it is 404 now.
https://github.com/vishnubob/python-midi@feature/python3

@Cattleman
Copy link

I am having same page not found --- 404

@DeepsMoseli
Copy link

anyone found a work around this?

@Ddedalous
Copy link

I also need a workaround anyone?

@DeepsMoseli
Copy link

DeepsMoseli commented Feb 20, 2018 via email

@darthdeus
Copy link

@jainbhawu You're missing git, look at the last line in your error message

@sayelaoda The page is not supposed to work in the browser. I don't know why you would want that anyway, since the command I showed still works, as I just copy pasted it from my original command, ran it, and it installed midi.

Just to make it crystal clear, the command is:

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

The git+https bit is important, don't just copy&paste part of the url. This is how you tell pip to install from a branch on GitHub. I don't understand what issues the others are having, as the original command works unchanged.

@sayelaoda
Copy link

@darthdeus,thanks your answer.

@Sequential-circuits
Copy link

please note you may have to also run apt-get install libasound2-dev otherwise you may get a bs error about alsa

@JiamingXu1515
Copy link

https://github.com/vishnubob/python-midi@feature/python3 but this website is 404

@lawakesh23
Copy link

lawakesh23 commented Feb 24, 2019

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?

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

@EulerGCH
Copy link

@lawakesh23 and @JiamingXu1515 - This works for me ( Using Anaconda).

1.- install git:
conda install -c anaconda git

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

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