$ py -2 handler.py
Traceback (most recent call last):
File "handler.py", line 10, in
from bs4 import BeautifulSoup
File "C:\Python27\lib\site-packages\bs4__init__.py", line 30, in
from .builder import builder_registry, ParserRejectedMarkup
File "C:\Python27\lib\site-packages\bs4\builder__init__.py", line 314, in
from . import _html5lib
File "C:\Python27\lib\site-packages\bs4\builder_html5lib.py", line 70, in
class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):
AttributeError: 'module' object has no attribute '_base'
Any help?
$ py -2 handler.py Traceback (most recent call last): File "handler.py", line 10, in
from bs4 import BeautifulSoup
File "C:\Python27\lib\site-packages\bs4__init__.py", line 30, in
from .builder import builder_registry, ParserRejectedMarkup
File "C:\Python27\lib\site-packages\bs4\builder__init__.py", line 314, in
from . import _html5lib
File "C:\Python27\lib\site-packages\bs4\builder_html5lib.py", line 70, in
class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):
AttributeError: 'module' object has no attribute '_base'