The rtmidi_python.cpp file provided in this repository was built with an older version of Cython and will not work correctly with newer Python versions (3.9+). To fix the problem, you need to rebuild the file using the latest version of Cython.
To do this, you should first delete the rtmidi_python.cpp file. Then, run the following command to rebuild the file using Cython:
python3 setup.py install --from-cython
Note that due to the already present rtmidi_python.cpp file in the repository, running this command without deleting the file first will skip the step of building the source file using Cython. I believe this seems to miss the point of the --from-cython option.
The
rtmidi_python.cppfile provided in this repository was built with an older version of Cython and will not work correctly with newer Python versions (3.9+). To fix the problem, you need to rebuild the file using the latest version of Cython.To do this, you should first delete the
rtmidi_python.cppfile. Then, run the following command to rebuild the file using Cython:Note that due to the already present
rtmidi_python.cppfile in the repository, running this command without deleting the file first will skip the step of building the source file using Cython. I believe this seems to miss the point of the--from-cythonoption.