2014-03-28 156 views
1

我已經在heroku上爲教育目的部署了幾個應用程序。今天我用燒瓶創建了一個新的應用程序,我按照以前的方式在heroku網站上按照指示操​​作。問題發生在我需要使用PIP步驟來安裝其他東西燒瓶 - 由於Pip失敗而無法部署應用程序

(venv)[email protected]:~/Documents/Projects/workspace/hellowork$ pip install Flask gunicorn 
Downloading/unpacking Flask 
    Downloading Flask-0.10.1.tar.gz (544Kb): 544Kb downloaded 
    Running setup.py egg_info for package Flask 

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

.....它繼續與他人。從這現在開始,我不能在Heroku上部署,因爲它總是彈出上述沿附加誤差:

Renaming /app/.heroku/python/lib/python2.7/site-packages/setuptools-2.1-py2.7.egg into /app/.heroku/python/lib/python2.7/site-packages/setuptools-2.1-py2.7.egg.OLD.1395994594.37 

    Patched done. 

    Relaunching... 

    Traceback (most recent call last): 

    File "<string>", line 1, in <module> 

    NameError: name 'install' is not defined 

    ---------------------------------------- 
    Cleaning up... 
    Command /app/.heroku/python/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_u56661/distribute/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-y13sLM-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_u56661/distribute 
    Storing debug log for failure in /app/.pip/pip.log 

!  Push rejected, failed to compile Python app 

To [email protected]:quiet-meadow-5679.git 

我requirement.txt:

Flask==0.10.1 
Jinja2==2.7.2 
MarkupSafe==0.19 
Werkzeug==0.9.4 
argparse==1.2.1 
distribute==0.6.24 
gunicorn==18.0 
itsdangerous==0.23 
wsgiref==0.1.2 

我使用Ubuntu,每包已是最新。我從來沒有遇到過這個問題,而且我已經花了幾個小時。任何想法如何解決它將不勝感激。

應用程序運行良好localhost與工頭btw。

謝謝

回答

1

我聯繫了heroku支持,這是我本地軟件包和heruku服務器軟件包之間的問題。如何解決它只是從requirements.txt刪除分佈== 0.6.24

他們還更新指令頁面,所以我們需要更新到每個包的最新版本,以部署應用程序。

0

你有沒有試過消息Heroku支持這個?看起來Heroku在發生這種情況時可能會遇到API問題。您應該聯繫支持(並嘗試再次部署)。

相關問題