shichao-an / soundmeter

Simple real-time sound meter
https://soundmeter.shichao.io
BSD 2-Clause "Simplified" License
82 stars 27 forks source link

Workaround for installing some dependencies on OS X #16

Open shichao-an opened 7 years ago

shichao-an commented 7 years ago

If you encounter issues when installing Python dependencies, the following may help:

Trouble installing pyaudio

If you see the following error:

    src/_portaudiomodule.c:29:10: fatal error: 'portaudio.h' file not found
    #include "portaudio.h"
             ^
    1 error generated.
    error: command 'cc' failed with exit status 1

After installing portaudio with Homebrew:

brew install portaudio

Try the following command to install pyaudio:

pip install --global-option='build_ext' --global-option='-I/usr/local/include' --global-option='-L/usr/local/lib' pyaudio

See https://stackoverflow.com/a/33821084 for details.

Trouble installing python-daemon

If you see such error while installing-daemon:

    i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'

Try this:

pip install docutils

Then install python-daemon:

pip install python-daemon

See https://stackoverflow.com/a/44539260 for details.

iakshayk commented 3 years ago

brew install portaudio -bash: brew: command not found

I am getting this error.