🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
3 messages
3 total messages Started by Santiago Vila Fri, 30 Oct 2026 11:30
Bug#1152592: towncrier: FTBFS: importlib.metadata.PackageNotFoundError: No package metadata was found for towncrier
#2721
Author: Santiago Vila
Date: Fri, 30 Oct 2026 11:30
50 lines
3644 bytes
Package: src:towncrier
Version: 26.9.0-1
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202610/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:towncrier, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
      File "/usr/lib/python3.14/importlib/metadata/__init__.py", line 960, in distribution
        return Distribution.from_name(distribution_name)
               ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.14/importlib/metadata/__init__.py", line 409, in from_name
        raise PackageNotFoundError(name)
    importlib.metadata.PackageNotFoundError: No package metadata was found for towncrier


The full traceback has been saved in:
/tmp/sphinx-err-r5wzl7ms.log

To report this error to the developers, please open an issue at <https://github.com/sphinx-doc/sphinx/issues/>. Thanks!
Please also report this if it was a user error, so that a better error message can be provided next time.
make[2]: *** [Makefile:20: html] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/docs'
make[1]: *** [debian/rules:72: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:60: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
Bug#1152592: towncrier: FTBFS: Sphinx build fails to find ‘towncrier’ distribution metadata (importlib.metadata.PackageNotFoundE...
#3388
Author: Ben Finney
Date: Fri, 06 Nov 2026 00:10
93 lines
7199 bytes
--gU9ycbAIOUDYMG7d
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Control: summary -1 0

The Debian packaging attempts to get the current build directory path from
PyBuild, but is instead getting an invalid concatenation of two different
directory paths.

On 06-Nov-2026, Ben Finney wrote:

> The Debian build procedure does set the environment variables correctly:
>=20
> =3D=3D=3D=3D=3D
> [=E2=80=A6]
> I: pybuild pybuild:416: mv "/build/reproducible-path/towncrier-26.9.0/.py=
build/cpython3_3.14_towncrier/scripts"/* "/build/reproducible-path/towncrie=
r-26.9.0/usr/share/towncrier/bin"/.
> /usr/bin/make \
>         PYTHONPATH=3D"/build/reproducible-path/towncrier-26.9.0/.pybuild/=
cpython3_3.15_towncrier/build /build/reproducible-path/towncrier-26.9.0/.py=
build/cpython3_3.14_towncrier/build" \
>         SPHINXBUILD=3D"python3 -m sphinx" --directory "docs" \
>         html man
> [=E2=80=A6]
> =3D=3D=3D=3D=3D

The =E2=80=98PYTHONPATH=E2=80=99 variable is not set correctly; it is a con=
catenation of
two filesystem paths. This is because the =E2=80=98debian/rules=E2=80=99 ac=
tion for
=E2=80=98override_dh_auto_build=E2=80=99 uses the output from PyBuild for t=
he build
directory, which (because two Python versions are currently installed)
returns *two* directory paths.

=3D=3D=3D=3D=3D
[=E2=80=A6]
pybuild_computed_build_dir =3D $(shell \
	pybuild --print build_dir \
		| cut -d ':' -f 2 \
		| sed -e 's/^[[:space:]]*//' \
	)

[=E2=80=A6]
override_dh_auto_build: ${private_bin_dir}
[=E2=80=A6]
	dh_auto_build
	$(MAKE) \
		PYTHONPATH=3D"${pybuild_computed_build_dir}" \
		${SPHINX_MAKE_OPTS} \
		html man
[=E2=80=A6]
=3D=3D=3D=3D=3D

For some reason, `pybuild --print build_dir` is emitting not one filesystem
path for the current build system, but multiple: one for each Python
interpreter currently installed.

I do not know how to convince PyBuild to emit *only* the build directory
path for the *current* Python interpreter for which it is building.

--=20
 \        =E2=80=9CThe difference between religions and cults is determined=
 by |
  `\                      how much real estate is owned.=E2=80=9D =E2=80=94=
Frank Zappa |
_o__)                                                                  |
Ben Finney <bignose@debian.org>

--gU9ycbAIOUDYMG7d
Content-Type: application/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEXfQ3Ydd+6BMR2Ur+B+hY8vqvVjgFAmrtGZYACgkQB+hY8vqv
VjiDiw/8ChhiGhcnhP84Imguo3/QHGlqwF021HS5UQbGxB67ro2r0ORwsv2OHJYK
o8ti/+HvmZrrp+eUV0JGuHNcRbunOWgn/JTCIyebsv8Q65eiAVSRzsRlwGB0BO0G
woJJyIBDKdWZ73lMHHl5OTkmuer/OuI4zcJTR0jr4ScwjgLoTG84qIP0j4fEhrmV
LEvUj84A0gomjW8hYpMa9wb6LDwg5jBUadpRc6q5TdecC27JCeQYS9DhdLYVndcX
Uvmn60t0vVkWPB2F4Cl76RKbbG7vVOns1L4Fcs17J2GthYBbFmVpiWSh9r+8G4RC
LLDMZBIIsWlGar4lzlbGue/Xz2JTUqpk7KdCsWmOpB7VIdFNVju9IKLMuDjGBjiu
RtvB+psOYJj/Aid7IQIyRHS2ku8y8I8Cs6cQ8eFwS0qe5YGxSaC43gVNfs0PLLAt
AjLq1RAsq3pR6oV9YVS4Aeo6Hga0jf9yNAdP96yIUD7vL19wX/+G7o5rT/Q4aced
aJe3ZEduB4ZGWhrcs4jDVOuPeS1P4eDbshx5Pp73mCby7KVyLAqu/IJwYI8V7lBa
99SYp6BduHXKMqIsSHhoAjPNk5Vrtb+SDNCF81pZiJhUvnBj7/wy0XsulPwbRD7k
PsbAo9SrUrt48fi/906+SbORp+Fhqn5ihQCBLAbXG5lOgSH9oN8=
=tvG2
-----END PGP SIGNATURE-----

--gU9ycbAIOUDYMG7d--
Bug#1152592: towncrier: FTBFS: Sphinx build fails to find ‘towncrier’ distribution metadata (importlib.metadata.PackageNotFoundE...
#3389
Author: Santiago Vila
Date: Fri, 06 Nov 2026 00:50
22 lines
2665 bytes
On Fri, Nov 06, 2026 at 10:31:34AM +1100, Ben Finney wrote:

> =====
> 
> but the ‘importlib.metadata.version("towncrier")’ fails with the error
> reported:
> 
> =====
> importlib.metadata.PackageNotFoundError: No package metadata was found for towncrier
> =====

Hmm, I remember a similar error in python-configargparse version 1.9.0-1
which I managed to fix by adding two additional changes:

  * Add pybuild-plugin-pyproject to Build-Depends.
  * Add a pyproject.toml file.

See salsa for details, maybe the same trick works for you.
(Try building python-configargparse *without* those two last-minute changes,
this is related to python3.15, I think).

Thanks.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads