Quantcast

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

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

MacPorts
#53822: problem with py-beautifulsoup4 install
-------------------------+-----------------
 Reporter:  mfacorcoran  |      Owner:
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:
 Keywords:               |       Port:
-------------------------+-----------------
 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>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

MacPorts
#53822: problem with py-beautifulsoup4 install
-------------------------------+-----------------
  Reporter:  mfacorcoran       |      Owner:
      Type:  defect            |     Status:  new
  Priority:  Normal            |  Milestone:
 Component:  ports             |    Version:
Resolution:                    |   Keywords:
      Port:  py-beautifulsoup  |
-------------------------------+-----------------
Changes (by kurthindenburg):

 * cc: kurthindenburg (added)
 * port:   => py-beautifulsoup


--
Ticket URL: <https://trac.macports.org/ticket/53822#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

MacPorts
In reply to this post by MacPorts
#53822: problem with py-beautifulsoup4 install
--------------------------------+-----------------
  Reporter:  mfacorcoran        |      Owner:
      Type:  defect             |     Status:  new
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:
Resolution:                     |   Keywords:
      Port:  py-beautifulsoup4  |
--------------------------------+-----------------
Changes (by kurthindenburg):

 * port:  py-beautifulsoup => py-beautifulsoup4


--
Ticket URL: <https://trac.macports.org/ticket/53822#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

MacPorts
In reply to this post by MacPorts
#53822: problem with py-beautifulsoup4 install
--------------------------------+-----------------
  Reporter:  mfacorcoran        |      Owner:
      Type:  defect             |     Status:  new
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:
Resolution:                     |   Keywords:
      Port:  py-beautifulsoup4  |
--------------------------------+-----------------

Comment (by mf2k):

 In the future, please use WikiFormatting.

--
Ticket URL: <https://trac.macports.org/ticket/53822#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

MacPorts
In reply to this post by MacPorts
#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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

MacPorts
In reply to this post by MacPorts
#53822: problem with py-beautifulsoup4 install
--------------------------------+-----------------
  Reporter:  mfacorcoran        |      Owner:
      Type:  defect             |     Status:  new
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:
Resolution:                     |   Keywords:
      Port:  py-beautifulsoup4  |
--------------------------------+-----------------

Comment (by kurthindenburg):

 In [changeset:"a42cce981cb4b3bf0793cc1f84b2a340f0616b3a/macports-ports"
 a42cce98/macports-ports]:
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="a42cce981cb4b3bf0793cc1f84b2a340f0616b3a"
 py-beautifulsoup4: update to 4.5.3

 enable tests for py27 - uses new depends_test

 see https://trac.macports.org/ticket/53822
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/53822#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

MacPorts
In reply to this post by MacPorts
#53822: problem with py-beautifulsoup4 install
--------------------------------+-----------------
  Reporter:  mfacorcoran        |      Owner:
      Type:  defect             |     Status:  new
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:
Resolution:                     |   Keywords:
      Port:  py-beautifulsoup4  |
--------------------------------+-----------------

Comment (by kurthindenburg):

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

--
Ticket URL: <https://trac.macports.org/ticket/53822#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

MacPorts
In reply to this post by MacPorts
#53822: problem with py-beautifulsoup4 install
--------------------------------+-----------------
  Reporter:  mfacorcoran        |      Owner:
      Type:  defect             |     Status:  new
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:
Resolution:                     |   Keywords:
      Port:  py-beautifulsoup4  |
--------------------------------+-----------------

Comment (by mfacorcoran):

 Replying to [comment:6 kurthindenburg]:
 > Can you update and let us know if that fixed your issue?

 that fixed it thanks

--
Ticket URL: <https://trac.macports.org/ticket/53822#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

MacPorts
In reply to this post by MacPorts
#53822: problem with py-beautifulsoup4 install
--------------------------------+--------------------
  Reporter:  mfacorcoran        |      Owner:
      Type:  defect             |     Status:  closed
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:
Resolution:  fixed              |   Keywords:
      Port:  py-beautifulsoup4  |
--------------------------------+--------------------
Changes (by mf2k):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 I confirm this too.

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