Opened 8 months ago
Closed 8 months ago
#22814 closed defect (fixed)
html5lib-1.1 FBTFS with setuptools-82.0.0
| Reported by: | Douglas R. Reno | Owned by: | Douglas R. Reno |
|---|---|---|---|
| Priority: | normal | Milestone: | 13.0 |
| Component: | BOOK | Version: | git |
| Severity: | medium | Keywords: | |
| Cc: |
Description
While building html5lib for tagging, I got a build failure:
renodr [ /sources/html5lib-1.1 ]$ pip3 wheel -w dist --no-build-isolation --no-deps --no-cache-dir $PWD
Processing /sources/html5lib-1.1
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
Traceback (most recent call last):
File "/usr/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
main()
~~~~^^
File "/usr/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 175, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "/usr/lib/python3.14/site-packages/setuptools/build_meta.py", line 380, in prepare_metadata_for_build_wheel
self.run_setup()
~~~~~~~~~~~~~~^^
File "/usr/lib/python3.14/site-packages/setuptools/build_meta.py", line 520, in run_setup
super().run_setup(setup_script=setup_script)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/site-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "<string>", line 9, in <module>
ModuleNotFoundError: No module named 'pkg_resources'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> from file:///sources/html5lib-1.1
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
The underlying issue is due to the removal of the pkg_resources module from setuptools-82.0.0.
Change History (3)
comment:1 by , 8 months ago
| Milestone: | 13.1 → 13.0 |
|---|---|
| Owner: | changed from to |
| Status: | new → assigned |
comment:2 by , 8 months ago
comment:3 by , 8 months ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.

I was able to get this building with the following seds:
This is loosely based on https://github.com/html5lib/html5lib-python/pull/592, but ignoring the try/except statements and using the packaging module instead of calling internal setuptools functions.