Skip to content

Instantly share code, notes, and snippets.

@Catbuttes
Created April 17, 2020 21:50
Show Gist options
  • Save Catbuttes/61146e3883c499d0412fe58c2bd4cab1 to your computer and use it in GitHub Desktop.
Save Catbuttes/61146e3883c499d0412fe58c2bd4cab1 to your computer and use it in GitHub Desktop.
PyAudio install error
Running setup.py install for pyaudio ... error
ERROR: Command errored out with exit status 1:
command: /Users/edbrereton/src/tmp/tmp/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/8y/_qjb0r2n0qsdysn9pcx_cjj80000gn/T/pip-install-n5_7zj8f/pyaudio/setup.py'"'"'; __file__='"'"'/private/var/folders/8y/_qjb0r2n0qsdysn9pcx_cjj80000gn/T/pip-install-n5_7zj8f/pyaudio/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/8y/_qjb0r2n0qsdysn9pcx_cjj80000gn/T/pip-record-b6x1poof/install-record.txt --single-version-externally-managed --compile --install-headers /Users/edbrereton/src/tmp/tmp/include/site/python3.7/pyaudio
cwd: /private/var/folders/8y/_qjb0r2n0qsdysn9pcx_cjj80000gn/T/pip-install-n5_7zj8f/pyaudio/
Complete output (16 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.15-x86_64-3.7
copying src/pyaudio.py -> build/lib.macosx-10.15-x86_64-3.7
running build_ext
building '_portaudio' extension
creating build/temp.macosx-10.15-x86_64-3.7
creating build/temp.macosx-10.15-x86_64-3.7/src
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DMACOSX=1 -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/Users/edbrereton/src/tmp/tmp/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/_portaudiomodule.c -o build/temp.macosx-10.15-x86_64-3.7/src/_portaudiomodule.o
src/_portaudiomodule.c:29:10: fatal error: 'portaudio.h' file not found
#include "portaudio.h"
^~~~~~~~~~~~~
1 error generated.
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/edbrereton/src/tmp/tmp/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/8y/_qjb0r2n0qsdysn9pcx_cjj80000gn/T/pip-install-n5_7zj8f/pyaudio/setup.py'"'"'; __file__='"'"'/private/var/folders/8y/_qjb0r2n0qsdysn9pcx_cjj80000gn/T/pip-install-n5_7zj8f/pyaudio/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/8y/_qjb0r2n0qsdysn9pcx_cjj80000gn/T/pip-record-b6x1poof/install-record.txt --single-version-externally-managed --compile --install-headers /Users/edbrereton/src/tmp/tmp/include/site/python3.7/pyaudio Check the logs for full command output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment