Opened 8 years ago
Last modified 8 years ago
#53822 closed defect
problem with py-beautifulsoup4 install — at Initial Version
Reported by: | mfacorcoran | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | py-beautifulsoup4 |
Description
I just did a port install of
py27-beautifulsoup @4.4.1 python/py-beautifulsoup4
and I get an error when I try to import the module into ipython:
In [1]: from bs4 import BeautifulSoup
ImportError Traceback (most recent call last) <ipython-input-1-9144e80cd349> in <module>()
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bs4/init.py in <module>()
28 import warnings 29
---> 30 from .builder import builder_registry, ParserRejectedMarkup
31 from .dammit import UnicodeDammit 32 from .element import (
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bs4/builder/init.py in <module>()
309 # to take precedence over html5lib, because it's faster. And we only 310 # want to use HTMLParser as a last result.
--> 311 from . import _htmlparser
312 register_treebuilders_from(_htmlparser) 313 try:
ImportError: cannot import name _htmlparser