1

我刚刚将我的 coursebuilder 课程升级到 Course builder 1.5.1 版。我遇到了 html5lib 不起作用的问题。有没有人处理过这个或知道如何解决它?我注意到,当我下载 course-builder 演示应用程序时,它也遇到了同样的问题。下面是我遇到的堆栈跟踪。

Traceback (most recent call last):
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py", line 196, in Handle
    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py", line 255, in _LoadHandler
    handler = __import__(path[0])
  File "/Users/r351574nc3/projects/git/kfs-training/main.py", line 25, in <module>
    from common import tags
  File "/Users/r351574nc3/projects/git/kfs-training/common/tags.py", line 30, in <module>
    import html5lib
ImportError: No module named html5lib
4

1 回答 1

0

我想出了答案。问题是我使用的 html5lib-0.95.zip 中有一个名为 html5lib-0.95 的目录。我认为 coursebuilder 要求所有文件都在 zip 的根路径中。重新创建拉链为我解决了这个问题。

于 2013-09-02T03:17:25.873 回答