Bug#1115132: pykdtree: FTBFS: FAILED pykdtree/test_stub.py::test_mypy - AssertionError: Mypy stub test failed
Santiago Vila
sanvila at debian.org
Sat Sep 13 17:29:15 BST 2025
Package: src:pykdtree
Version: 1.4.3+ds-1
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build.
Below you will find how the build ends (probably the most relevant part,
but not necessarily). If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202509/
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 could not 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:pykdtree, 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
dh_autoreconf_clean -O--buildsystem=pybuild
dh_clean -O--buildsystem=pybuild
debian/rules binary
dh binary --buildsystem=pybuild
dh_update_autotools_config -O--buildsystem=pybuild
dh_autoreconf -O--buildsystem=pybuild
dh_auto_configure -O--buildsystem=pybuild
debian/rules execute_after_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
cython3 pykdtree/kdtree.pyx
/usr/lib/python3/dist-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /<<PKGBUILDDIR>>/pykdtree/kdtree.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
cd pykdtree && python3 render_template.py
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build -O--buildsystem=pybuild
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_pykdtree
* Building wheel...
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-cpython-313/pykdtree
copying pykdtree/__init__.py -> build/lib.linux-x86_64-cpython-313/pykdtree
copying pykdtree/test_tree.py -> build/lib.linux-x86_64-cpython-313/pykdtree
copying pykdtree/test_stub.py -> build/lib.linux-x86_64-cpython-313/pykdtree
copying pykdtree/render_template.py -> build/lib.linux-x86_64-cpython-313/pykdtree
copying pykdtree/kdtree.pyi -> build/lib.linux-x86_64-cpython-313/pykdtree
copying pykdtree/py.typed -> build/lib.linux-x86_64-cpython-313/pykdtree
running build_ext
Will use gomp for OpenMP.
Compiler: unix / OpenMP: gomp / OpenMP compile args: ['-fopenmp'] / OpenMP link args: ['-lgomp']
building 'pykdtree.kdtree' extension
creating build/temp.linux-x86_64-cpython-313/pykdtree
x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DNPY_NO_DEPRECATED_API=NPY_1_25_API_VERSION -I/usr/lib/x86_64-linux-gnu/python3-numpy/numpy/_core/include -I/usr/include/python3.13 -c pykdtree/_kdtree_core.c -o build/temp.linux-x86_64-cpython-313/pykdtree/_kdtree_core.o -std=c17 -O3 -fopenmp
x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DNPY_NO_DEPRECATED_API=NPY_1_25_API_VERSION -I/usr/lib/x86_64-linux-gnu/python3-numpy/numpy/_core/include -I/usr/include/python3.13 -c pykdtree/kdtree.c -o build/temp.linux-x86_64-cpython-313/pykdtree/kdtree.o -std=c17 -O3 -fopenmp
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-cpython-313/pykdtree/_kdtree_core.o build/temp.linux-x86_64-cpython-313/pykdtree/kdtree.o -L/usr/lib/x86_64-linux-gnu -o build/lib.linux-x86_64-cpython-313/pykdtree/kdtree.cpython-313-x86_64-linux-gnu.so -lgomp
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/pykdtree
copying build/lib.linux-x86_64-cpython-313/pykdtree/__init__.py -> build/bdist.linux-x86_64/wheel/./pykdtree
copying build/lib.linux-x86_64-cpython-313/pykdtree/test_tree.py -> build/bdist.linux-x86_64/wheel/./pykdtree
copying build/lib.linux-x86_64-cpython-313/pykdtree/kdtree.pyi -> build/bdist.linux-x86_64/wheel/./pykdtree
copying build/lib.linux-x86_64-cpython-313/pykdtree/kdtree.cpython-313-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/./pykdtree
copying build/lib.linux-x86_64-cpython-313/pykdtree/test_stub.py -> build/bdist.linux-x86_64/wheel/./pykdtree
copying build/lib.linux-x86_64-cpython-313/pykdtree/py.typed -> build/bdist.linux-x86_64/wheel/./pykdtree
copying build/lib.linux-x86_64-cpython-313/pykdtree/render_template.py -> build/bdist.linux-x86_64/wheel/./pykdtree
running install_egg_info
running egg_info
creating pykdtree.egg-info
writing pykdtree.egg-info/PKG-INFO
writing dependency_links to pykdtree.egg-info/dependency_links.txt
writing requirements to pykdtree.egg-info/requires.txt
writing top-level names to pykdtree.egg-info/top_level.txt
writing manifest file 'pykdtree.egg-info/SOURCES.txt'
reading manifest file 'pykdtree.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.txt'
writing manifest file 'pykdtree.egg-info/SOURCES.txt'
Copying pykdtree.egg-info to build/bdist.linux-x86_64/wheel/./pykdtree-1.4.3.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/pykdtree-1.4.3.dist-info/WHEEL
creating '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pykdtree/.tmp-atgbszg1/pykdtree-1.4.3-cp313-cp313-linux_x86_64.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'pykdtree/__init__.py'
adding 'pykdtree/kdtree.cpython-313-x86_64-linux-gnu.so'
adding 'pykdtree/kdtree.pyi'
adding 'pykdtree/py.typed'
adding 'pykdtree/render_template.py'
adding 'pykdtree/test_stub.py'
adding 'pykdtree/test_tree.py'
adding 'pykdtree-1.4.3.dist-info/licenses/LICENSE.txt'
adding 'pykdtree-1.4.3.dist-info/METADATA'
adding 'pykdtree-1.4.3.dist-info/WHEEL'
adding 'pykdtree-1.4.3.dist-info/top_level.txt'
adding 'pykdtree-1.4.3.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built pykdtree-1.4.3-cp313-cp313-linux_x86_64.whl
I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.13 with "installer" module
dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pykdtree/build; python3.13 -m pytest --pyargs pykdtree
============================= test session starts ==============================
platform linux -- Python 3.13.7, pytest-8.4.2, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pykdtree/build
configfile: pyproject.toml
plugins: typeguard-4.4.4
collected 20 items
pykdtree/test_stub.py F [ 5%]
pykdtree/test_tree.py .................ss [100%]
=================================== FAILURES ===================================
__________________________________ test_mypy ___________________________________
capsys = <_pytest.capture.CaptureFixture object at 0x7f462966f4d0>
def test_mypy(capsys: CaptureFixture[str]) -> None:
"""
Run mypy stub tests for pykdtree.
This function checks for:
- Type consistency in the stubs vs the definitions
- Function / property signatures
- Missing functions or properties in the stubs
"""
from mypy import stubtest
code = stubtest.test_stubs(stubtest.parse_options(["pykdtree.kdtree"]))
captured = capsys.readouterr()
> assert code == 0, "Mypy stub test failed:\n" + captured.out
E AssertionError: Mypy stub test failed:
E error: pykdtree.kdtree.KDTree is a disjoint base at runtime, but isn't marked with @disjoint_base in the stub
E Stub: in file /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pykdtree/build/pykdtree/kdtree.pyi:21
E <TypeInfo pykdtree.kdtree.KDTree>
E Runtime:
E <class 'pykdtree.kdtree.KDTree'>
E
E Found 1 error (checked 1 module)
E
E assert 1 == 0
pykdtree/test_stub.py:17: AssertionError
=========================== short test summary info ============================
FAILED pykdtree/test_stub.py::test_mypy - AssertionError: Mypy stub test failed:
=================== 1 failed, 17 passed, 2 skipped in 2.23s ====================
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pykdtree/build; python3.13 -m pytest --pyargs pykdtree
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 returned exit code 13
make: *** [debian/rules:14: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
More information about the Pkg-grass-devel
mailing list