#1147911 python-scrapli: FTBFS: E ModuleNotFoundError: No module named 'pkg_resources'

#1147911#5
Date:
2026-09-15 11:16:39 UTC
From:
To:
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/202609/

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

Thanks.
--------------------------------------------------------------------------------
[...]
    from scrapli.driver.base.base_driver import BaseDriver
scrapli/driver/base/base_driver.py:11: in <module>
    from scrapli.helper import format_user_warning, resolve_file
scrapli/helper.py:10: in <module>
    import pkg_resources
E   ModuleNotFoundError: No module named 'pkg_resources'
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=4: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_scrapli/build; python3.14 -m pytest -v tests/unit -k 'not test_factory_community_platform_defaults and not test_factory_community_platform_variant and not test_factory_no_scrapli_community_platform and not test_textfsm_get_template and not test_textfsm_parse and not test_ttp_parse and not test_response_parse_textfsm and not test_response_parse_ttp and not test_open_channel_no_session and not test_isalive_no_session and not test_write_exception and not test_socket_open_connection_refused and not test_socket_open_close_isalive and not test_socket_bool and not test_close and not test_close_catch_brokenpipe and not test_isalive and not test_isalive_attribute_error'
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.14 --parallel=2 returned exit code 13
make: *** [debian/rules:59: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------