Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 652656 - dev-util/electron-1.6.16 depend on =dev-python/html5lib-0.9999999
Summary: dev-util/electron-1.6.16 depend on =dev-python/html5lib-0.9999999
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Elvis Pranskevichus
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-06 05:57 UTC by Marco Genasci
Modified: 2018-04-09 07:05 UTC (History)
2 users (show)

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 Marco Genasci 2018-04-06 05:57:23 UTC
electron fails to build with dev-python/html5lib version >0.9999999

python ../../third_party/catapult/tracing/bin/generate_about_tracing_contents --outdir gen/content/browser/tracing
Traceback (most recent call last):
  File "../../third_party/catapult/tracing/bin/generate_about_tracing_contents", line 13, in <module>
    from tracing_build import generate_about_tracing_contents
  File "/var/tmp/portage/dev-util/electron-1.6.16/work/electron-1.6.16/chromium/third_party/catapult/tracing/tracing_build/generate_about_tracing_contents.py", line 10, in <module>
    import py_vulcanize
  File "/var/tmp/portage/dev-util/electron-1.6.16/work/electron-1.6.16/chromium/third_party/catapult/third_party/py_vulcanize/py_vulcanize/__init__.py", line 11, in <module>
    from py_vulcanize.project import Project
  File "/var/tmp/portage/dev-util/electron-1.6.16/work/electron-1.6.16/chromium/third_party/catapult/third_party/py_vulcanize/py_vulcanize/project.py", line 9, in <module>
    from py_vulcanize import resource_loader
  File "/var/tmp/portage/dev-util/electron-1.6.16/work/electron-1.6.16/chromium/third_party/catapult/third_party/py_vulcanize/py_vulcanize/resource_loader.py", line 13, in <module>
    from py_vulcanize import html_module
  File "/var/tmp/portage/dev-util/electron-1.6.16/work/electron-1.6.16/chromium/third_party/catapult/third_party/py_vulcanize/py_vulcanize/html_module.py", line 10, in <module>
    from py_vulcanize import parse_html_deps
  File "/var/tmp/portage/dev-util/electron-1.6.16/work/electron-1.6.16/chromium/third_party/catapult/third_party/py_vulcanize/py_vulcanize/parse_html_deps.py", line 33, in <module>
    import bs4
  File "/usr/lib64/python2.7/site-packages/bs4/__init__.py", line 30, in <module>
    from .builder import builder_registry, ParserRejectedMarkup
  File "/usr/lib64/python2.7/site-packages/bs4/builder/__init__.py", line 314, in <module>
    from . import _html5lib
  File "/usr/lib64/python2.7/site-packages/bs4/builder/_html5lib.py", line 70, in <module>
    class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):
AttributeError: 'module' object has no attribute '_base'

References:
https://forums.gentoo.org/viewtopic-t-1077842.html
https://github.com/html5lib/html5lib-python/commit/7bbde541e08ca82c07af5ac7e5f64525f1793814

Reproducible: Always
Comment 1 Jonas Stein gentoo-dev 2018-04-06 23:44:41 UTC
Thank you for the report. Please recompile and *attach* the logfiles and 
paste the emerge info as described on
https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
Please reopen this ticket (Status:unconfirmed) afterwards.
Comment 2 Elvis Pranskevichus 2018-04-07 00:08:59 UTC
Judging by the traceback, this is a beautifulsoup/html5lib dependency issue:

> import bs4

Make sure you have the beautifulsoup package properly updated.
Comment 3 Elvis Pranskevichus 2018-04-07 00:27:56 UTC
FWIW, I just successfully compiled electron-1.6.16 with beautifulsoup-4.6.0 and html5lib-1.0.1, so this is definitely not an ebuild issue.
Comment 4 Marco Genasci 2018-04-09 07:05:31 UTC
(In reply to Jonas Stein from comment #1)
> Thank you for the report. Please recompile and *attach* the logfiles and 
> paste the emerge info as described on
> https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
> Please reopen this ticket (Status:unconfirmed) afterwards.

Sorry, I only reported the problem that happened to a user in the forum.

@Elvis Pranskevichus: probably your supposition is correct, but at this point is dev-python/beautifulsoup-4.6.0 that should depend on >=dev-python/html5lib-0.999999999, because in a stable system if I unmask beautifulsoup there is a problem