A set of C++ classes that provide a common API for realtime MIDI input/output across Linux (ALSA & JACK), Macintosh OS X (CoreMIDI) and Windows (Multimedia)
I am getting the following error message when I try to install rtmidi via pip. I have tried python 3.5 and 3.6, as well as rtmidi version 2.0, 2.1 and 2.2.
Running setup.py clean for rtmidi
Failed to build rtmidi
Installing collected packages: rtmidi
Running setup.py install for rtmidi ... error
Complete output from command /Users/angusturner/anaconda2/envs/py3k/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-36rcilh3/rtmidi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-7651oity-record/install-record.txt --single-version-externally-managed --compile:
/Users/angusturner/anaconda2/envs/py3k/lib/python3.6/distutils/extension.py:131: UserWarning: Unknown Extension options: 'author', 'author_email', 'classifiers', 'description', 'keywords', 'url'
warnings.warn(msg)
running install
running build
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-3.6
creating build/lib.macosx-10.7-x86_64-3.6/rtmidi
copying rtmidi/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/rtmidi
copying rtmidi/collector.py -> build/lib.macosx-10.7-x86_64-3.6/rtmidi
copying rtmidi/randomout.py -> build/lib.macosx-10.7-x86_64-3.6/rtmidi
running build_ext
building 'rtmidi._rtmidi' extension
creating build/temp.macosx-10.7-x86_64-3.6
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/angusturner/anaconda2/envs/py3k/include -arch x86_64 -I/Users/angusturner/anaconda2/envs/py3k/include -arch x86_64 -D__MACOSX_CORE__= -I/Users/angusturner/anaconda2/envs/py3k/include/python3.6m -c RtMidi.cpp -o build/temp.macosx-10.7-x86_64-3.6/RtMidi.o
RtMidi.cpp:235:17: error: out-of-line definition of 'setErrorCallback' does not match any declaration in 'MidiApi'
void MidiApi :: setErrorCallback( RtMidiErrorCallback errorCallback )
^~~~~~~~~~~~~~~~
RtMidi.cpp:251:40: error: too few arguments to function call, expected 3, have 2
errorCallback_( type, errorMessage );
~~~~~~~~~~~~~~ ^
2 errors generated.
error: command 'gcc' failed with exit status 1```
I am getting the following error message when I try to install rtmidi via pip. I have tried python 3.5 and 3.6, as well as rtmidi version 2.0, 2.1 and 2.2.