Opened 8 years ago
Last modified 8 years ago
#53822 closed defect
problem with py-beautifulsoup4 install — at Version 4
Reported by: | mfacorcoran | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | kurthindenburg (Kurt Hindenburg) | |
Port: | py-beautifulsoup4 |
Description (last modified by mf2k (Frank Schima))
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>() ----> 1 from bs4 import BeautifulSoup /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
Change History (4)
comment:1 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)
Cc: | kurthindenburg added |
---|---|
Port: | py-beautifulsoup added |
comment:2 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)
Port: | py-beautifulsoup4 added; py-beautifulsoup removed |
---|
comment:3 Changed 8 years ago by mf2k (Frank Schima)
comment:4 Changed 8 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|
Note: See
TracTickets for help on using
tickets.
In the future, please use WikiFormatting.