Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

simpleaudio Python package installation fails due to required Linux packages #710

Open
charleshong3 opened this issue Sep 29, 2019 · 1 comment
Labels

Comments

@charleshong3
Copy link
Contributor

charleshong3 commented Sep 29, 2019

Describe the bug
audio.py fails somewhat opaquely when the required C headers are missing. The following Linux packages might be required (mostly just libasound2-dev I think, need to look into it more):

libasound2-plugins alsa-utils libasound2-doc
libasound2 libasound2-data libasound2-dev

To Reproduce
The headers seem to be missing by default on some Linux machine. If they are missing, when you try installing simpleaudio by doing pip install simpleaudio, or you try to use the Shepherd Pipenv, you get an error that looks like this:

  c_src/simpleaudio_alsa.c:8:10: fatal error: alsa/asoundlib.h: No such file or directory
   #include <alsa/asoundlib.h>
            ^~~~~~~~~~~~~~~~~~
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

To Fix
Some documentation that these packages are required should be sufficient.

@charleshong3 charleshong3 changed the title Document that simpleaudio Python package requires various Linux packages simpleaudio Python package installation fails due to required Linux packages Sep 29, 2019
@kingfischer16
Copy link

Just had this problem myself. Installing libasound2-dev fixed the issue for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants