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

package installation issue

Open marypilataki opened this issue 6 years ago • 7 comments

Hi,

I am trying to install the package python-midi. When trying the alternatives described (pip install git+webpage) the package does build successfully but when I try to import it (import midi) I get a ModuleNotFoundError.

I would appreciate it if you could please help me on that issue.

Regards, Mary

marypilataki avatar Feb 26 '19 20:02 marypilataki

What platform/os are you trying to install on?

bootsch avatar Feb 26 '19 21:02 bootsch

What platform/os are you trying to install on?

Hi,

Thanks for the response. I am on windows 10. I would like to install the package either on anaconda or on google colab.

marypilataki avatar Feb 26 '19 21:02 marypilataki

Not familiar with any of the two. But assuming you install it local on your computer with anaconda, can you run python on the command line? Most python packages can be installed by running 'setup.py'. Go into the directory of python-midi and run:

python setup.py install

That will build and install the package so that python can find it

bootsch avatar Feb 26 '19 21:02 bootsch

Thanks again for the response. I have already tried that and I get the following error: SyntaxError: Missing parentheses in call to 'print'. Did you mean print("No sequencer available for '%s' platform." % platform)?

marypilataki avatar Feb 26 '19 21:02 marypilataki

Looks like your using python3, not sure if python-midi is python3 compatible. Can you use python2?

bootsch avatar Feb 26 '19 21:02 bootsch

There are a lot of forks on python-midi - also for python3 found this https://github.com/louisabraham/python3-midi

bootsch avatar Feb 26 '19 21:02 bootsch

Hi, thank you very much for sharing this, that was very helpful! Sorry for the late reply I just saw the message!

marypilataki avatar Mar 06 '19 17:03 marypilataki