$ git clone https://github.com/hasgeek/funnel
$ cd funnel/
$ cp instance/settings-sample.py instance/settings.py
$ echo "CACHE_TYPE='simple'" >> instance/development.py
然后我安装了以下组件:烧瓶0.10.1
烧瓶资产0.7
烧瓶邮件0.6.1
烧瓶SQLAlchemy 1.0
容量瓶8.0
皮茨2012d
UnicodeSV 0.9.4版
icalendar 3.4版
wtforms-html5 0.1.3版
alembic 0.6.3版
烧瓶迁移1.2.0
烧瓶alembic 0.1
最新的软件包来自:
然后我跑了:
^{pr2}$
我得到以下输出:Traceback (most recent call last):
File "manage.py", line 5, in
from funnel import app, models, init_for
File "/home/safiyat/Desktop/PyDev/funnel/funnel-master/funnel/__init__.py", line 35, in
from . import models, forms, views
File "/home/safiyat/Desktop/PyDev/funnel/funnel-master/funnel/forms/__init__.py", line 3, in
from .comment import *
File "/home/safiyat/Desktop/PyDev/funnel/funnel-master/funnel/forms/comment.py", line 6, in
import wtforms.fields.html5
ImportError: No module named html5
我在某个地方读到,html5小部件和字段是wtforms自1.0.5以来内置的,它们应该从wtforms本身导入。虽然我安装的wtforms是1.0.2,但我仍然收到这个错误。
为什么?有什么解决办法吗?在