[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1118319: safetensors: FTBFS: error: failed to select a version for the requirement `pyo3 = "^0.25.1"`



Package: src:safetensors
Version: 0.6.2-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/202510/

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

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=pybuild --sourcedirectory=bindings/python --with python3
   debian/rules execute_before_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -f -rfv .cargo
mv bindings/python/Cargo.lock.bak bindings/python/Cargo.lock
mv: cannot stat 'bindings/python/Cargo.lock.bak': No such file or directory
make[1]: [debian/rules:11: execute_before_dh_auto_clean] Error 1 (ignored)
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_clean -O--buildsystem=pybuild -O--sourcedirectory=bindings/python
   dh_autoreconf_clean -O--buildsystem=pybuild -O--sourcedirectory=bindings/python
   dh_clean -O--buildsystem=pybuild -O--sourcedirectory=bindings/python
 debian/rules binary
dh binary --buildsystem=pybuild --sourcedirectory=bindings/python --with python3
   dh_update_autotools_config -O--buildsystem=pybuild -O--sourcedirectory=bindings/python
   dh_autoreconf -O--buildsystem=pybuild -O--sourcedirectory=bindings/python
   debian/rules execute_before_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
mkdir -pv .cargo
mkdir: created directory '.cargo'
cp debian/cargo-config.toml .cargo/config.toml
mv bindings/python/Cargo.lock bindings/python/Cargo.lock.bak
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_configure -O--buildsystem=pybuild -O--sourcedirectory=bindings/python
   dh_auto_build -O--buildsystem=pybuild -O--sourcedirectory=bindings/python
I: pybuild plugin_pyproject:129: Building wheel for python3.13 with "build" module
I: pybuild base:311: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_safetensors  
* Building wheel...
Running `maturin pep517 build-wheel -i /usr/bin/python3.13 --compatibility off`
error: failed to select a version for the requirement `pyo3 = "^0.25.1"`
candidate versions found which didn't match: 0.26.0
location searched: directory source `/usr/share/cargo/registry` (which is replacing registry `crates-io`)
required by package `safetensors-python v0.6.2 (/<<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.13', '--compatibility', 'off'] returned non-zero exit status 1

ERROR Backend subprocess exited when trying to invoke build_wheel
E: pybuild pybuild:389: build: plugin pyproject failed with: exit code=1: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_safetensors  
dh_auto_build: error: pybuild --build -i python{version} -p 3.13 --dir bindings/python returned exit code 13
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------


Reply to: