Source: python-watchfiles Version: 0.21.0-4 Severity: serious Justification: FTBFS Tags: trixie sid ftbfs User: lu...@debian.org Usertags: ftbfs-20240809 ftbfs-trixie
Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > make[1]: Entering directory '/<<PKGBUILDDIR>>' > # Upstream doesn't set the version number... > sed -i 's/0.0.0/0.21.0/' Cargo.toml > make[1]: Leaving directory '/<<PKGBUILDDIR>>' > dh_auto_build -O--buildsystem=pybuild > I: pybuild plugin_pyproject:129: Building wheel for python3.12 with "build" > module > I: pybuild base:311: python3.12 -m build --skip-dependency-check > --no-isolation --wheel --outdir > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_watchfiles > * Building wheel... > Running `maturin pep517 build-wheel -i /usr/bin/python3.12 --compatibility > off` > debian cargo wrapper: options, profiles, parallel, lto: ['parallel=8'] [] > ['-j8'] 0 > debian cargo wrapper: rust_type, gnu_type: x86_64-unknown-linux-gnu, > x86_64-linux-gnu > debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', > '/usr/bin/cargo', 'metadata', '--format-version', '1', '--manifest-path', > '/<<PKGBUILDDIR>>/Cargo.toml'],) {} > Locking 37 packages to latest compatible versions > Adding bitflags v1.3.2 (latest: v2.4.2) > 📦 Including license file "/<<PKGBUILDDIR>>/LICENSE" > 🍹 Building a mixed python/rust project > 🔗 Found pyo3 bindings > 🐍 Found CPython 3.12 at /usr/bin/python3.12 > 📡 Using build options bindings from pyproject.toml > Compiling target-lexicon v0.12.14 > Compiling python3-dll-a v0.2.6 > Compiling once_cell v1.19.0 > Compiling libc v0.2.155 > Compiling proc-macro2 v1.0.86 > Compiling unicode-ident v1.0.12 > Compiling crossbeam-utils v0.8.19 > Compiling autocfg v1.1.0 > Compiling heck v0.4.1 > Compiling cfg-if v1.0.0 > Compiling same-file v1.0.6 > Compiling bitflags v1.3.2 > Compiling log v0.4.21 > Compiling walkdir v2.5.0 > Compiling unindent v0.2.1 > Compiling memoffset v0.8.0 > Compiling indoc v2.0.3 > Compiling crossbeam-channel v0.5.11 > Compiling pyo3-build-config v0.22.2 > Compiling quote v1.0.36 > Compiling inotify-sys v0.1.5 > Compiling mio v0.8.11 > Compiling filetime v0.2.23 > Compiling inotify v0.9.6 > Compiling syn v2.0.68 > Compiling notify v6.1.1 > Compiling pyo3-ffi v0.22.2 > Compiling pyo3-macros-backend v0.22.2 > Compiling pyo3 v0.22.2 > Compiling pyo3-macros v0.22.2 > Compiling watchfiles_rust_notify v0.21.0 (/<<PKGBUILDDIR>>) > error[E0412]: cannot find type `PyCell` in this scope > --> src/lib.rs:246:15 > | > 246 | slf: &PyCell<Self>, > | ^^^^^^ not found in this scope > > error[E0277]: the trait bound `&pyo3::PyAny: FromPyObjectBound<'_, '_>` is > not satisfied > --> src/lib.rs:259:48 > | > 259 | let event: &PyAny = stop_event.extract(py)?; > | ^^^^^^^ the trait > `PyClass` is not implemented for `&pyo3::PyAny`, which is required by > `&pyo3::PyAny: FromPyObjectBound<'_, '_>` > | > = help: the following other types implement trait `FromPyObjectBound<'a, > 'py>`: > &'a [u8] > &'a str > Cow<'a, [u8]> > Cow<'a, str> > = note: required for `&pyo3::PyAny` to implement `FromPyObject<'_>` > = note: required for `&pyo3::PyAny` to implement `FromPyObjectBound<'_, > '_>` > note: required by a bound in `pyo3::Py::<T>::extract` > --> /usr/share/cargo/registry/pyo3-0.22.2/src/instance.rs:1418:12 > | > 1416 | pub fn extract<'a, 'py, D>(&'a self, py: Python<'py>) -> > PyResult<D> > | ------- required by a bound in this associated function > 1417 | where > 1418 | D: crate::conversion::FromPyObjectBound<'a, 'py>, > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by > this bound in `Py::<T>::extract` > > error[E0599]: no method named `getattr` found for reference `&pyo3::PyAny` in > the current scope > --> src/lib.rs:260:42 > | > 260 | let func: &PyAny = event.getattr("is_set")?.extract()?; > | ^^^^^^^ method not found in > `&PyAny` > > error[E0599]: no method named `call0` found for reference `&pyo3::PyAny` in > the current scope > --> src/lib.rs:291:27 > | > 291 | if is_set.call0()?.is_true()? { > | ^^^^^ method not found in `&PyAny` > > error[E0599]: no method named `add` found for reference > `&pyo3::types::PyModule` in the current scope > --> src/lib.rs:360:7 > | > 360 | m.add("__version__", version)?; > | ^^^ method not found in `&PyModule` > > error[E0599]: no method named `add` found for reference > `&pyo3::types::PyModule` in the current scope > --> src/lib.rs:361:7 > | > 361 | m.add( > | --^^^ method not found in `&PyModule` > > error[E0599]: no method named `get_type` found for struct `pyo3::Python` in > the current scope > --> src/lib.rs:363:12 > | > 363 | py.get_type::<WatchfilesRustInternalError>(), > | ^^^^^^^^ > | > help: there is a method `get_type_bound` with a similar name > | > 363 | py.get_type_bound::<WatchfilesRustInternalError>(), > | ~~~~~~~~~~~~~~ > > error[E0599]: no method named `add_class` found for reference > `&pyo3::types::PyModule` in the current scope > --> src/lib.rs:365:7 > | > 365 | m.add_class::<RustNotify>()?; > | ^^^^^^^^^ method not found in `&PyModule` > > error[E0277]: the trait bound `&pyo3::types::PyModule: > std::convert::From<BoundRef<'_, '_, pyo3::types::PyModule>>` is not satisfied > --> src/lib.rs:351:1 > | > 351 | #[pymodule] > | ^^^^^^^^^^^ the trait `std::convert::From<BoundRef<'_, '_, > pyo3::types::PyModule>>` is not implemented for `&pyo3::types::PyModule`, > which is required by `BoundRef<'_, '_, pyo3::types::PyModule>: Into<_>` > | > = note: required for `BoundRef<'_, '_, pyo3::types::PyModule>` to > implement `Into<&pyo3::types::PyModule>` > = note: this error originates in the attribute macro `pymodule` (in > Nightly builds, run with -Z macro-backtrace for more info) > > Some errors have detailed explanations: E0277, E0412, E0599. > For more information about an error, try `rustc --explain E0277`. > error: could not compile `watchfiles_rust_notify` (lib) due to 9 previous > errors > 💥 maturin failed > Caused by: Failed to build a native library through cargo > Caused by: Cargo build finished with "exit status: 101": > `CARGO_ENCODED_RUSTFLAGS="-C\u{1f}debuginfo=2\u{1f}-C\u{1f}strip=none\u{1f}--cap-lints\u{1f}warn\u{1f}-C\u{1f}linker=x86_64-linux-gnu-gcc\u{1f}-C\u{1f}link-arg=-Wl,-z,relro\u{1f}-C\u{1f}link-arg=-Wl,-z,now\u{1f}--remap-path-prefix\u{1f}/<<PKGBUILDDIR>>=/usr/share/cargo/registry/python-watchfiles-0.21.0\u{1f}--remap-path-prefix\u{1f}/<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry" > PYO3_ENVIRONMENT_SIGNATURE="cpython-3.12-64bit" > PYO3_PYTHON="/usr/bin/python3.12" PYTHON_SYS_EXECUTABLE="/usr/bin/python3.12" > "cargo" "rustc" "--message-format" "json-render-diagnostics" > "--manifest-path" "/<<PKGBUILDDIR>>/Cargo.toml" "--release" "--lib"` > Error: command ['maturin', 'pep517', 'build-wheel', '-i', > '/usr/bin/python3.12', '--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.12 -m build --skip-dependency-check --no-isolation --wheel --outdir > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_watchfiles > dh_auto_build: error: pybuild --build -i python{version} -p 3.12 returned > exit code 13 > make: *** [debian/rules:23: binary] Error 25 The full build log is available from: http://qa-logs.debian.net/2024/08/09/python-watchfiles_0.21.0-4_unstable.log All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240809;users=lu...@debian.org or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240809&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! If you reassign this bug to another package, please mark it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects If you fail to reproduce this, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime.