Opened 7 years ago

Closed 7 years ago

#53822 closed defect (fixed)

problem with py-beautifulsoup4 install

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

comment:1 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)

Cc: kurthindenburg added
Port: py-beautifulsoup added

comment:2 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)

Port: py-beautifulsoup4 added; py-beautifulsoup removed

comment:3 Changed 7 years ago by mf2k (Frank Schima)

In the future, please use WikiFormatting.

comment:4 Changed 7 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:5 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)

In a42cce98/macports-ports:

py-beautifulsoup4: update to 4.5.3

enable tests for py27 - uses new depends_test

see #53822

comment:6 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)

Can you update and let us know if that fixed your issue?

comment:7 in reply to:  6 Changed 7 years ago by mfacorcoran

Replying to kurthindenburg:

Can you update and let us know if that fixed your issue?

that fixed it thanks

comment:8 Changed 7 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: newclosed

I confirm this too.

Note: See TracTickets for help on using tickets.