Installing magenta fails due to rtmidi
See original GitHub issueHi,
I’m running CentOS and am working with an anaconda Python 2.7 environment. I tried installing magenta via pip, but I get the following errors:
src/RtMidi.cpp:1101:28: fatal error: alsa/asoundlib.h: No such file or directory
#include <alsa/asoundlib.h>
^
compilation terminated.
Failed to build python-rtmidi
Command "/home/davidg/anaconda2/envs/magenta/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ZbHoid/python-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-Y0KfrZ-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ZbHoid/python-rtmidi/
Happy to provide more information! Thanks for the help in advance.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
Installing magenta fails due to rtmidi · Issue #781 - GitHub
Hi, I'm running CentOS and am working with an anaconda Python 2.7 environment. I tried installing magenta via pip, but I get the...
Read more >python 3.9 magenta not working on Windows - Stack Overflow
I receive various error when trying to install magenta with pip. i get an error for building wheels for numba, llvmlite and python-rtmidi...
Read more >Magenta Python Package installation Failed! - Google Groups
I am going to use the Magenta python package on my local machine using PyCharm. I tried to install this package a couple...
Read more >TensorFlow Magenta installation failed - Solus Forum
Hello, I have tried to install TensorfFlow Magenta on my computer, infortunatly, the installation failed due to the build of python-rtmidi ...
Read more >Problem with rtmidi : Forums - PythonAnywhere
It's part of the pakacage I am piping from magenta. It always breaks when it tries to install rtmidi. I looked up the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Make sure you have the dependencies installed Linux: ALSA, JACK OS X: CoreMIDI, JACK Windows: MultiMedia (MM)
This link has the name of the packages that you can download - http://python-rtmidi.readthedocs.io/en/latest/installation.html
The commands you’ll most likely need to use as stated above are:
sudo apt-get install libasound-dev
sudo apt-get install libjack-dev
I think you need to install the ALSA library development files first. In Debian / Ubuntu you could fix it with:
But you’ll need to find the equivalent command for the CentOS package manager.