2014-06-27 119 views
0

我對此很新,而我的Flask應用程序未能推送。我讀過其中requirements.txt文件編輯擺脫分發和setuptools的溶液,但我有這些都不在我的requirements.txt:Flask Heroku應用程序 - 拒絕推送

Flask==0.10.1 
Jinja2==2.7.3 
MarkupSafe==0.23 
Werkzeug==0.9.6 
gunicorn==19.0.0 
itsdangerous==0.24 
numpy==1.8.1 
pygame==1.9.1 
virtualenv==1.11.6 

以下是錯誤輸出:

$ git push heroku master 
Initializing repository, done. 
Counting objects: 36, done. 
Delta compression using up to 4 threads. 
Compressing objects: 100% (34/34), done. 
Writing objects: 100% (36/36), 4.73 KiB, done. 
Total 36 (delta 16), reused 0 (delta 0) 

-----> Python app detected 
-----> Preparing Python runtime (python-2.7.7) 
-----> Installing Setuptools (3.6) 
-----> Installing Pip (1.5.6) 
-----> Installing dependencies using Pip (1.5.6) 
     Downloading/unpacking Flask==0.10.1 (from -r requirements.txt (line 1)) 
     Running setup.py (path:/tmp/pip_build_u10377/Flask/setup.py) egg_info f 
or package Flask 

      warning: no files found matching '*' under directory 'tests' 
      no previously-included directories found matching 'docs/_build' 
      no previously-included directories found matching 'docs/_themes/.git' 

     Downloading/unpacking Jinja2==2.7.3 (from -r requirements.txt (line 2)) 
     Running setup.py (path:/tmp/pip_build_u10377/Jinja2/setup.py) egg_info 
for package Jinja2 

      warning: no files found matching '*' under directory 'custom_fixers' 
     Downloading/unpacking MarkupSafe==0.23 (from -r requirements.txt (line 3) 
) 
     Downloading MarkupSafe-0.23.tar.gz 
     Running setup.py (path:/tmp/pip_build_u10377/MarkupSafe/setup.py) egg_i 
nfo for package MarkupSafe 

     Downloading/unpacking Werkzeug==0.9.6 (from -r requirements.txt (line 4)) 

     Running setup.py (path:/tmp/pip_build_u10377/Werkzeug/setup.py) egg_inf 
o for package Werkzeug 

      warning: no files found matching '*' under directory 'werkzeug/debug/ 
templates' 
      warning: no files found matching '*' under directory 'tests' 
      no previously-included directories found matching 'docs/_build' 
     Downloading/unpacking gunicorn==19.0.0 (from -r requirements.txt (line 5) 
) 
     Running setup.py (path:/tmp/pip_build_u10377/gunicorn/setup.py) egg_inf 
o for package gunicorn 

     Downloading/unpacking itsdangerous==0.24 (from -r requirements.txt (line 
6)) 
     Running setup.py (path:/tmp/pip_build_u10377/itsdangerous/setup.py) egg 
_info for package itsdangerous 

     Downloading/unpacking numpy==1.8.1 (from -r requirements.txt (line 7)) 
     Running setup.py (path:/tmp/pip_build_u10377/numpy/setup.py) egg_info f 
or package numpy 
      Running from numpy source directory. 

      warning: no files found matching 'tools/py3tool.py' 
      warning: no files found matching '*' under directory 'doc/f2py' 
     Downloading/unpacking pygame==1.9.1 (from -r requirements.txt (line 8)) 
     Could not find any downloads that satisfy the requirement pygame==1.9.1 
(from -r requirements.txt (line 8)) 
     Some insecure and unverifiable files were ignored (use --allow-unverifi 
ed pygame to allow). 
     Cleaning up... 
     No distributions at all found for pygame==1.9.1 (from -r requirements.txt 
(line 8)) 
     Storing debug log for failure in /app/.pip/pip.log 

!  Push rejected, failed to compile Python app 

To [email protected]:intj.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to '[email protected]:intj.git' 
$ 

所有建議表示讚賞。謝謝!

+0

如果你不想setuptools和分發,你'卸載卸載setuptools'和'卸載卸載分發'? – celeritas

+1

你收到什麼確切的錯誤? – dirn

+0

我們需要錯誤輸出來幫助您。 –

回答

0

它失敗了,因爲它無法安裝pygame。我猜你不需要它在服務器上,你可以從requirements.txt中刪除pygame == 1.9.1

相關問題