Heroku:尽管在Requirements.txt中没有名为flask的模块
问题描述:
有人可以在Heroku上解决此错误吗?
Can anyone help with this error on Heroku?
2015-01-12T22:26:00.575669+00:00 heroku[web.1]: Starting process with command `python hangman.py`
2015-01-12T22:26:01.066240+00:00 app[web.1]: Traceback (most recent call last):
2015-01-12T22:26:01.066256+00:00 app[web.1]: File "hangman.py", line 3, in <module>
2015-01-12T22:26:01.066262+00:00 app[web.1]: from flask import (
2015-01-12T22:26:01.066268+00:00 app[web.1]: ImportError: No module named flask
2015-01-12T22:26:01.742444+00:00 heroku[web.1]: Process exited with status 1
2015-01-12T22:26:01.751614+00:00 heroku[web.1]: State changed from starting to crashed
我的git仓库是此处: https://github.com/PJBentham/Hangman
My git repo is here: https://github.com/PJBentham/Hangman
我认为就设置而言,我已完成了所有正确的操作,但是我仍然遇到上述错误,无法弄清原因?
I believe I have done everything correct as far as set up is concerned but I'm still getting the above error and can't figure out why?
答
您必须显示最后一个或拉出 traceback
进行进一步调试...!您git repo工作得很好。
You have to show the last or pull traceback
to debug further ...! You git repo working perfectly fine.
您的回溯段中没有$ $ c>烧瓶,请检查您的应用是否装有烧瓶,或者是否未使用 heroku运行pip冻结
From your traceback snippet flask
is not there. Check if your app environ having flask or not using heroku run pip freeze