ファンネルをセットアップするために次の手順を試しました(https://github.com/hasgeek/funnel):
$ 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
- Flask-Assets 0.7
- フラスコメール 0.6.1
- Flask-SQLAlchemy 1.0
- フラスコ-WTF 0.8
- ピッツ 2012d
- ユニコーデックv 0.9.4
- カレンダー3.4
- wtforms-html5 0.1.3
- アレンビック 0.6.3
- Flask-Migrate 1.2.0
- フラスコアレンビック 0.1
そして、最新のパッケージは次のとおりです。
- https://github.com/hasgeek/coaster.git
- https://github.com/hasgeek/flask-lastuser.git
- https://github.com/hasgeek/baseframe.git
それから私は走った:
$ python manage.py db create
次の出力が得られました。
Traceback (most recent call last):
File "manage.py", line 5, in <module>
from funnel import app, models, init_for
File "/home/safiyat/Desktop/PyDev/funnel/funnel-master/funnel/__init__.py", line 35, in <module>
from . import models, forms, views
File "/home/safiyat/Desktop/PyDev/funnel/funnel-master/funnel/forms/__init__.py", line 3, in <module>
from .comment import *
File "/home/safiyat/Desktop/PyDev/funnel/funnel-master/funnel/forms/comment.py", line 6, in <module>
import wtforms.fields.html5
ImportError: No module named html5
1.0.5以降、html5ウィジェットとフィールドはwtformsに組み込まれており、wtforms自体からインポートする必要があることをどこかで読みました。インストールした wtforms は 1.0.2 ですが、それでもエラーが発生します。なんで?解決策はありますか?