课程生成器1.5.1“重要错误:没有名为html5lib的模块”

2024-10-01 09:37:48 发布

您现在位置:Python中文网/ 问答频道 /正文

我刚把我的coursebuilder课程升级到coursebuilder版本1.5.1。我遇到了一个html5lib不工作的问题。有没有人处理过这个问题或者知道如何避开它?我注意到,当我下载coursebuilder演示应用程序时,它也遇到了同样的问题。下面是我遇到的stacktrace。在

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

Tags: inpyimportwsgigooglelinecontentsfile
1条回答
网友
1楼 · 发布于 2024-10-01 09:37:48

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

相关问题 更多 >