前提・実現したいこと
Python+Reactで作ったアプリをHerokuでデプロイをしようとしています。
何度やってもapplication errorになってしまいます。
git push heroku mainは上手くいきます。
heroku openをするとapplication errorが表示されます。
発生している問題・エラーメッセージ
heroku logs --tailで表示される内容です。
conda-requirements.txtしか用意していないのですがこれではダメなのでしょうか?
condaのbuildpackは加えているはずです。
-----> Building on the Heroku-20 stack -----> Using buildpack: https://github.com/kennethreitz/conda-buildpack.git -----> Python/Conda app detected added pinned file in /app/.heroku/miniconda/conda-meta/pinned Collecting package metadata (current_repodata.json): ...working... done Solving environment: ...working... done ==> WARNING: A newer version of conda exists. <== current version: 4.8.4 latest version: 4.10.1 Please update conda by running $ conda update -n base -c defaults conda # All requested packages already installed. -----> Installing q-ta-lib using Conda Collecting package metadata (current_repodata.json): ...working... done Solving environment: ...working... done ==> WARNING: A newer version of conda exists. <== current version: 4.8.4 latest version: 4.10.1 Please update conda by running $ conda update -n base -c defaults conda # All requested packages already installed. -----> Installing dependencies using Pip DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support ERROR: Invalid requirement: u'blas=1.0=mkl' (from line 4 of requirements.txt) Hint: = is not a valid operator. Did you mean == ? ! Push rejected, failed to compile Python/Conda app. ! Push failed
該当のソースコード
conda-requirements.txtです
# This file may be used to create an environment using: # $ conda create --name <env> --file <this file> # platform: osx-64 blas=1.0=mkl ca-certificates=2021.4.13=hecd8cb5_1 certifi=2020.12.5=py39hecd8cb5_0 click=8.0.1=pyhd3eb1b0_0 flask=1.1.2=pyhd3eb1b0_0 flask_cors=3.0.10=pyhd3eb1b0_0 gunicorn=20.1.0=py39hecd8cb5_0 importlib-metadata=3.10.0=py39hecd8cb5_0 intel-openmp=2021.2.0=hecd8cb5_564 itsdangerous=2.0.1=pyhd3eb1b0_0 jinja2=3.0.0=pyhd3eb1b0_0 libcxx=10.0.0=1 libffi=3.3=hb1e8313_2 markupsafe=2.0.1=py39h9ed2024_0 mkl=2021.2.0=hecd8cb5_269 mkl-service=2.3.0=py39h9ed2024_1 mkl_fft=1.3.0=py39h4a7008c_2 mkl_random=1.2.1=py39hb2f4e1b_2 ncurses=6.2=h0a44026_1 numpy=1.20.2=py39h4b4dc7a_0 numpy-base=1.20.2=py39he0bd621_0 openssl=1.1.1k=h9ed2024_0 pandas=1.2.4=py39h23ab428_0 pip=21.1.1=py39hecd8cb5_0 python=3.9.5=h88f2d9e_3 python-dateutil=2.8.1=pyhd3eb1b0_0 pytz=2021.1=pyhd3eb1b0_0 readline=8.1=h9ed2024_0 setuptools=52.0.0=py39hecd8cb5_0 six=1.15.0=py39hecd8cb5_0 sqlite=3.35.4=hce871da_0 tk=8.6.10=hb0a8c7a_0 tzdata=2020f=h52ac0ba_0 werkzeug=1.0.1=pyhd3eb1b0_0 wheel=0.36.2=pyhd3eb1b0_0 xz=5.2.5=h1de35cc_0 zipp=3.4.1=pyhd3eb1b0_0 zlib=1.2.11=h1de35cc_3
Procfileです
web: gunicorn back.app:app --log-file-
git push heroku mainは上手くいきます。
heroku openをするとapplication errorが表示されます。
あなたの回答
tips
プレビュー