KoljaB / RealtimeTTS

Converts text to speech in realtime
1.39k stars 119 forks source link

failed install #67

Open ngoiyaeric opened 2 months ago

ngoiyaeric commented 2 months ago

install fails at pyaudio: following are various errors from subsequent attempts to resolve issue. ERROR: Could not build wheels for PyAudio, which is required to install pyproject.toml-based projects Building wheel for PyAudio (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for PyAudio (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [22 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.macosx-12.6-x86_64-cpython-39 creating build/lib.macosx-12.6-x86_64-cpython-39/pyaudio copying src/pyaudio/init.py -> build/lib.macosx-12.6-x86_64-cpython-39/pyaudio running build_ext building 'pyaudio._portaudio' extension creating build/temp.macosx-12.6-x86_64-cpython-39 creating build/temp.macosx-12.6-x86_64-cpython-39/src creating build/temp.macosx-12.6-x86_64-cpython-39/src/pyaudio clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -DOPENSSL_NO_SSL3 -DMACOS=1 -I/usr/local/include -I/usr/include -I/opt/homebrew/include -I/Users/karibu/myenv/include -I/Users/.pyenv/versions/3.9.18/include/python3.9 -c src/pyaudio/device_api.c -o build/temp.macosx-12.6-x86_64-cpython-39/src/pyaudio/device_api.o clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -DOPENSSL_NO_SSL3 -DMACOS=1 -I/usr/local/include -I/usr/include -I/opt/homebrew/include -I/Users/karibu/myenv/include -I/Users/.pyenv/versions/3.9.18/include/python3.9 -c src/pyaudio/host_api.c -o build/temp.macosx-12.6-x86_64-cpython-39/src/pyaudio/host_api.o clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -DOPENSSL_NO_SSL3 -DMACOS=1 -I/usr/local/include -I/usr/include -I/opt/homebrew/include -I/Users/karibu/myenv/include -I/Users/.pyenv/versions/3.9.18/include/python3.9 -c src/pyaudio/init.c -o build/temp.macosx-12.6-x86_64-cpython-39/src/pyaudio/init.o clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -DOPENSSL_NO_SSL3 -DMACOS=1 -I/usr/local/include -I/usr/include -I/opt/homebrew/include -I/Users/karibu/myenv/include -I/Users/.pyenv/versions/3.9.18/include/python3.9 -c src/pyaudio/mac_core_stream_info.c -o build/temp.macosx-12.6-x86_64-cpython-39/src/pyaudio/mac_core_stream_info.o In file included from src/pyaudio/mac_core_stream_info.c:3: src/pyaudio/mac_core_stream_info.h:13:10: fatal error: 'pa_mac_core.h' file not found

include "pa_mac_core.h"

           ^~~~~~~~~~~~~~~
  1 error generated.
  error: command '/usr/bin/clang' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for PyAudio Building wheel for TTS (pyproject.toml) ... done Created wheel for TTS: filename=TTS-0.22.0-cp39-cp39-macosx_12_0_x86_64.whl size=903439 sha256=ea358468699ac39beab3575f19324aa69622c73a77c6e429933673579e3aee0d Stored in directory: /Users/karibu/Library/Caches/pip/wheels/e9/94/e7/52e526c3ef9c07ac0b67a7dce87f81b6fb83ffd2d1754224e3 Successfully built TTS Failed to build PyAudio ERROR: Could not build wheels for PyAudio, which is required to install pyproject.toml-based projects

KoljaB commented 2 months ago

I have no Mac and it's pyaudio related which is not my library, so take this with a grain of salt:

pa_mac_core.h file not found seems like a portaudio issue. I'd try:

xcode-select --install
brew remove portaudio
brew install portaudio
pip3 install pyaudio