Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 812689 - www-client/chromium-94.0.4606.41 needs third_party/catapult/third_party/webencodings-0.5.1
Summary: www-client/chromium-94.0.4606.41 needs third_party/catapult/third_party/weben...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-11 19:11 UTC by Alex Xu (Hello71)
Modified: 2021-09-14 16:50 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 Alex Xu (Hello71) 2021-09-11 19:11:27 UTC
FAILED: gen/content/browser/tracing/about_tracing.js gen/content/browser/tracing/about_tracing.html
python3.9 ../../third_party/catapult/tracing/bin/generate_about_tracing_contents --outdir gen/content/browser/tracing
Traceback (most recent call last):
  File "/tmp/portage/www-client/chromium-94.0.4606.41/work/chromium-94.0.4606.41/third_party/catapult/common/py_vulcanize/py_vulcanize/html_module.py", line 28, in Parse
    parser_results = parse_html_deps.HTMLModuleParser().Parse(self.contents)
  File "/tmp/portage/www-client/chromium-94.0.4606.41/work/chromium-94.0.4606.41/third_party/catapult/common/py_vulcanize/py_vulcanize/parse_html_deps.py", line 304, in Parse
    return HTMLModuleParserResults(html)
  File "/tmp/portage/www-client/chromium-94.0.4606.41/work/chromium-94.0.4606.41/third_party/catapult/common/py_vulcanize/py_vulcanize/parse_html_deps.py", line 170, in __init__
    self._soup = bs4.BeautifulSoup(html, 'html5lib')
  File "/tmp/portage/www-client/chromium-94.0.4606.41/work/chromium-94.0.4606.41/third_party/catapult/third_party/beautifulsoup4-4.9.3/py3k/bs4/__init__.py", line 243, in __init__
    raise FeatureNotFound(
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: html5lib. Do you need to install a parser library?

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/portage/www-client/chromium-94.0.4606.41/work/chromium-94.0.4606.41/out/Release/../../third_party/catapult/tracing/bin/generate_about_tracing_contents", line 14, in <module>
    sys.exit(generate_about_tracing_contents.Main(sys.argv[1:]))
  File "/tmp/portage/www-client/chromium-94.0.4606.41/work/chromium-94.0.4606.41/third_party/catapult/tracing/tracing_build/generate_about_tracing_contents.py", line 32, in Main
    load_sequence = vulcanizer.CalcLoadSequenceForModuleNames(names)
  File "/tmp/portage/www-client/chromium-94.0.4606.41/work/chromium-94.0.4606.41/third_party/catapult/common/py_vulcanize/py_vulcanize/project.py", line 146, in CalcLoadSequenceForModuleNames
    modules = [self.loader.LoadModule(module_name=name,
  File "/tmp/portage/www-client/chromium-94.0.4606.41/work/chromium-94.0.4606.41/third_party/catapult/common/py_vulcanize/py_vulcanize/project.py", line 146, in <listcomp>
    modules = [self.loader.LoadModule(module_name=name,
  File "/tmp/portage/www-client/chromium-94.0.4606.41/work/chromium-94.0.4606.41/third_party/catapult/common/py_vulcanize/py_vulcanize/resource_loader.py", line 149, in LoadModule
    m.Parse(excluded_scripts)
  File "/tmp/portage/www-client/chromium-94.0.4606.41/work/chromium-94.0.4606.41/third_party/catapult/common/py_vulcanize/py_vulcanize/html_module.py", line 30, in Parse
    raise Exception('While parsing %s: %s' % (self.name, str(ex)))
Exception: While parsing tracing.ui.extras.about_tracing.about_tracing: Couldn't find a tree builder with the features you requested: html5lib. Do you need to install a parser library?
Comment 1 Stephan Hartmann (RETIRED) gentoo-dev 2021-09-11 20:36:31 UTC
Do you have set PYTHONPATH somewhere? Full build.log and emerge --info would be helpful too.
Comment 2 Alex Xu (Hello71) 2021-09-12 14:03:13 UTC
hm, you are right, this is odd. i thought this is new in .41 but looks like catapult had no changes between .31 (which built fine) and .41. i also tried ebuild configure and manual ninja gen/content/browser/tracing/about_tracing.js gen/content/browser/tracing/about_tracing.html which is ok. seems like third_party/catapult/third_party/webencodings-0.5.1/webencodings exists but as empty directory, which is enough to successfully import?

i don't really want to rebuild chromium again, so i'll assume it was some random bitflip. it could also be related to FEATURES=keepwork but not sure how.
Comment 3 Stephan Hartmann (RETIRED) gentoo-dev 2021-09-12 15:23:16 UTC
Reopening. We had something like this already in bug #789021. With transition to Python 3 I dropped setting PYTHONPATH. Need to override PYTHONPATH again, because we only use setuptools from system. Anything else is bundled.
Comment 4 Larry the Git Cow gentoo-dev 2021-09-14 16:50:35 UTC
The bug has been closed via the following commit(s):

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

commit bd95389a13d2c51f12f6b09115543962a00ac58e
Author:     Stephan Hartmann <sultan@gentoo.org>
AuthorDate: 2021-09-14 16:49:27 +0000
Commit:     Stephan Hartmann <sultan@gentoo.org>
CommitDate: 2021-09-14 16:50:07 +0000

    www-client/chromium: don't inherit PYTHONPATH from environment
    
    Closes: https://bugs.gentoo.org/812689
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Stephan Hartmann <sultan@gentoo.org>

 www-client/chromium/chromium-93.0.4577.63.ebuild | 3 +++
 www-client/chromium/chromium-93.0.4577.82.ebuild | 3 +++
 www-client/chromium/chromium-94.0.4606.41.ebuild | 3 +++
 www-client/chromium/chromium-95.0.4636.4.ebuild  | 3 +++
 4 files changed, 12 insertions(+)