python-midi icon indicating copy to clipboard operation
python-midi copied to clipboard

Could not import midi

Open aljohani003 opened this issue 7 years ago • 6 comments

Hi. I am new to python when I tried to import midi this message shown $ pip install midi Collecting midi Could not find a version that satisfies the requirement midi (from versions: ) No matching distribution found for midi

I tried also this $ pip install python-midi 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-ikrcdmie/python-midi/setup.py", line 42 print "No sequencer available for '%s' platform." % platform ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(print "No sequencer available for '%s' platform." % platform)?

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

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

I am using python 2.7

aljohani003 avatar Jan 20 '18 00:01 aljohani003

I saw the same issue, except I was using python 3. The print statement above is not valid in Python 3 it needs parenthesis i.e. print ("No sequencer available for '%s' platform." % platform)

owennewo avatar Feb 04 '18 15:02 owennewo

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

fengzean avatar Apr 12 '18 13:04 fengzean

If you have problems with install @fengzean way, check that sudo apt-get install libasound2-dev swig are installed

techkuz avatar May 04 '18 07:05 techkuz

try:( for python3+ ) pip3 install git+https://github.com/vishnubob/python-midi@feature/python3

Andyz239 avatar Nov 04 '18 13:11 Andyz239

try this instead : pip install py-midi

Omar-Dasser avatar Nov 01 '19 11:11 Omar-Dasser

try this instead : pip install py-midi

It works. Thank you!

manhongxiang avatar Mar 02 '20 01:03 manhongxiang