Closed bgenchel closed 1 year ago
Hi,
I was trying to install magenta, and got an error message related to pip installing python-rtmidi:
Failed to build python-rtmidi Installing collected packages: python-rtmidi Running setup.py install for python-rtmidi ... error error: subprocess-exited-with-error × Running setup.py install for python-rtmidi did not run successfully. │ exit code: 1 ╰─> [37 lines of output] running install running build running build_py creating build creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/rtmidi copying rtmidi/midiutil.py -> build/lib.linux-x86_64-3.8/rtmidi copying rtmidi/midiconstants.py -> build/lib.linux-x86_64-3.8/rtmidi copying rtmidi/version.py -> build/lib.linux-x86_64-3.8/rtmidi copying rtmidi/__init__.py -> build/lib.linux-x86_64-3.8/rtmidi running egg_info writing python_rtmidi.egg-info/PKG-INFO writing dependency_links to python_rtmidi.egg-info/dependency_links.txt writing top-level names to python_rtmidi.egg-info/top_level.txt adding license file 'LICENSE.txt' (matched pattern 'LICEN[CS]E*') adding license file 'AUTHORS.rst' (matched pattern 'AUTHORS*') reading manifest file 'python_rtmidi.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files found matching '.appveyor.yml' warning: no previously-included files found matching '.travis.yml' warning: no previously-included files found matching '*.rst.in' no previously-included directories found matching 'ci' warning: no previously-included files matching '__pycache__' found under directory '*' warning: no previously-included files matching '*.py[co]' found under directory '*' writing manifest file 'python_rtmidi.egg-info/SOURCES.txt' running build_ext building 'rtmidi._rtmidi' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/src creating build/temp.linux-x86_64-3.8/src/rtmidi gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DOPENSSL_NO_SSL3 -fPIC -D__RTMIDI_SILENCE_WARNINGS__ -D__LINUX_ALSA__ -Isrc -Isrc/rtmidi -I/home/benjieg/.pyenv/versions/3.8.16/include/python3.8 -c src/_rtmidi.cpp -o build/temp.linux-x86_64-3.8/src/_rtmidi.o gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DOPENSSL_NO_SSL3 -fPIC -D__RTMIDI_SILENCE_WARNINGS__ -D__LINUX_ALSA__ -Isrc -Isrc/rtmidi -I/home/benjieg/.pyenv/versions/3.8.16/include/python3.8 -c src/rtmidi/RtMidi.cpp -o build/temp.linux-x86_64-3.8/src/rtmidi/RtMidi.o src/rtmidi/RtMidi.cpp:1540:10: fatal error: alsa/asoundlib.h: No such file or directory 1540 | #include <alsa/asoundlib.h> | ^~~~~~~~~~~~~~~~~~ compilation terminated. error: command 'gcc' failed with exit status 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure × Encountered error while trying to install package. ╰─> python-rtmidi
I found this solution on the magenta github repo page: https://github.com/magenta/magenta/issues/781
It'd be good to make some mention of this somewhere! Thanks.
This is already mentioned in the readme and in the documentation.
Hi,
I was trying to install magenta, and got an error message related to pip installing python-rtmidi:
I found this solution on the magenta github repo page: https://github.com/magenta/magenta/issues/781
It'd be good to make some mention of this somewhere! Thanks.