WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
262184
`generate-bundle` fails at installing `toml`
https://bugs.webkit.org/show_bug.cgi?id=262184
Summary
`generate-bundle` fails at installing `toml`
Vitaly Dyackhov
Reported
2023-09-27 06:58:10 PDT
generate-bundle --help Downloading wheel-0.35.1... Installing wheel-0.35.1... Installed wheel-0.35.1! Downloading packaging-21.3.0... Installing packaging-21.3.0... Installed packaging-21.3.0! Downloading setuptools-56.0.0... Installing setuptools-56.0.0... Installed setuptools-56.0.0! Downloading tomli-2.0.1... Installed tomli-2.0.1! Downloading setuptools-scm-6.4.2... Installing setuptools-scm-6.4.2... Installed setuptools-scm-6.4.2! Downloading toml-0.10.1... Installing toml-0.10.1... Traceback (most recent call last): File "/tmp/toml-221664/toml-0.10.1/setup.py", line 11, in <module> setup( File "/home/vitaly/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/vitaly/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/setuptools/_distutils/core.py", line 108, in setup _setup_distribution = dist = klass(attrs) ^^^^^^^^^^^^ File "/home/vitaly/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/setuptools/dist.py", line 434, in __init__ _Distribution.__init__(self, { File "/home/vitaly/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/setuptools/_distutils/dist.py", line 293, in __init__ self.finalize_options() File "/home/vitaly/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/setuptools/dist.py", line 742, in finalize_options for ep in sorted(eps, key=by_order): ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/vitaly/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/setuptools/dist.py", line 741, in <lambda> eps = map(lambda e: e.load(), pkg_resources.iter_entry_points(group)) ^^^^^^^^ File "/home/vitaly/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/pkg_resources/__init__.py", line 2449, in load self.require(*args, **kwargs) File "/home/vitaly/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/pkg_resources/__init__.py", line 2472, in require items = working_set.resolve(reqs, env, installer, extras=self.extras) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/vitaly/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/pkg_resources/__init__.py", line 772, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'pyparsing!=3.0.5,>=2.0.2' distribution was not found and is required by packaging Failed to install toml-0.10.1! Traceback (most recent call last): File "/home/vitaly/Projects/WebKit/Tools/Scripts/generate-bundle", line 44, in <module> import flatpakutils File "/home/vitaly/Projects/WebKit/Tools/flatpak/flatpakutils.py", line 44, in <module> import toml File "<frozen importlib._bootstrap>", line 1176, in _find_and_load File "<frozen importlib._bootstrap>", line 1138, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1078, in _find_spec File "/home/vitaly/Projects/WebKit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py", line 650, in find_spec loader = cls.find_module(fullname, path=path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/vitaly/Projects/WebKit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py", line 664, in find_module cls.install(name) File "/home/vitaly/Projects/WebKit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py", line 637, in install return all([to_install.install() for to_install in packages]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/vitaly/Projects/WebKit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py", line 637, in <listcomp> return all([to_install.install() for to_install in packages]) ^^^^^^^^^^^^^^^^^^^^ File "/home/vitaly/Projects/WebKit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py", line 341, in install subprocess.check_call( File "/usr/lib/python3.11/subprocess.py", line 413, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/usr/bin/python3', '/tmp/toml-221664/toml-0.10.1/setup.py', 'install', '--home=/home/vitaly/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64', '--root=/', '--prefix=', '--install-lib=/home/vitaly/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64', '--install-scripts=/home/vitaly/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/bin', '--install-data=/home/vitaly/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/data', '--install-headers=/home/vitaly/Projects/WebKit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/headers']' returned non-zero exit status 1.
Attachments
Add attachment
proposed patch, testcase, etc.
Vitaly Dyackhov
Comment 1
2023-09-27 06:58:22 PDT
To reproduce the issue one must first wipe out `Tools/Scripts/libraries/autoinstalled` directory.
Vitaly Dyackhov
Comment 2
2023-09-27 07:01:53 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/18279
EWS
Comment 3
2023-09-27 16:57:19 PDT
Committed
268547@main
(3a33119682b7): <
https://commits.webkit.org/268547@main
> Reviewed commits have been landed. Closing PR #18279 and removing active labels.
Radar WebKit Bug Importer
Comment 4
2023-09-27 16:58:15 PDT
<
rdar://problem/116149418
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug