2013-09-25 50 views
4

Python新手,试图部署博客。我跟着Heorku关于Getting Started with Python on Heroku的文档。它提到,我需要添加一个Procfile,所以我增加了Django [Mezzanine CMS]项目未部署到Heroku

Procfile

web: gunicorn hello:app 

没有提交,但遇到了这个错误尝试我的应用程序部署到Heroku的

Juan-Gallardos-MacBook-Pro:yatumblrgraffiti juangallardo$ git push heroku master 
Counting objects: 23, done. 
Delta compression using up to 4 threads. 
Compressing objects: 100% (18/18), done. 
Writing objects: 100% (23/23), 15.50 KiB, done. 
Total 23 (delta 2), reused 0 (delta 0) 

-----> Python app detected 
-----> No runtime.txt provided; assuming python-2.7.4. 
-----> Preparing Python runtime (python-2.7.4) 
-----> Installing Distribute (0.6.36) 
-----> Installing Pip (1.3.1) 
-----> Installing dependencies using Pip (1.3.1) 
     Downloading/unpacking Django==1.5.1 (from -r requirements.txt (line 1)) 
     Running setup.py egg_info for package Django 

     Downloading/unpacking Mezzanine==1.4.14 (from -r requirements.txt (line 2)) 
     Running setup.py egg_info for package Mezzanine 

     Downloading/unpacking Pillow==2.1.0 (from -r requirements.txt (line 3)) 
     Running setup.py egg_info for package Pillow 

      warning: no files found matching 'COPYING' 
      warning: no files found matching '*.html' under directory 'docs' 
      warning: no files found matching '*.css' under directory 'docs' 
      warning: no files found matching 'README' under directory 'docs' 
      warning: no files found matching 'CHANGES' under directory 'docs' 
      warning: no files found matching 'CONTENTS' under directory 'docs' 
     Downloading/unpacking PyRSS2Gen==1.0.0 (from -r requirements.txt (line 4)) 
     Downloading PyRSS2Gen-1.0.0.tar.gz 
     Running setup.py egg_info for package PyRSS2Gen 

     Downloading/unpacking Twisted==11.0.0 (from -r requirements.txt (line 5)) 
     Running setup.py egg_info for package Twisted 

     Downloading/unpacking altgraph==0.7.2 (from -r requirements.txt (line 6)) 
     Downloading altgraph-0.7.2.tar.gz 
     Running setup.py egg_info for package altgraph 

      warning: no files found matching '*.txt' 
     Downloading/unpacking bdist-mpkg==0.4.4 (from -r requirements.txt (line 7)) 
     Downloading bdist_mpkg-0.4.4.tar.gz 
     Running setup.py egg_info for package bdist-mpkg 

     Downloading/unpacking bleach==1.2.2 (from -r requirements.txt (line 8)) 
     Downloading bleach-1.2.2.tar.gz 
     Running setup.py egg_info for package bleach 

     Downloading/unpacking bonjour-py==0.3 (from -r requirements.txt (line 9)) 
     Could not find any downloads that satisfy the requirement bonjour-py==0.3 (from -r requirements.txt (line 9)) 
     No distributions at all found for bonjour-py==0.3 (from -r requirements.txt (line 9)) 
     Storing complete log in /app/.pip/pip.log 

!  Push rejected, failed to compile Python app 

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

当我跑heroku logs我得到这个

Juan-Gallardos-MacBook-Pro:yatumblrgraffiti juangallardo$ heroku logs 
2013-09-25T06:48:50+00:00 heroku[slug-compiler]: Slug compilation started 
2013-09-25T06:49:16+00:00 heroku[slug-compiler]: Slug compilation failed: failed to compile Python app 
2013-09-25T06:56:42.862309+00:00 heroku[router]: at=info code= desc="Blank app" method=GET path=/favicon.ico host=yatumblrgraffiti.herokuapp.com fwd="98.189.25.230" dyno= connect= service= status=502 bytes= 
2013-09-25T06:56:42.221149+00:00 heroku[router]: at=info code= desc="Blank app" method=GET path=/ host=yatumblrgraffiti.herokuapp.com fwd="98.189.25.230" dyno= connect= service= status=502 bytes= 
2013-09-25T06:56:42.775650+00:00 heroku[router]: at=info code= desc="Blank app" method=GET path=/favicon.ico host=yatumblrgraffiti.herokuapp.com fwd="98.189.25.230" dyno= connect= service= status=502 bytes= 
2013-09-25T07:00:59+00:00 heroku[slug-compiler]: Slug compilation started 
2013-09-25T07:01:51+00:00 heroku[slug-compiler]: Slug compilation failed: failed to compile Python app 
2013-09-26T04:19:23+00:00 heroku[slug-compiler]: Slug compilation started 
2013-09-26T04:19:48+00:00 heroku[slug-compiler]: Slug compilation failed: failed to compile Python app 

不是How to deploy mezzanine on heroku?的重复项,因为该问题具有不同的Procfile并且不包含他的错误日志。

我在这里可能会错过什么?

+0

我不熟悉的Heroku自己,但如果你不能在这里找出答案,你有没有这样做我会强烈建议波斯蒂纳入Mezzanine Google小组。 https://groups.google.com/forum/#!forum/mezzanine-users – joshcartme

+0

我在这里问了一个问题http://stackoverflow.com/questions/20737960/difficult-time-using-mezzanine-on-heroku-issues -with-procfile-and-dictionary-v这可能对你有用吗?我希望有人帮助你。我无法弄清楚为什么procfile不能正常工作。 – gersande

回答

1

似乎有一个问题,因为altgraph==0.7.1包,所以只需更新您的requirements.txt指向altgraph==0.7.2或更高。

来源:发布历史https://pypi.python.org/pypi/altgraph/

+0

谢谢,你的回答确实让我更接近。问题的细节编辑。 – JGallardo

0

认定为卓悦-PY的包不能被发现。

pip search bonjour 

显示包的名字是

pybonjour 

运行

pip install pybonjour 
pip freeze > requirements.txt 

然后提交,并再次推高到Heroku的。

此外,您有按下AltGraph之前的问题建议你可能要推一个新requirements.txt

之前做

pip install -U <packagename> 

对于所有的软件包如果你想看看您目前使用的软件包版本做了

pip freeze