#1143364 python-bcrypt: FTBFS: error: failed to select a version for the requirement `bcrypt = "^0.15"`

#1143364#5
Date:
2026-08-01 22:37:33 UTC
From:
To:
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/202608/

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:python-bcrypt, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
	pybuild --clean -i python{version} -p "3.13 3.14" --parallel=2
	rm -rf .pybuild/
	find . -name \*.pyc -exec rm {} \;
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
	rm -f debian/debhelper-build-stamp
	rm -rf debian/.debhelper/
	rm -f -- debian/python3-bcrypt.substvars debian/files
	rm -fr -- debian/python3-bcrypt/ debian/tmp/
	find .  \( \( \
		\( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS -o -path .\*/.pc -o -path .\*/_darcs \) -prune -o -type f -a \
	        \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
		 -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
		 -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
		 -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
		\) -exec rm -f {} + \) -o \
		\( -type d -a \( -name autom4te.cache -o -name __pycache__ \) -prune -exec rm -rf {} + \) \)
 debian/rules binary
dh binary --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   debian/rules execute_before_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
/usr/share/cargo/bin/cargo prepare-debian debian/cargo_registry --link-from-system
debian cargo wrapper: options = ['parallel=2'], profiles = [], parallel = ['-j2'], lto =
debian cargo wrapper: rust_type = x86_64-unknown-linux-gnu, gnu_type = x86_64-linux-gnu
debian cargo wrapper: linking /usr/share/cargo/registry/* into /<<PKGBUILDDIR>>/debian/cargo_registry/
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_configure -O--buildsystem=pybuild
	pybuild --configure -i python{version} -p "3.13 3.14" --parallel=2
   dh_auto_build -O--buildsystem=pybuild
	pybuild --build -i python{version} -p "3.13 3.14" --parallel=2
I: pybuild plugin_pyproject:142: Building wheel for python3.13 with "build" module
I: pybuild base:385: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_bcrypt
* Building wheel...
/usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
!!

        ********************************************************************************
        Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).

        This deprecation is overdue, please update your project and remove deprecated
        calls to avoid build errors in the future.

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!
  corresp(dist, value, root_dir)
/usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        ********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX license expression:

        License :: OSI Approved :: Apache Software License

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!
  dist._finalize_license_expression()
/usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        ********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX license expression:

        License :: OSI Approved :: Apache Software License

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!
  self._finalize_license_expression()
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-cpython-313/bcrypt
copying src/bcrypt/__init__.py -> build/lib.linux-x86_64-cpython-313/bcrypt
running egg_info
creating src/bcrypt.egg-info
writing src/bcrypt.egg-info/PKG-INFO
writing dependency_links to src/bcrypt.egg-info/dependency_links.txt
writing requirements to src/bcrypt.egg-info/requires.txt
writing top-level names to src/bcrypt.egg-info/top_level.txt
writing manifest file 'src/bcrypt.egg-info/SOURCES.txt'
reading manifest file 'src/bcrypt.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'Cargo.lock' under directory 'src/_bcrypt'
warning: no previously-included files found matching 'requirements.txt'
warning: no previously-included files found matching 'release.py'
warning: no previously-included files found matching 'mypy.ini'
warning: no previously-included files matching '*' found under directory '.github'
warning: no previously-included files found matching 'src/_bcrypt/target'
warning: no previously-included files matching '*' found under directory 'src/_bcrypt/target'
adding license file 'LICENSE'
writing manifest file 'src/bcrypt.egg-info/SOURCES.txt'
copying src/bcrypt/__init__.pyi -> build/lib.linux-x86_64-cpython-313/bcrypt
copying src/bcrypt/py.typed -> build/lib.linux-x86_64-cpython-313/bcrypt
running build_ext
running build_rust
debian cargo wrapper: options = ['parallel=2'], profiles = [], parallel = ['-j2'], lto =
debian cargo wrapper: rust_type = x86_64-unknown-linux-gnu, gnu_type = x86_64-linux-gnu
debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', '/usr/bin/cargo', 'metadata', '--manifest-path', 'src/_bcrypt/Cargo.toml', '--format-version', '1'],) {}
error: failed to select a version for the requirement `bcrypt = "^0.15"`
candidate versions found which didn't match: 0.19.2
location searched: directory source `/<<PKGBUILDDIR>>/debian/cargo_registry` (which is replacing registry `crates-io`)
required by package `bcrypt-rust v0.1.0 (/<<PKGBUILDDIR>>/src/_bcrypt)`
perhaps a crate was updated and forgotten to be re-vendored?
error: `/usr/share/cargo/bin/cargo metadata --manifest-path src/_bcrypt/Cargo.toml --format-version 1` failed with code 101
-- Output captured from stdout:


TIP pass --env-dir and --sdist-extract-dir to keep the build environment and sources, then see https://build.pypa.io/en/stable/how-to/troubleshooting.html#debug-a-failed-build for help debugging a failed build
ERROR Backend subprocess exited when trying to invoke build_wheel
E: pybuild pybuild:485: build: plugin pyproject failed with: exit code=1: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_bcrypt
I: pybuild plugin_pyproject:142: Building wheel for python3.14 with "build" module
I: pybuild base:385: python3.14 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_bcrypt
* Building wheel...
/usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
!!

        ********************************************************************************
        Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).

        This deprecation is overdue, please update your project and remove deprecated
        calls to avoid build errors in the future.

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!
  corresp(dist, value, root_dir)
/usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        ********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX license expression:

        License :: OSI Approved :: Apache Software License

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!
  dist._finalize_license_expression()
/usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        ********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX license expression:

        License :: OSI Approved :: Apache Software License

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!
  self._finalize_license_expression()
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-cpython-314/bcrypt
copying src/bcrypt/__init__.py -> build/lib.linux-x86_64-cpython-314/bcrypt
running egg_info
writing src/bcrypt.egg-info/PKG-INFO
writing dependency_links to src/bcrypt.egg-info/dependency_links.txt
writing requirements to src/bcrypt.egg-info/requires.txt
writing top-level names to src/bcrypt.egg-info/top_level.txt
reading manifest file 'src/bcrypt.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'Cargo.lock' under directory 'src/_bcrypt'
warning: no previously-included files found matching 'requirements.txt'
warning: no previously-included files found matching 'release.py'
warning: no previously-included files found matching 'mypy.ini'
warning: no previously-included files matching '*' found under directory '.github'
warning: no previously-included files found matching 'src/_bcrypt/target'
warning: no previously-included files matching '*' found under directory 'src/_bcrypt/target'
adding license file 'LICENSE'
writing manifest file 'src/bcrypt.egg-info/SOURCES.txt'
copying src/bcrypt/__init__.pyi -> build/lib.linux-x86_64-cpython-314/bcrypt
copying src/bcrypt/py.typed -> build/lib.linux-x86_64-cpython-314/bcrypt
running build_ext
running build_rust
debian cargo wrapper: options = ['parallel=2'], profiles = [], parallel = ['-j2'], lto =
debian cargo wrapper: rust_type = x86_64-unknown-linux-gnu, gnu_type = x86_64-linux-gnu
debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', '/usr/bin/cargo', 'metadata', '--manifest-path', 'src/_bcrypt/Cargo.toml', '--format-version', '1'],) {}
error: failed to select a version for the requirement `bcrypt = "^0.15"`
candidate versions found which didn't match: 0.19.2
location searched: directory source `/<<PKGBUILDDIR>>/debian/cargo_registry` (which is replacing registry `crates-io`)
required by package `bcrypt-rust v0.1.0 (/<<PKGBUILDDIR>>/src/_bcrypt)`
perhaps a crate was updated and forgotten to be re-vendored?
error: `/usr/share/cargo/bin/cargo metadata --manifest-path src/_bcrypt/Cargo.toml --format-version 1` failed with code 101
-- Output captured from stdout:


TIP pass --env-dir and --sdist-extract-dir to keep the build environment and sources, then see https://build.pypa.io/en/stable/how-to/troubleshooting.html#debug-a-failed-build for help debugging a failed build
ERROR Backend subprocess exited when trying to invoke build_wheel
E: pybuild pybuild:485: build: plugin pyproject failed with: exit code=1: python3.14 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_bcrypt
dh_auto_build: error: pybuild --build -i python{version} -p "3.13 3.14" --parallel=2 returned exit code 13
make: *** [debian/rules:14: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1143364#8
Date:
2026-08-02 16:31:57 UTC
From:
To:
Hello,

Bug #1143364 in python-bcrypt reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/python-team/packages/python-bcrypt/-/commit/fb1301e0d7288eab477451de51dcd2e1fe2653c6
------------------------------------------------------------------------
Accept bcrypt 0.19

Closes: #1143364
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1143364

#1143364#15
Date:
2026-08-02 16:49:36 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
python-bcrypt, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1143364@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Colin Watson <cjwatson@debian.org> (supplier of updated python-bcrypt package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 02 Aug 2026 17:31:18 +0100
Source: python-bcrypt
Architecture: source
Version: 5.0.0-6
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Colin Watson <cjwatson@debian.org>
Closes: 1143364
Changes:
 python-bcrypt (5.0.0-6) unstable; urgency=medium
 .
   * Team upload.
   * Accept bcrypt 0.19 (closes: #1143364).
   * Drop "Rules-Requires-Root: no", default as of dpkg-dev 1.22.13.
   * Drop "Priority: optional", default as of dpkg-dev 1.22.13.
   * Standards-Version: 4.7.4.
Checksums-Sha1:
 1eeb7cd986ed64d588c35e0bb63694f60045360d 2625 python-bcrypt_5.0.0-6.dsc
 4ca4bfeb54615c09fc7066d87f7c8f0e3a032220 12408 python-bcrypt_5.0.0-6.debian.tar.xz
 b4bb79d24710710f3157544595aa51cb78a24161 70816 python-bcrypt_5.0.0-6.git.tar.xz
 c61a1a20d971e98cce47f828e0fb61c58dbb835a 17576 python-bcrypt_5.0.0-6_source.buildinfo
Checksums-Sha256:
 c47640d07274d5e480a97b4f9a18b3de254a92672c3beeaabe504d10c5571be9 2625 python-bcrypt_5.0.0-6.dsc
 107b8a2f3d0df68ea40087caee5f7d689e18208a087d7670bb1890e9e5a71255 12408 python-bcrypt_5.0.0-6.debian.tar.xz
 5ee5c44f3b6cd5bbe559cf8f5096821a1db235037b5119e03b6839a424b95282 70816 python-bcrypt_5.0.0-6.git.tar.xz
 81c379c08b8d5e529d8f6de9f234df7bec8e41f177ca2a40c4b7895020c4da88 17576 python-bcrypt_5.0.0-6_source.buildinfo
Files:
 e26289db33738cb99e31cbd0198c178b 2625 python optional python-bcrypt_5.0.0-6.dsc
 e12cabf0b33a5eb48acef83e4fad46fa 12408 python optional python-bcrypt_5.0.0-6.debian.tar.xz
 fc352bc215d92f79ea25d205a0676c08 70816 python None python-bcrypt_5.0.0-6.git.tar.xz
 ca991c1de9784de66c56895f05474446 17576 python optional python-bcrypt_5.0.0-6_source.buildinfo
Git-Tag-Info: tag=fdf3049a4b542dd8288d1367a92899ec37ea381e fp=ac0a4ff12611b6fccf01c111393587d97d86500b
Git-Tag-Tagger: Colin Watson <cjwatson@debian.org>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmpvcTwACgkQYG0ITkaD
wHklZQ/9GIk1lyaUEv/ODQA4rZSoAN0Zv3XJBaaLYa/j3VTrGNnE8FGKk/ApfawO
/2Iay/YWCGZdcueU2tFHrPhor6YiUAPaSL79kWpkbQiIQfShGBcu4qpQULquQx17
MX0f3+X2nynkaaxj5V6Jvj/GjMNAbjd8BmemL0D7moFVlsoz9tRnGshy+1Wabc47
89s8Kxa1kiJwvoU9ebBcxQZT3NK/QUjSvFtjc0Me9gR9N0Nq8RD8mj8ERJVQVqpg
0GbHe/wuLbCmvM+Hlij6H6Tgs8P3lRtbcN11+Z+uT/UowEjWVRdttYeP2wjtm11v
vy4VcbhIVg1cI7R3MgbBOfrH7f97jWjs1Aa/D+zhVhxHW/C6gjpuZ+woh0yAPV+3
nkZ0FkVESAHcTgSv96XytCTNIihp/fHq0NKuBpHQjMyd3o3Sp3oyJC+ZrPUhhAQE
IQF5DhWlwARUIbZUyK80OxdeEjzEglib7Xu0lA2rONK3HmwJhSxDMPQ5omppx20T
1cG+hSsBIUjYCwcnB7qsDNCBbyMwMIpC36tAXYE4m9q1uF48QPvwIFZj0K4xdCY9
fOCL/3S8gkNtJa+MjZxKdntYUqTpoCa/6sKyZ291qSFvo6oEqVGLdOuXWW69FU7E
Ihsu/MFeEH5B3s8XXHo3QSTxiOP6lhgsdpBt2U+zOSE+ZN1HfgI=
=i/HN
-----END PGP SIGNATURE-----