html5lib 中的故障?
Glitch in html5lib?
我遇到了这个错误。是bug还是代码错误?这是什么意思?
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 和请求)
这是一个与您的 html5lib 软件包版本相关的问题,请尝试升级它。
我遇到了这个错误。是bug还是代码错误?这是什么意思?
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 和请求)
这是一个与您的 html5lib 软件包版本相关的问题,请尝试升级它。