flaskでアプリを作成してherokuでデプロイをしたところ以下のエラーが出て解決できません
Running setup.py install for PyAudio: started Running setup.py install for PyAudio: finished with status 'error' Complete output from command /app/.heroku/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-rrxz_4sn/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-hli8kyve-record/install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build/lib.linux-x86_64-3.6 copying src/pyaudio.py -> build/lib.linux-x86_64-3.6 running build_ext building '_portaudio' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/src gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/app/.heroku/python/include/python3.6m -c src/_portaudiomodule.c -o build/temp.linux-x86_64-3.6/src/_portaudiomodule.o src/_portaudiomodule.c:29:10: fatal error: portaudio.h: No such file or directory #include "portaudio.h" ^~~~~~~~~~~~~ compilation terminated. error: command 'gcc' failed with exit status 1 ---------------------------------------- Command "/app/.heroku/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-rrxz_4sn/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-hli8kyve-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-rrxz_4sn/PyAudio/ ! Push rejected, failed to compile Python app. ! Push failed
Procfile
1web: gunicorn app:app --log-file=-
requirements.txt
cachetools==3.1.0 certifi==2019.3.9 chardet==3.0.4 Click==7.0 Flask==1.0.2 google-api-core==1.8.2 google-auth==1.6.3 google-cloud-speech==1.0.0 googleapis-common-protos==1.5.9 grpcio==1.19.0 gunicorn==19.9.0 idna==2.8 itsdangerous==1.1.0 Jinja2==2.10 MarkupSafe==1.1.1 protobuf==3.7.1 pyasn1==0.4.5 pyasn1-modules==0.2.4 PyAudio==0.2.11 pytz==2018.9 requests==2.21.0 rsa==4.0 six==1.12.0 urllib3==1.24.1 Werkzeug==0.15.1
runtime.txt
python-3.6.8
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/04/01 07:26 編集