Hi,
Great tool. I am using Thonny in a classroom environment.
When starting with a fresh installation of Thonny, my simple BeautifulSoup program runs.
After Jupyter notebook server via pip from a Thonny shell, BeautifulSoup now appears broken. Fails on the import I get the following error:
Traceback (most recent call last):
File "/Users/michael/Desktop/data/simple_bs4.py", line 2, in <module>
from bs4 import BeautifulSoup
File "/Applications/Thonny.app/Contents/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/bs4/__init__.py", line 30, in <module>
from .builder import builder_registry, ParserRejectedMarkup
File "/Applications/Thonny.app/Contents/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/bs4/builder/__init__.py", line 314, in <module>
from . import _html5lib
File "/Applications/Thonny.app/Contents/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/bs4/builder/_html5lib.py", line 70, in <module>
class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):
AttributeError: module 'html5lib.treebuilders' has no attribute '_base'
If I uninstall, jupyter, bs4 is still broken.
Only solution is start with a fresh Thonny install.
Any ideas how to fix?
Regards,
Michael.
--