MPK-M2-editor
MPK-M2-editor copied to clipboard
rtmidi-python won't work with Python3.10+
The following error occurs when running: pip3 install -r ./requirements.txt
********@mercury:~/Downloads/mpk2Editor/MPK-M2-editor$ python3 -m pip install -r ./requirements.txt Defaulting to user installation because normal site-packages is not writeable Collecting python-rtmidi Using cached python-rtmidi-1.4.9.tar.gz (251 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
Traceback (most recent call last):
File "
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
This is where is went looking for an explanation: https://stackoverflow.com/questions/71410788/pip-failed-building-wheel-for-rtmidi-python-subprocess-exited-with-error-and-le
Here's a link to the old library. https://pypi.org/project/rtmidi-python/#history
Link to another: https://pypi.org/project/python-rtmidi/
I may add more notes or see if I can fix this since I really enjoy using the editor.
The problem is with python 3.10 The library doesn't support it.
I'm running Ubuntu Studio 22.04
Installing this library seems to fix the problem. sudo apt-get install python3-rtmidi
Hello, thanks for the report!
I tried uninstalling the python-rtmidi
from apt and installing the one from pip, and it works on my end. The old library you linked to seems to be rtmidi-python
, but the one we use is python-rtmidi
, so I don’t think that issue is related to yours.
Sorry I have no what went wrong, but I’m glad you could make it work :)
Leaving this issue open if anyone encounters the same issue.