python - Appfog Django应用程序分发包错误

标签 python django appfog

我是 appfog 的新手,想将我的 django 项目推送到服务器,但似乎无法安装分发包。我不知道是什么阻止了这个问题,而且我找不到访问 shell 的方法。知道发生了什么或如何解决它吗?

下面的崩溃消息

Uploading Application:
  Checking for available resources: OK
  Processing resources: OK
  Packing application: OK
  Uploading (53K): OK   
Push Status: OK
Stopping Application 'stargazer': OK
Staging Application 'stargazer': OK                                             
Starting Application 'stargazer': ..........
Error: Application [stargazer] failed to start, logs information below.

====> /logs/staging.log <====

Requirement already satisfied (use --upgrade to upgrade): pip==1.1 in ./python/lib/python2.7/site-packages/pip-1.1-py2.7.egg
Cleaning up...
Requirement already satisfied (use --upgrade to upgrade): django in /usr/lib/python2.7/dist-packages
Cleaning up...
Downloading/unpacking gunicorn
  Running setup.py egg_info for package gunicorn

Installing collected packages: gunicorn
  Running setup.py install for gunicorn

    Installing gunicorn_paster script to /tmp/d20130318-32281-1qsiluq/staged/python/bin
    Installing gunicorn script to /tmp/d20130318-32281-1qsiluq/staged/python/bin
    Installing gunicorn_django script to /tmp/d20130318-32281-1qsiluq/staged/python/bin
Successfully installed gunicorn
Cleaning up...
Downloading/unpacking Django==1.5 (from -r requirements.txt (line 1))
  Running setup.py egg_info for package Django

    warning: no previously-included files matching '__pycache__' found under directory '*'
    warning: no previously-included files matching '*.py[co]' found under directory '*'
Downloading/unpacking MySQL-python==1.2.4 (from -r requirements.txt (line 2))
  Running setup.py egg_info for package MySQL-python
    The required version of distribute (>=0.6.28) is not available,
    and can't be installed while this script is running. Please
    install a more recent version first, using
    'easy_install -U distribute'.

    (Currently using distribute 0.6.24 (/tmp/d20130318-32281-1qsiluq/staged/python/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg))
    Complete output from command python setup.py egg_info:
    The required version of distribute (>=0.6.28) is not available,

and can't be installed while this script is running. Please

install a more recent version first, using

'easy_install -U distribute'.



(Currently using distribute 0.6.24 (/tmp/d20130318-32281-1qsiluq/staged/python/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg))

----------------------------------------
Command python setup.py egg_info failed with error code 2 in /tmp/d20130318-32281-1qsiluq/staged/python/build/MySQL-python
Storing complete log in /root/.pip/pip.log
Requirement already satisfied (use --upgrade to upgrade): django in /usr/lib/python2.7/dist-packages
Cleaning up...
Requirement already satisfied (use --upgrade to upgrade): gunicorn in ./python/lib/python2.7/site-packages
Cleaning up...

谢谢大家。

最佳答案

将 MySQL-Python 要求降级到 1.2.3 似乎可以解决此问题,因为他们已经安装了该版本。

关于python - Appfog Django应用程序分发包错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15486231/

相关文章:

python - 使用基于函数的 View 更新 View

php - 我需要破解哪些配置文件才能在 appfog 上部署crete5

python - 查询集的加权平均值 - Django

python - 具有自定义模型管理器额外方法的 Django 管理过滤器列表

python - 修改后覆盖特定列 pandas python

python - 通过 pandas 数据框进行单向 Anova 循环 - 结果生成一个表

c++ - Heroku/AppFog 上的 Node.js TCP 服务器

node.js - Express 在 AppFog 上出错,但在本地则不然

python - 在Python中查找字符串中多次出现的字符串

python - sunburnt - 如何查看生成的查询 URL