前提・実現したいこと
Herokuにpythonをデプロイ出来ずに困っています。
以下でファイル出力したファイルと今回デプロイしたいモジュールを同一ディレクトリに設置し、以下のコマンドを実行しています。
pip freeze > requirements.txt
echo python-3.6.3 > runtime.txt
以下の手順でpush
git add .
git commit -m "test"
git push Heroku master
発生している問題・エラーメッセージ
remote: Collecting scikit-image==0.12.3 remote: Downloading scikit-image-0.12.3.tar.gz (20.7 MB) remote: ERROR: Command errored out with exit status 1: remote: command: /app/.heroku/python/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-oiv8lqw1/scikit-image/setup.py'"'"'; __file__='"'"'/tmp/pip-install-oiv8lqw1/scikit-image/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-rlg4s7ei remote: cwd: /tmp/pip-install-oiv8lqw1/scikit-image/ remote: Complete output (5 lines): remote: To install scikit-image from source, you will need numpy. remote: Install numpy with pip: remote: pip install numpy remote: Or use your operating system package manager. For more remote: details, see http://scikit-image.org/docs/stable/install.html remote: ---------------------------------------- remote: ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. remote: ! Push rejected, failed to compile Python app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to intense-escarpment-30879. remote: To https://git.heroku.com/intense-escarpment-30879.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/アプリ名'
numpy取得部分
remote: Downloading numba-0.30.1.tar.gz (1.2 MB) remote: Collecting numexpr==2.6.1 remote: Downloading numexpr-2.6.1-cp36-cp36m-manylinux1_x86_64.whl (388 kB) remote: Collecting numpy==1.16.3 remote: Downloading numpy-1.16.3-cp36-cp36m-manylinux1_x86_64.whl (17.3 MB) remote: Collecting numpydoc==0.6.0
requirements.txtの内容
alabaster==0.7.9 astroid==2.2.5 astropy==1.3 autopep8==1.5 Babel==2.3.4 backports.shutil-get-terminal-size==1.0.0 beautifulsoup4==4.5.3 bitarray==0.8.1 blaze==0.10.1 bokeh==0.12.4 boto==2.45.0 Bottleneck==1.2.0 cffi==1.9.1 chardet==2.3.0 chest==0.2.3 click==6.7 cloudpickle==0.2.2 clyent==1.2.0 colorama==0.4.1 comtypes==1.1.7 conda==4.3.16 configobj==5.0.6 contextlib2==0.5.4 cryptography==1.7.1 cycler==0.10.0 Cython==0.25.2 cytoolz==0.8.2 dask==0.13.0 datashape==0.5.2 decorator==4.0.11 dill==0.2.5 docutils==0.13.1 et-xmlfile==1.0.1 fastcache==1.0.2 Flask==0.12 Flask-Cors==3.0.2 gevent==1.2.1 greenlet==0.4.11 h5py==2.6.0 HeapDict==1.0.0 idna==2.2 imagesize==0.7.1 impyla==0.15.0 ipykernel==4.5.2 ipython==5.1.0 ipython-genutils==0.1.0 ipywidgets==5.2.2 isort==4.3.20 itsdangerous==0.24 jdcal==1.3 jedi==0.9.0 Jinja2==2.9.4 jsonschema==2.5.1 jupyter==1.0.0 jupyter-client==4.4.0 jupyter-console==5.0.0 jupyter-core==4.2.1 lazy-object-proxy==1.4.1 llvmlite==0.15.0 locket==0.2.0 lxml==3.7.2 MarkupSafe==0.23 matplotlib==2.0.0 mccabe==0.6.1 mistune==0.7.3 mpmath==0.19 multipledispatch==0.4.9 nbconvert==4.2.0 nbformat==4.2.0 networkx==1.11 nltk==3.2.2 nose==1.3.7 notebook==4.3.1 numba==0.30.1 numexpr==2.6.1 numpy==1.16.3 numpydoc==0.6.0 odo==0.5.0 openpyxl==2.4.1 pandas==0.24.2 partd==0.3.7 path.py==3.0.1 pathlib2==2.2.0 patsy==0.4.1 pep8==1.7.0 pickleshare==0.7.4 Pillow==4.0.0 ply==3.9 prompt-toolkit==1.0.9 psutil==5.0.1 psycopg2==2.8.2 py==1.4.32 pyasn1==0.1.9 pycodestyle==2.5.0 pycosat==0.6.1 pycparser==2.17 pycrypto==2.6.1 pycurl==7.43.0 pyflakes==1.5.0 Pygments==2.1.3 pylint==2.3.1 pyodbc==4.0.26 pyOpenSSL==16.2.0 pyparsing==2.1.4 pytest==3.0.5 python-dateutil==2.6.0 pytz==2016.10 PyYAML==3.12 pyzmq==16.0.2 QtAwesome==0.4.3 qtconsole==4.2.1 QtPy==1.2.1 requests==2.12.4 rope-py3k==0.9.4.post1 scikit-image==0.12.3 scikit-learn==0.18.1 scipy==0.18.1 seaborn==0.7.1 simplegeneric==0.8.1 singledispatch==3.4.0.3 six==1.12.0 snowballstemmer==1.2.1 sockjs-tornado==1.0.3 sphinx==1.5.1 spyder==3.1.2 SQLAlchemy==1.1.5 statsmodels==0.6.1 sympy==1.0 tables==3.2.2 thrift==0.11.0 thriftpy2==0.4.0 toolz==0.8.2 tornado==4.4.2 traitlets==4.3.1 typed-ast==1.4.0 unicodecsv==0.14.1 wcwidth==0.1.7 Werkzeug==0.11.15 widgetsnbextension==1.2.6 win-unicode-console==0.5 wrapt==1.11.1 xlrd==1.0.0 XlsxWriter==0.9.6 xlwings==0.10.2 xlwt==1.2.0
試したこと
requirements.txtに記載したモジュールのバージョンの問題を指摘されたのでそれは全て修正したところ、上記エラーになりました。
error内容からnumpyのエラーかな?と思いましたが、nummpyは既に上記の処理より前にダウンロード完了になっているため、理由がわかっていません。
また、Collecting scikit-image==0.12.3に関してはrequirements.txtにも記載ないので何故ダウンロードしようとしてるのかもよく分かっておらず、解決方法について教えて頂きたく。
回答1件
あなたの回答
tips
プレビュー