我正在从http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-iv-database做一个Flask教程,我遇到了一个奇怪的错误:
Traceback (most recent call last):
File "./db_create.py", line 9, in <module>
db.create_all()
File "/Users/mateusz/microblog/flask/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 895, in create_all
self._execute_for_all_tables(app, bind, 'create_all')
File "/Users/mateusz/microblog/flask/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 887, in _execute_for_all_tables
op(bind=self.get_engine(app, bind), **extra)
File "/Users/mateusz/microblog/flask/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 833, in get_engine
return connector.get_engine()
File "/Users/mateusz/microblog/flask/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 499, in get_engine
self._engine = rv = sqlalchemy.create_engine(info, **options)
File "/Users/mateusz/microblog/flask/lib/python2.7/site-packages/sqlalchemy/engine/__init__.py", line 362, in create_engine
return strategy.create(*args, **kwargs)
File "/Users/mateusz/microblog/flask/lib/python2.7/site-packages/sqlalchemy/engine/strategies.py", line 51, in create
dialect_cls = u.get_dialect()
File "/Users/mateusz/microblog/flask/lib/python2.7/site-packages/sqlalchemy/engine/url.py", line 129, in get_dialect
cls = registry.load(name)
File "/Users/mateusz/microblog/flask/lib/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 194, in load
(self.group, name))
sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:sqllite
我已经尝试使用谷歌搜索,但似乎没有人发布过这个(这怎么可能?)。无论如何,我不确定下一步该做什么...我已经尝试更新所有的pip模块,但这没有帮助。
以下是我在此virtualenv中安装的模块列表:
Babel==1.3
Flask==0.10.1
Flask-Babel==0.9
Flask-Login==0.2.11
Flask-Mail==0.9.1
Flask-OpenID==1.2.3
Flask-SQLAlchemy==2.0
Flask-WTF==0.10.2
Flask-WhooshAlchemy==0.56
Jinja2==2.7.3
MarkupSafe==0.23
SQLAlchemy==0.9.8
Tempita==0.5.2
WTForms==2.0.1
Werkzeug==0.9.6
Whoosh==2.6.0
blinker==1.3
coverage==3.7.1
decorator==3.4.0
flipflop==1.0
guess-language==0.2
itsdangerous==0.24
pbr==0.10.0
python-openid==2.2.5
pytz==2014.7
six==1.8.0
speaklater==1.3
sqlalchemy-migrate==0.9.2
sqlparse==0.1.13
wsgiref==0.1.2
提前感谢您的帮助。
答案 0 :(得分:12)
Sqlite只有一个'L'。希望这是唯一的问题!