Repository navigation
Closed
Labels
0.kind: build failureA package fails to build
Description
Nixpkgs version
unstable
Steps to reproduce
__________________ ERROR collecting test/test_cpp_features.py __________________
ImportError while importing test module '/build/autopxd2-3.2.2/test/test_cpp_features.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/60m4rxhg2fldqaak400c0lry96ijrzqn-python3-3.13.13/lib/python3.13/importlib/__init__.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test/test_cpp_features.py:10: in <module>
from test.assertions import assert_pxd_equals
E ModuleNotFoundError: No module named 'test.assertions'
However, test/assertions.py is in https://github.com/elijahr/python-autopxd2/blob/master/test/assertions.py
Can Hydra reproduce this build failure?
Yes, Hydra can reproduce this build failure.
Link to Hydra build job
Relevant log output
pytest flags: -m pytest test/
============================= test session starts ==============================
platform linux -- Python 3.13.13, pytest-9.0.3, pluggy-1.6.0
rootdir: /build/autopxd2-3.2.2
configfile: pyproject.toml
collected 193 items / 7 errors / 4 skipped
==================================== ERRORS ====================================
__________________ ERROR collecting test/test_cpp_features.py __________________
ImportError while importing test module '/build/autopxd2-3.2.2/test/test_cpp_features.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/60m4rxhg2fldqaak400c0lry96ijrzqn-python3-3.13.13/lib/python3.13/importlib/__init__.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test/test_cpp_features.py:10: in <module>
from test.assertions import assert_pxd_equals
E ModuleNotFoundError: No module named 'test.assertions'
_____________ ERROR collecting test/test_dependency_resolution.py ______________
ImportError while importing test module '/build/autopxd2-3.2.2/test/test_dependency_resolution.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/60m4rxhg2fldqaak400c0lry96ijrzqn-python3-3.13.13/lib/python3.13/importlib/__init__.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test/test_dependency_resolution.py:6: in <module>
from test.cython_utils import validate_cython_compiles
E ModuleNotFoundError: No module named 'test.cython_utils'
__________________ ERROR collecting test/test_integration.py ___________________
ImportError while importing test module '/build/autopxd2-3.2.2/test/test_integration.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/60m4rxhg2fldqaak400c0lry96ijrzqn-python3-3.13.13/lib/python3.13/importlib/__init__.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test/test_integration.py:10: in <module>
from test.assertions import assert_ir_to_pxd_equals, assert_pxd_equals
E ModuleNotFoundError: No module named 'test.assertions'
___________________ ERROR collecting test/test_ir_writer.py ____________________
ImportError while importing test module '/build/autopxd2-3.2.2/test/test_ir_writer.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/60m4rxhg2fldqaak400c0lry96ijrzqn-python3-3.13.13/lib/python3.13/importlib/__init__.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test/test_ir_writer.py:18: in <module>
from test.assertions import assert_ir_to_pxd_equals
E ModuleNotFoundError: No module named 'test.assertions'
________________ ERROR collecting test/test_macro_extraction.py ________________
ImportError while importing test module '/build/autopxd2-3.2.2/test/test_macro_extraction.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/60m4rxhg2fldqaak400c0lry96ijrzqn-python3-3.13.13/lib/python3.13/importlib/__init__.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test/test_macro_extraction.py:11: in <module>
from test.assertions import assert_pxd_equals
E ModuleNotFoundError: No module named 'test.assertions'
__________________ ERROR collecting test/test_real_headers.py __________________
ImportError while importing test module '/build/autopxd2-3.2.2/test/test_real_headers.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/60m4rxhg2fldqaak400c0lry96ijrzqn-python3-3.13.13/lib/python3.13/importlib/__init__.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test/test_real_headers.py:23: in <module>
from test.assertions import assert_header_pxd_equals
E ModuleNotFoundError: No module named 'test.assertions'
_______________ ERROR collecting test/test_realistic_headers.py ________________
ImportError while importing test module '/build/autopxd2-3.2.2/test/test_realistic_headers.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/60m4rxhg2fldqaak400c0lry96ijrzqn-python3-3.13.13/lib/python3.13/importlib/__init__.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test/test_realistic_headers.py:16: in <module>
from test.assertions import assert_pxd_file_equals
E ModuleNotFoundError: No module named 'test.assertions'
=========================== short test summary info ============================
ERROR test/test_cpp_features.py
ERROR test/test_dependency_resolution.py
ERROR test/test_integration.py
ERROR test/test_ir_writer.py
ERROR test/test_macro_extraction.py
ERROR test/test_real_headers.py
ERROR test/test_realistic_headers.py
!!!!!!!!!!!!!!!!!!! Interrupted: 7 errors during collection !!!!!!!!!!!!!!!!!!!!
========================= 4 skipped, 7 errors in 0.44s =========================Additional context
No response
System metadata
- system:
"x86_64-linux" - host os:
Linux 6.17.8, NixOS, 25.11 (Xantusia), 25.11pre896953.50a96edd8d0d - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.31.2 - channels(wzy):
"json-c-0.16, librime-1.8.5" - channels(root):
"nixos" - nixpkgs:
/nix/store/gf12ajfzx0kyfdaxwa3yaz917bfd0mj1-nixos/nixos
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
- I assert that I have read the automation/AI policy and that this issue report complies with it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Metadata
Metadata
Assignees
Labels
0.kind: build failureA package fails to build
Activity
elijahr commentedon Jun 6, 2026
Hi @Freed-Wu thanks for letting me know.
The autopxd2 3.2.2 sdist was missing the test helper modules and fixtures. This should now be fixed in autopxd2 3.2.3.
Note: there are tests marked
real_headersthat download headers at runtime, if you are running tests in a sandbox that prevents such things, you can skip them withpytest -m "not real_headers".Biswa96 commentedon Jun 15, 2026
I have submitted a pull request to update the package. Please let me know if any further modifications are needed.