运行龙卷风的问题“博客”的演示

时间:2012-05-20 12:58:28

标签: python mysql blogs tornado

当我尝试在龙卷风包中运行'博客'演示时。我遇到了以下问题:

Traceback (most recent call last):
  File "./blog.py", line 196, in <module>
    main()
  File "./blog.py", line 190, in main
    http_server = tornado.httpserver.HTTPServer(Application())
  File "./blog.py", line 63, in __init__
    user=options.mysql_user, password=options.mysql_password)
  File "/usr/local/lib/python2.7/dist-packages/tornado/database.py", line 58, in __init__
    args = dict(conv=CONVERSIONS, use_unicode=True, charset="utf8",
NameError: global name 'CONVERSIONS' is not defined

感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

首先你应该安装python-MySQLdb,然后在博客演示中阅读README