Bug#1058121: pytest-recording: FTBFS: ModuleNotFoundError: No module named 'imp'

Lucas Nussbaum lucas at debian.org
Tue Dec 12 07:59:24 GMT 2023


Source: pytest-recording
Version: 0.13.0-2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20231212 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  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
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild plugin_pyproject:110: Building wheel for python3.12 with "build" module
> I: pybuild base:310: python3.12 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-recording 
> * Building wheel...
> Successfully built pytest_recording-0.13.0-py3-none-any.whl
> I: pybuild plugin_pyproject:122: Unpacking wheel built for python3.12 with "installer" module
> I: pybuild plugin_pyproject:110: Building wheel for python3.11 with "build" module
> I: pybuild base:310: python3.11 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-recording 
> * Building wheel...
> Successfully built pytest_recording-0.13.0-py3-none-any.whl
> I: pybuild plugin_pyproject:122: Unpacking wheel built for python3.11 with "installer" module
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:310: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-recording/build; python3.12 -m pytest --ignore=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-recording/build/tests/test_recording.py -k "not test_blocked_network_recording and not test_block_network_with_allowed_hosts and not test_block_network_via_cmd_with_recording and not test_pycurl and not test_combine_cassettes"
> Traceback (most recent call last):
>   File "<frozen runpy>", line 198, in _run_module_as_main
>   File "<frozen runpy>", line 88, in _run_code
>   File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 5, in <module>
>     raise SystemExit(pytest.console_main())
>                      ^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 192, in console_main
>     code = main()
>            ^^^^^^
>   File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 150, in main
>     config = _prepareconfig(args, plugins)
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 331, in _prepareconfig
>     config = pluginmanager.hook.pytest_cmdline_parse(
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 493, in __call__
>     return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 115, in _hookexec
>     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 130, in _multicall
>     teardown[0].send(outcome)
>   File "/usr/lib/python3/dist-packages/_pytest/helpconfig.py", line 104, in pytest_cmdline_parse
>     config: Config = outcome.get_result()
>                      ^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/pluggy/_result.py", line 114, in get_result
>     raise exc.with_traceback(exc.__traceback__)
>   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 77, in _multicall
>     res = hook_impl.function(*args)
>           ^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 1075, in pytest_cmdline_parse
>     self.parse(args)
>   File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 1425, in parse
>     self._preparse(args, addopts=addopts)
>   File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 1305, in _preparse
>     self.pluginmanager.load_setuptools_entrypoints("pytest11")
>   File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 398, in load_setuptools_entrypoints
>     plugin = ep.load()
>              ^^^^^^^^^
>   File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 205, in load
>     module = import_module(match.group('module'))
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
>   File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
>   File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
>   File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 994, in exec_module
>   File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
>   File "/usr/lib/python3/dist-packages/pytest_httpbin/plugin.py", line 3, in <module>
>     from httpbin import app as httpbin_app
>   File "/usr/lib/python3/dist-packages/httpbin/__init__.py", line 3, in <module>
>     from .core import *
>   File "/usr/lib/python3/dist-packages/httpbin/core.py", line 36, in <module>
>     from flasgger import Swagger, NO_SANITIZER
>   File "/usr/lib/python3/dist-packages/flasgger/__init__.py", line 10, in <module>
>     from .base import Swagger, Flasgger, NO_SANITIZER, BR_SANITIZER, MK_SANITIZER, LazyJSONEncoder  # noqa
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/flasgger/base.py", line 36, in <module>
>     from .utils import extract_definitions
>   File "/usr/lib/python3/dist-packages/flasgger/utils.py", line 5, in <module>
>     import imp
> ModuleNotFoundError: No module named 'imp'
> E: pybuild pybuild:395: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-recording/build; python3.12 -m pytest --ignore={build_dir}/tests/test_recording.py -k "not test_blocked_network_recording and not test_block_network_with_allowed_hosts and not test_block_network_via_cmd_with_recording and not test_pycurl and not test_combine_cassettes"
> I: pybuild base:310: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-recording/build; python3.11 -m pytest --ignore=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-recording/build/tests/test_recording.py -k "not test_blocked_network_recording and not test_block_network_with_allowed_hosts and not test_block_network_via_cmd_with_recording and not test_pycurl and not test_combine_cassettes"
> ============================= test session starts ==============================
> platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-recording/build
> plugins: recording-0.13.0, httpbin-1.0.0, mock-3.12.0
> collected 51 items / 13 deselected / 38 selected
> 
> tests/test_blocking_network.py .........                                 [ 23%]
> tests/test_plugin.py ..........                                          [ 50%]
> tests/test_replaying.py .............s...                                [ 94%]
> tests/test_utils.py ..                                                   [100%]
> 
> ================= 37 passed, 1 skipped, 13 deselected in 3.52s =================
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 3.11" returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2023/12/12/pytest-recording_0.13.0-2_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&fusertaguser=lucas@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.



More information about the Pkg-grass-devel mailing list