[MacPorts] #53822: problem with py-beautifulsoup4 install

MacPorts noreply at macports.org
Mon Mar 20 13:28:43 UTC 2017


#53822: problem with py-beautifulsoup4 install
--------------------------------+-----------------
  Reporter:  mfacorcoran        |      Owner:
      Type:  defect             |     Status:  new
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:
Resolution:                     |   Keywords:
      Port:  py-beautifulsoup4  |
--------------------------------+-----------------
Description changed by mf2k:

Old 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>()
> ----> 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

New 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>()
 ----> 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
 }}}

--

--
Ticket URL: <https://trac.macports.org/ticket/53822#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list