question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installing magenta fails due to rtmidi

See original GitHub issue

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 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:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

20reactions
reido2012commented, Jul 20, 2017

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

13reactions
davidleceacommented, Jul 18, 2017

I think you need to install the ALSA library development files first. In Debian / Ubuntu you could fix it with:

sudo apt-get install libasound2-dev

But you’ll need to find the equivalent command for the CentOS package manager.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found