我有一个工作的 Django 应用程序,但是当我尝试在 Heroku 上部署它时,我收到了这个错误:
异常类型:ImportError 异常值:
没有名为 yaml 的模块
ImportError at /crunchApp/contact
No module named yaml
Request Method: GET
Request URL: http://desolate-citadel-5832.herokuapp.com/crunchApp/contact
Django Version: 1.4.1
Exception Type: ImportError
Exception Value: No module named yaml
Exception Location: /app/crunchApp/Crunch.py in <module>, line 10
Python Executable: /app/.heroku/venv/bin/python
Python Version: 2.7.2
Python Path:
['/app',
'/app/.heroku/venv/lib/python2.7/site-packages/distribute-0.6.27-py2.7.egg',
'/app/.heroku/venv/lib/python2.7/site-packages/pip-1.1-py2.7.egg',
'/app',
'/app/.heroku/venv/lib/python27.zip',
'/app/.heroku/venv/lib/python2.7',
'/app/.heroku/venv/lib/python2.7/plat-linux2',
'/app/.heroku/venv/lib/python2.7/lib-tk',
'/app/.heroku/venv/lib/python2.7/lib-old',
'/app/.heroku/venv/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7',
'/usr/local/lib/python2.7/plat-linux2',
'/usr/local/lib/python2.7/lib-tk',
'/app/.heroku/venv/lib/python2.7/site-packages']
Server time: Sat, 22 Sep 2012 20:35:34 -0700
我不确定我需要更新什么,因为崩溃的行只是这样说:
import yaml
谢谢您的帮助!!