Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 705090 - =dev-python/html5-parser-0.4.5 with >=dev-python/beautifulsoup-4.8.0 - AttributeError: type object 'HTMLTreeBuilder' has no attribute 'cdata_list_attributes'
Summary: =dev-python/html5-parser-0.4.5 with >=dev-python/beautifulsoup-4.8.0 - Attrib...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-10 06:25 UTC by Slava Barinov
Modified: 2020-01-13 02:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Slava Barinov 2020-01-10 06:25:22 UTC
The following error is reported:

  File "/usr/lib64/python2.7/site-packages/html5_parser/soup.py", line 126, in parse
    bs, soup, new_tag, Comment, append, NavigableString = init_soup()
  File "/usr/lib64/python2.7/site-packages/html5_parser/soup.py", line 120, in init_soup
    init_bs4_cdata_list_attributes()
  File "/usr/lib64/python2.7/site-packages/html5_parser/soup.py", line 18, in init_bs4_cdata_list_attributes
    k: frozenset(v) for k, v in HTMLTreeBuilder.cdata_list_attributes.items()
AttributeError: type object 'HTMLTreeBuilder' has no attribute 'cdata_list_attributes'

Link to official bug: https://github.com/kovidgoyal/html5-parser/issues/20

Straight-forward dev-python/html5-parser.ebuild version bump to 0.4.8 fixes the issue.
Comment 1 Larry the Git Cow gentoo-dev 2020-01-12 01:16:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60e29d5f1bb45c09836b176a5ae25f981a6a1232

commit 60e29d5f1bb45c09836b176a5ae25f981a6a1232
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2020-01-12 01:10:58 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2020-01-12 01:15:58 +0000

    dev-python/html5-parser: Bump to version 0.4.9
    
    Reported-by: rayslava@gmail.com
    Closes: https://bugs.gentoo.org/705090
    Package-Manager: Portage-2.3.84, Repoman-2.3.20
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 dev-python/html5-parser/Manifest                  |  1 +
 dev-python/html5-parser/html5-parser-0.4.9.ebuild | 36 +++++++++++++++++++++++
 2 files changed, 37 insertions(+)
Comment 2 Larry the Git Cow gentoo-dev 2020-01-13 02:15:24 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de4a6242aaedfa7f2eb3f18eb0c2ffaee1b7e170

commit de4a6242aaedfa7f2eb3f18eb0c2ffaee1b7e170
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2020-01-13 01:43:29 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2020-01-13 02:15:12 +0000

    dev-python/html5-parser: Stabilize 0.4.9 for bug 705088
    
    Needed for compat with latest stable dev-python/beautifulsoup.
    
    Bug: https://bugs.gentoo.org/705088#c3
    Bug: https://bugs.gentoo.org/705090
    Package-Manager: Portage-2.3.84, Repoman-2.3.20
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 dev-python/html5-parser/html5-parser-0.4.9.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)