首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >html5lib中的毛刺?

html5lib中的毛刺?
EN

Stack Overflow用户
提问于 2020-12-17 22:50:02
回答 1查看 41关注 0票数 0

我得到了这个错误。是bug还是代码错误?什么意思?

代码语言:javascript
复制
Traceback (most recent call last):
  File "isc.py", line 8, in <module>
    import requests, os, sys, bs4
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/bs4/__init__.py", line 30, in <module>
    from .builder import builder_registry, ParserRejectedMarkup
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/bs4/builder/__init__.py", line 314, in <module>
    from . import _html5lib
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/bs4/builder/_html5lib.py", line 70, in <module>
    class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):
AttributeError: module 'html5lib.treebuilders' has no attribute '_base'

(我升级了html5lib bs4和requests)

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-12-17 22:59:30

这是一个与您的html5lib包版本相关的问题,请尝试升级它。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65342977

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档