-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Speech sample failed to install #2061
Copy link
Copy link
Closed
Description
In which file did you encounter the issue?
Did you change the file? If so, how?
No
Describe the issue
Failed to install requirements.txt
Steps:
- Open Cloud Shell
cd python-docs-samples/speech/cloud-client/
$ virtualenv env
$ source env/bin/activate
pip install -r requirements.txt
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/py
thon3.5m -I/home/harin_sanghirun/python-docs-samples/speech/cloud-client/env/include/python3.5m -c src/_portaudiomodule.c -o build/temp.linux-x86_64-3.5/src/_portaudiomodule.o
src/_portaudiomodule.c:29:23: fatal error: portaudio.h: No such file or directory
#include "portaudio.h"
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/home/harin_sanghirun/python-docs-samples/speech/cloud-client/env/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-rttf92f_/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 /tmp/pip-record-hj3mco5q/install-record.txt --single-version-externally-managed --compile --install-headers /home/harin_sanghirun/python-docs-samples/speech/cloud-cli
ent/env/include/site/python3.5/pyaudio" failed with error code 1 in /tmp/pip-install-rttf92f_/pyaudio/
Reactions are currently unavailable