vishnubob / python-midi

Python MIDI library
MIT License
1.51k stars 369 forks source link

package installation issue #170

Open marypilataki opened 5 years ago

marypilataki commented 5 years ago

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

bootsch commented 5 years ago

What platform/os are you trying to install on?

marypilataki commented 5 years ago

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.

bootsch commented 5 years ago

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

marypilataki commented 5 years ago

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)?

bootsch commented 5 years ago

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

bootsch commented 5 years ago

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

marypilataki commented 5 years ago

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