1

当我尝试在 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

谢谢你的帮助。

4

1 回答 1

0

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

于 2012-07-06T02:09:59.310 回答