#1146176 tokenizers: FTBFS: error: failed to select a version for the requirement `compact_str = "^0.9"`

Package:
src:tokenizers
Source:
src:tokenizers
Submitter:
Santiago Vila
Date:
2026-09-02 13:09:03 UTC
Severity:
normal
Tags:
#1146176#5
Date:
2026-08-30 16:16:01 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:tokenizers, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
   dh_auto_build -O--buildsystem=pybuild -O--sourcedirectory=bindings/python
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_tokenizers
* Building wheel...
Running `maturin pep517 build-wheel -i /usr/bin/python3.14 --compatibility off`
error: failed to select a version for the requirement `compact_str = "^0.9"`
candidate versions found which didn't match: 0.10.0
location searched: directory source `/usr/share/cargo/registry` (which is replacing registry `crates-io`)
required by package `tokenizers v0.23.1 (/<<PKGBUILDDIR>>/tokenizers)`
    ... which satisfies path dependency `tokenizers` of package `tokenizers-python v0.23.1 (/<<PKGBUILDDIR>>/bindings/python)`
perhaps a crate was updated and forgotten to be re-vendored?
As a reminder, you're using offline mode (--offline) which can sometimes cause surprising resolution failures, if this error is too confusing you may wish to retry without `--offline`.
💥 maturin failed
  Caused by: Cargo metadata failed. Does your crate compile with `cargo build`?
  Caused by: `cargo metadata` exited with an error:
Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/usr/bin/python3.14', '--compatibility', 'off'] returned non-zero exit status 1

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_tokenizers
dh_auto_build: error: pybuild --build -i python{version} -p 3.14 --dir bindings/python --parallel=2 returned exit code 13
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1146176#12
Date:
2026-09-02 13:08:21 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
tokenizers, 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 1145427@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adrian Bunk <bunk@debian.org> (supplier of updated tokenizers 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: Mon, 31 Aug 2026 15:59:50 +0300
Source: tokenizers
Architecture: source
Version: 0.23.1+dfsg-2.1
Distribution: unstable
Urgency: medium
Maintainer: Debian Deep Learning Team <debian-ai@lists.debian.org>
Changed-By: Adrian Bunk <bunk@debian.org>
Closes: 1145427
Changes:
 tokenizers (0.23.1+dfsg-2.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
 .
   [ Simon Quigley ]
   * Allow compact_str 0.10. (Closes: #1145427)
Checksums-Sha1:
 4132e85745589ac68860a290f9bdc6ec43f6e716 3143 tokenizers_0.23.1+dfsg-2.1.dsc
 da611cdb575f5a9ef118da6bda804d4d86f9e418 5676 tokenizers_0.23.1+dfsg-2.1.debian.tar.xz
Checksums-Sha256:
 9eb5f5fbc209f6082c1d82cd74aef9f184165d4dbaa73d32c0ea01c5c3fbbc33 3143 tokenizers_0.23.1+dfsg-2.1.dsc
 e89b589d9c999f248dd4ab670cde4f4776a25d0b40f2ed62da82b1366dd39bf6 5676 tokenizers_0.23.1+dfsg-2.1.debian.tar.xz
Files:
 ea140a2f780651dd476bfb6ce7e4be5c 3143 python optional tokenizers_0.23.1+dfsg-2.1.dsc
 cf320afa8479bc234f6f4160d0ea7117 5676 python optional tokenizers_0.23.1+dfsg-2.1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEOvp1f6xuoR0v9F3wiNJCh6LYmLEFAmqVfooACgkQiNJCh6LY
mLHHkRAAuBMdIjhJU83SfhD86WR6MfRZXVg9kqE+MGgPw32HZVoCmORHtT0lqR8w
SE8+usKE99ImW6kYUR5xQQEFuOnaPXZQUxDlEQdo3hR/r9xvEkkXGQ07wdeeuGEX
DVpUIQmNn7X/kCp8rsKxzW7qomBfdGR2zZ4TNrKrXdaae7N2fIsAJDxvxwQ+RN01
HwrVKR5a3IY6rWZZBszRfs3/L1/wXBXOkorgYv7EXaZmbUQ3W8cEDuRxSVcdrwHg
3s9NiHRBg9GmO0rrwcXOefleu17BgQUnx0D5G2sHw5/0POVl/W5xkYaMJijoZhuu
IUlB7hpeS32IqMdaXU8XUH5GPrFJIFKncHKQMLHI9KjMxSOlEe+elqNBKfVdJK3x
Zri9Aqkp/ux0O9Mul1/IW9vBkomGJQ/DGmDENuzuByKSHOnejh+c/6f7J9m/3qs5
Bj+yhchS0043Ov26S7a5TKEDSupEPGQXnjEKMSPDWQcUZL8ZeS2WhwOq0LkBBjuv
vEFJJ+ShB/baL1M8mMAfclqRayg0A/3qoDS6RnrTUS+hoDLt+KBlZfCdOkhWDCRj
te37Gr4qHRWc4NN1kOmJwfO6DSaW81Buwpv9aOHgQiVlYKOKvabZW/+BxnO2CILm
DJx+ZiIT8/OQksqZ++okgY1P5LCgEDgr2uYOMn/Fcue5QYZ4kNA=
=RRgA
-----END PGP SIGNATURE-----