![](/img/trans.png)
[英]py2exe: how to generate .exe for application with GUI in Python
[英]BeautifulSoup4 Error in GUI Application Py2EXE
我已经建立了一个使用BeautifulSoup4的GUI应用程序。 经过反复尝试并最终将其打开,该应用程序无法正常工作,并在我关闭该应用程序时抛出一个信息框,要求检查日志。 日志显示的内容如下:
Traceback (most recent call last):
File "main.py", line 16, in newessay
File "essay.pyc", line 10, in __init__
File "essay.pyc", line 36, in buildDocument
File "bs4\element.pyc", line 935, in __getattr__
File "bs4\element.pyc", line 1146, in find
File "bs4\element.pyc", line 1167, in find_all
File "bs4\element.pyc", line 495, in _find_all
File "bs4\element.pyc", line 1185, in descendants
AttributeError: 'NoneType' object has no attribute 'next_element'
您知道为什么会这样吗? 库中包含BeautifulSoup4,因为我解压缩了.egg。 那会导致它吗?
它可能是在BeautifulSoap4启动板上描述的html5lib错误:
html5lib树构建器有时会创建没有next_element的标签
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.