Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues intalation on macos #60

Open
Mfernand opened this issue Jul 23, 2022 · 1 comment
Open

Issues intalation on macos #60

Mfernand opened this issue Jul 23, 2022 · 1 comment

Comments

@Mfernand
Copy link

After follow the instruction a get this errors when I run the setup_mac.sh script. I attach the log intalation.log

I think the main problem is this:

ERROR: Command errored out with exit status 1:
command: /usr/local/opt/[email protected]/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/6k/c6f1zkt96d143fvxkv_p0sym0000gp/T/pip-install-tkacqi2_/pyaudio_8c26151dbc014dc18bdac6721b3612b8/setup.py'"'"'; file='"'"'/private/var/folders/6k/c6f1zkt96d143fvxkv_p0sym0000gp/T/pip-install-tkacqi2_/pyaudio_8c26151dbc014dc18bdac6721b3612b8/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/6k/c6f1zkt96d143fvxkv_p0sym0000gp/T/pip-wheel-kj1jrmv1
cwd: /private/var/folders/6k/c6f1zkt96d143fvxkv_p0sym0000gp/T/pip-install-tkacqi2_/pyaudio_8c26151dbc014dc18bdac6721b3612b8/
Complete output (15 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-12-x86_64-3.9
copying src/pyaudio.py -> build/lib.macosx-12-x86_64-3.9
running build_ext
creating build/temp.macosx-12-x86_64-3.9
creating build/temp.macosx-12-x86_64-3.9/src
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -DMACOSX=1 -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/_portaudiomodule.c -o build/temp.macosx-12-x86_64-3.9/src/_portaudiomodule.o
src/_portaudiomodule.c:29:10: fatal error: 'portaudio.h' file not found
#include "portaudio.h"
^~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1

ERROR: Failed building wheel for PyAudio

@Tilix4
Copy link

Tilix4 commented Aug 14, 2022

Following this thread, I managed to make it work: https://stackoverflow.com/questions/66146148/installing-pyaudio-gives-error-portaudio-h-file-not-found

brew install portaudio

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

No branches or pull requests

2 participants