heroku에 앱을 배포하려고합니다. python/django 앱이며 내 로컬 컴퓨터에서 제대로 실행됩니다.python/django : heroku 배포가 실패합니다.
배포 할 때 heroku는 requirements.txt에 정의 된 패키지를 다운로드하지만 qpython
을 작성할 수 없다는 불평을하지 않으므로 numpy
을 찾을 수 없습니다. 그러나 로그 결과에서 numpy
을 다운로드하고 qpython을 설치하기 전에 볼 수 있습니다.
내가 생각할 수있는 유일한 점은 로그가 실제로 "수집 중"및 "다운로드 중"이라고 명시하지만 "설치 중"이라고 명시되어 있지 않다는 것입니다. heroku가 처리하는 방식으로 인해 qpython이 이전에 빌드 될 수 있습니다. numpy가 설치되고 있습니까? 이상한 가정이지만 제가 생각할 수있는 유일한 것입니다. 어쨌든, 나는 무엇을 해야할지 모르겠다.
python을 runtime.txt에서 python 2.7.12로 정의했습니다. 그것이 말하는처럼
$ git push heroku-dev django6_12:master
Counting objects: 21, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (20/20), done.
Writing objects: 100% (21/21), 1.99 KiB | 0 bytes/s, done.
Total 21 (delta 16), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
/*...more output omitted for brevity */
remote: -----> Python app detected
remote: -----> Installing python-2.7.12
remote: -----> Noticed cffi. Bootstrapping libffi.
remote: $ pip install -r requirements.txt
/*...more output omitted for brevity */
remote: Collecting nodeenv==0.7.2 (from -r requirements.txt (line 36))
remote: Downloading nodeenv-0.7.2.tar.gz
remote: Collecting numpy==1.8.1 (from -r requirements.txt (line 37))
remote: Downloading numpy-1.8.1-cp27-cp27m-manylinux1_x86_64.whl (14.6MB)
remote: Collecting pandas==0.14.0 (from -r requirements.txt (line 38))
remote: Downloading pandas-0.14.0.zip (7.3MB)
/*...more output omitted for brevity
**Note how numpy is being installed** */
remote: Collecting qpython==1.0.0 (from -r requirements.txt (line 112))
remote: Downloading qPython-1.0.0.zip (75kB)
remote: Complete output from command python setup.py egg_info:
remote: Traceback (most recent call last):
remote: File "<string>", line 1, in <module>
remote: File "/tmp/pip-build-NoEaTG/qpython/setup.py", line 19, in <module>
remote: import numpy
remote: ImportError: No module named numpy
remote:
remote: ----------------------------------------
remote: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-NoEaTG/qpython/
remote: ! Push rejected, failed to compile Python app.
$ git push heroku-dev django6_12:master
Counting objects: 21, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (20/20), done.
Writing objects: 100% (21/21), 1.99 KiB | 0 bytes/s, done.
Total 21 (delta 16), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
/*...more output omitted for brevity */
remote: -----> Python app detected
remote: -----> Installing python-2.7.12
remote: -----> Noticed cffi. Bootstrapping libffi.
remote: $ pip install -r requirements.txt
/*...more output omitted for brevity */
remote: Collecting nodeenv==0.7.2 (from -r requirements.txt (line 36))
remote: Downloading nodeenv-0.7.2.tar.gz
remote: Collecting numpy==1.8.1 (from -r requirements.txt (line 37))
remote: Downloading numpy-1.8.1-cp27-cp27m-manylinux1_x86_64.whl (14.6MB)
remote: Collecting pandas==0.14.0 (from -r requirements.txt (line 38))
remote: Downloading pandas-0.14.0.zip (7.3MB)
/*...more output omitted for brevity
**Note how numpy is being installed** */
remote: Collecting qpython==1.0.0 (from -r requirements.txt (line 112))
remote: Downloading qPython-1.0.0.zip (75kB)
remote: Complete output from command python setup.py egg_info:
remote: Traceback (most recent call last):
remote: File "<string>", line 1, in <module>
remote: File "/tmp/pip-build-NoEaTG/qpython/setup.py", line 19, in <module>
remote: import numpy
remote: ImportError: No module named numpy
remote:
remote: ----------------------------------------
remote: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-NoEaTG/qpython/
remote: ! Push rejected, failed to compile Python app.
멋진 친구, 나는 문서에 대한 많은 검색하지만,이에 대한 참조를 찾을 수 없습니다! 고마워. – faboolous