#1076826 lexicon: FTBFS: Tries to access Internet during build

#1076826#5
Date:
2024-07-23 19:13:46 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary --with python3 --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: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_lexicon
* Building wheel...
Successfully built dns_lexicon-3.17.0-py3-none-any.whl
I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.12 with "installer" module
    debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
pytest-3 tests/ -k "not auto and not localzone and not oci and not namecheap"

[... snipped ...]

   File "<frozen os>", line 215, in makedirs
   File "<frozen os>", line 215, in makedirs
   File "<frozen os>", line 225, in makedirs
PermissionError: [Errno 13] Permission denied: '/sbuild-nonexistent'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 189, in run_and_cache
     _make_dir(cache_filepath)
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 248, in _make_dir
     os.makedirs(os.path.dirname(filename))
   File "<frozen os>", line 215, in makedirs
   File "<frozen os>", line 215, in makedirs
   File "<frozen os>", line 225, in makedirs
PermissionError: [Errno 13] Permission denied: '/sbuild-nonexistent'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 174, in _new_conn
     conn = connection.create_connection(
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 73, in create_connection
     for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3.12/socket.py", line 964, in getaddrinfo
     for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 716, in urlopen
     httplib_response = self._make_request(
                        ^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 405, in _make_request
     self._validate_conn(conn)
   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 1059, in _validate_conn
     conn.connect()
   File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 363, in connect
     self.sock = conn = self._new_conn()
                        ^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 186, in _new_conn
     raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fec9f823ce0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/requests/adapters.py", line 486, in send
     resp = conn.urlopen(
            ^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 800, in urlopen
     retries = retries.increment(
               ^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 592, in increment
     raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /publicsuffix/list/master/public_suffix_list.dat (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fec9f823ce0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/tldextract/suffix_list.py", line 46, in find_first_response
     return cache.cached_fetch_url(
            ^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 220, in cached_fetch_url
     return self.run_and_cache(
            ^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 205, in run_and_cache
     return func(**kwargs)
            ^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 229, in _fetch_url
     response = session.get(url, timeout=timeout)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/requests/sessions.py", line 602, in get
     return self.request("GET", url, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/requests/sessions.py", line 589, in request
     resp = self.send(prep, **send_kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/requests/sessions.py", line 703, in send
     r = adapter.send(request, **kwargs)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/requests/adapters.py", line 519, in send
     raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /publicsuffix/list/master/public_suffix_list.dat (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fec9f823ce0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
____ test_delete_action_is_correctly_handled_by_provider_on_context_manager ____

self = <tldextract.cache.DiskCache object at 0x7fec9f822c00>
func = <function _get_suffix_lists at 0x7feca3043600>
namespace = 'publicsuffix.org-tlds'
kwargs = {'cache': <tldextract.cache.DiskCache object at 0x7fec9f822c00>, 'cache_fetch_timeout': None, 'fallback_to_snapshot': True, 'session': None, ...}
hashed_argnames = ['urls', 'fallback_to_snapshot']

     def run_and_cache(
         self,
         func: Callable[..., T],
         namespace: str,
         kwargs: dict[str, Hashable],
         hashed_argnames: Iterable[str],
     ) -> T:
         """Get a url but cache the response."""
         if not self.enabled:
             return func(**kwargs)

         key_args = {k: v for k, v in kwargs.items() if k in hashed_argnames}
         cache_filepath = self._key_to_cachefile_path(namespace, key_args)
         lock_path = cache_filepath + ".lock"
         try:

/usr/lib/python3/dist-packages/tldextract/cache.py:189:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

filename = '/sbuild-nonexistent/.lexicon_tld_set/publicsuffix.org-tlds/704b6b0e53ba2966d92e690044b663f4.tldextract.json'

     def _make_dir(filename: str) -> None:
         """Make a directory if it doesn't already exist."""
         if not os.path.exists(os.path.dirname(filename)):
             try:
/usr/lib/python3/dist-packages/tldextract/cache.py:248: PermissionError

During handling of the above exception, another exception occurred:

cache = <tldextract.cache.DiskCache object at 0x7fec9f822c00>
urls = ('file:///usr/share/publicsuffix/effective_tld_names.dat', 'https://publicsuffix.org/list/public_suffix_list.dat', 'https://raw.githubusercontent.com/publicsuffix/list/master/public_suffix_list.dat')
cache_fetch_timeout = None, fallback_to_snapshot = True, session = None

     def _get_suffix_lists(
         cache: DiskCache,
         urls: Sequence[str],
         cache_fetch_timeout: float | int | None,
         fallback_to_snapshot: bool,
         session: requests.Session | None = None,
     ) -> tuple[list[str], list[str]]:
         """Fetch, parse, and cache the suffix lists."""
         try:
                 cache, urls, cache_fetch_timeout=cache_fetch_timeout, session=session
             )

/usr/lib/python3/dist-packages/tldextract/suffix_list.py:104:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cache = <tldextract.cache.DiskCache object at 0x7fec9f822c00>
urls = ('file:///usr/share/publicsuffix/effective_tld_names.dat', 'https://publicsuffix.org/list/public_suffix_list.dat', 'https://raw.githubusercontent.com/publicsuffix/list/master/public_suffix_list.dat')
cache_fetch_timeout = None
session = <requests.sessions.Session object at 0x7fec9f821100>

     def find_first_response(
         cache: DiskCache,
         urls: Sequence[str],
         cache_fetch_timeout: float | int | None = None,
         session: requests.Session | None = None,
     ) -> str:
         """Decode the first successfully fetched URL, from UTF-8 encoding to Python unicode."""
         session_created = False
         if session is None:
             session = requests.Session()
             session.mount("file://", FileAdapter())
             session_created = True

         try:
             for url in urls:
                 try:
                     return cache.cached_fetch_url(
                         session=session, url=url, timeout=cache_fetch_timeout
                     )
                 except requests.exceptions.RequestException:
                     LOG.exception("Exception reading Public Suffix List url %s", url)
         finally:
             # Ensure the session is always closed if it's constructed in the method
             if session_created:
                 session.close()
/usr/lib/python3/dist-packages/tldextract/suffix_list.py:56: SuffixListNotFound

During handling of the above exception, another exception occurred:

capsys = <_pytest.capture.CaptureFixture object at 0x7fec9eb5fa40>
lexicon_client = <module 'lexicon.client' from '/<<PKGBUILDDIR>>/src/lexicon/client.py'>
mock_provider = None

tests/test_library.py:286:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/lexicon/client.py:121: in __init__
     domain_parts = domain_extractor(domain)
/usr/lib/python3/dist-packages/tldextract/tldextract.py:228: in __call__
     return self.extract_str(url, include_psl_private_domains, session=session)
/usr/lib/python3/dist-packages/tldextract/tldextract.py:257: in extract_str
     return self._extract_netloc(
/usr/lib/python3/dist-packages/tldextract/tldextract.py:308: in _extract_netloc
     suffix_index, is_private = self._get_tld_extractor(
/usr/lib/python3/dist-packages/tldextract/tldextract.py:356: in _get_tld_extractor
     public_tlds, private_tlds = get_suffix_lists(
/usr/lib/python3/dist-packages/tldextract/suffix_list.py:81: in get_suffix_lists
     return cache.run_and_cache(
/usr/lib/python3/dist-packages/tldextract/cache.py:205: in run_and_cache
     return func(**kwargs)
/usr/lib/python3/dist-packages/tldextract/suffix_list.py:109: in _get_suffix_lists
     maybe_pkg_data = pkgutil.get_data("tldextract", ".tld_set_snapshot")
/usr/lib/python3.12/pkgutil.py:453: in get_data
     return loader.get_data(resource_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <_frozen_importlib_external.SourceFileLoader object at 0x7feca3282600>
path = '/usr/lib/python3/dist-packages/tldextract/.tld_set_snapshot'
<frozen importlib._bootstrap_external>:1186: FileNotFoundError
------------------------------ Captured log call -------------------------------
ERROR    tldextract:suffix_list.py:50 Exception reading Public Suffix List url file:///usr/share/publicsuffix/effective_tld_names.dat
Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 189, in run_and_cache
     _make_dir(cache_filepath)
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 248, in _make_dir
     os.makedirs(os.path.dirname(filename))
   File "<frozen os>", line 215, in makedirs
   File "<frozen os>", line 215, in makedirs
   File "<frozen os>", line 225, in makedirs
PermissionError: [Errno 13] Permission denied: '/sbuild-nonexistent'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 189, in run_and_cache
     _make_dir(cache_filepath)
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 248, in _make_dir
     os.makedirs(os.path.dirname(filename))
   File "<frozen os>", line 215, in makedirs
   File "<frozen os>", line 215, in makedirs
   File "<frozen os>", line 225, in makedirs
PermissionError: [Errno 13] Permission denied: '/sbuild-nonexistent'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/tldextract/suffix_list.py", line 46, in find_first_response
     return cache.cached_fetch_url(
            ^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 220, in cached_fetch_url
     return self.run_and_cache(
            ^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 205, in run_and_cache
     return func(**kwargs)
            ^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 230, in _fetch_url
     response.raise_for_status()
   File "/usr/lib/python3/dist-packages/requests/models.py", line 1021, in raise_for_status
     raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: None for url: None
ERROR    tldextract:suffix_list.py:50 Exception reading Public Suffix List url https://publicsuffix.org/list/public_suffix_list.dat
Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 189, in run_and_cache
     _make_dir(cache_filepath)
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 248, in _make_dir
     os.makedirs(os.path.dirname(filename))
   File "<frozen os>", line 215, in makedirs
   File "<frozen os>", line 215, in makedirs
   File "<frozen os>", line 225, in makedirs
PermissionError: [Errno 13] Permission denied: '/sbuild-nonexistent'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 189, in run_and_cache
     _make_dir(cache_filepath)
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 248, in _make_dir
     os.makedirs(os.path.dirname(filename))
   File "<frozen os>", line 215, in makedirs
   File "<frozen os>", line 215, in makedirs
   File "<frozen os>", line 225, in makedirs
PermissionError: [Errno 13] Permission denied: '/sbuild-nonexistent'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 174, in _new_conn
     conn = connection.create_connection(
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 73, in create_connection
     for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3.12/socket.py", line 964, in getaddrinfo
     for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 716, in urlopen
     httplib_response = self._make_request(
                        ^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 405, in _make_request
     self._validate_conn(conn)
   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 1059, in _validate_conn
     conn.connect()
   File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 363, in connect
     self.sock = conn = self._new_conn()
                        ^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 186, in _new_conn
     raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fec9e9603b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/requests/adapters.py", line 486, in send
     resp = conn.urlopen(
            ^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 800, in urlopen
     retries = retries.increment(
               ^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 592, in increment
     raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='publicsuffix.org', port=443): Max retries exceeded with url: /list/public_suffix_list.dat (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fec9e9603b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/tldextract/suffix_list.py", line 46, in find_first_response
     return cache.cached_fetch_url(
            ^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 220, in cached_fetch_url
     return self.run_and_cache(
            ^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 205, in run_and_cache
     return func(**kwargs)
            ^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 229, in _fetch_url
     response = session.get(url, timeout=timeout)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/requests/sessions.py", line 602, in get
     return self.request("GET", url, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/requests/sessions.py", line 589, in request
     resp = self.send(prep, **send_kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/requests/sessions.py", line 703, in send
     r = adapter.send(request, **kwargs)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/requests/adapters.py", line 519, in send
     raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='publicsuffix.org', port=443): Max retries exceeded with url: /list/public_suffix_list.dat (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fec9e9603b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
ERROR    tldextract:suffix_list.py:50 Exception reading Public Suffix List url https://raw.githubusercontent.com/publicsuffix/list/master/public_suffix_list.dat
Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 189, in run_and_cache
     _make_dir(cache_filepath)
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 248, in _make_dir
     os.makedirs(os.path.dirname(filename))
   File "<frozen os>", line 215, in makedirs
   File "<frozen os>", line 215, in makedirs
   File "<frozen os>", line 225, in makedirs
PermissionError: [Errno 13] Permission denied: '/sbuild-nonexistent'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 189, in run_and_cache
     _make_dir(cache_filepath)
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 248, in _make_dir
     os.makedirs(os.path.dirname(filename))
   File "<frozen os>", line 215, in makedirs
   File "<frozen os>", line 215, in makedirs
   File "<frozen os>", line 225, in makedirs
PermissionError: [Errno 13] Permission denied: '/sbuild-nonexistent'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 174, in _new_conn
     conn = connection.create_connection(
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 73, in create_connection
     for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3.12/socket.py", line 964, in getaddrinfo
     for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 716, in urlopen
     httplib_response = self._make_request(
                        ^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 405, in _make_request
     self._validate_conn(conn)
   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 1059, in _validate_conn
     conn.connect()
   File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 363, in connect
     self.sock = conn = self._new_conn()
                        ^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 186, in _new_conn
     raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fec9e963a40>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/requests/adapters.py", line 486, in send
     resp = conn.urlopen(
            ^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 800, in urlopen
     retries = retries.increment(
               ^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 592, in increment
     raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /publicsuffix/list/master/public_suffix_list.dat (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fec9e963a40>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/tldextract/suffix_list.py", line 46, in find_first_response
     return cache.cached_fetch_url(
            ^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 220, in cached_fetch_url
     return self.run_and_cache(
            ^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 205, in run_and_cache
     return func(**kwargs)
            ^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/tldextract/cache.py", line 229, in _fetch_url
     response = session.get(url, timeout=timeout)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/requests/sessions.py", line 602, in get
     return self.request("GET", url, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/requests/sessions.py", line 589, in request
     resp = self.send(prep, **send_kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/requests/sessions.py", line 703, in send
     r = adapter.send(request, **kwargs)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/requests/adapters.py", line 519, in send
     raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /publicsuffix/list/master/public_suffix_list.dat (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fec9e963a40>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
=========================== short test summary info ============================
FAILED tests/test_client.py::test_client_basic_init - FileNotFoundError: [Err...
FAILED tests/test_client.py::test_client_legacy_init - FileNotFoundError: [Er...
FAILED tests/test_client.py::test_client_init_when_domain_includes_subdomain_should_strip
FAILED tests/test_client.py::test_client_init_with_delegated_domain_name - Fi...
FAILED tests/test_client.py::test_client_init_with_delegated_domain_fqdn - Fi...
FAILED tests/test_client.py::test_client_init_with_same_delegated_domain_fqdn
FAILED tests/test_client.py::test_client_init_when_missing_action_should_fail
FAILED tests/test_client.py::test_client_init_when_missing_type_should_fail
FAILED tests/test_client.py::test_client_parse_env_with_no_keys_should_do_nothing
FAILED tests/test_client.py::test_client_parse_env_with_auth_keys - FileNotFo...
FAILED tests/test_library.py::test_missing_required_client_config_parameter_raises_error_on_execute
FAILED tests/test_library.py::test_missing_optional_client_config_parameter_does_not_raise_error_on_execute
FAILED tests/test_library.py::test_list_action_is_correctly_handled_by_provider_on_execute
FAILED tests/test_library.py::test_list_action_is_correctly_handled_by_provider_on_context_manager
FAILED tests/test_library.py::test_create_action_is_correctly_handled_by_provider_on_execute
FAILED tests/test_library.py::test_create_action_is_correctly_handled_by_provider_on_context_manager
FAILED tests/test_library.py::test_update_action_is_correctly_handled_by_provider_on_execute
FAILED tests/test_library.py::test_update_action_is_correctly_handled_by_provider_on_context_manager
FAILED tests/test_library.py::test_delete_action_is_correctly_handled_by_provider_on_execute
FAILED tests/test_library.py::test_delete_action_is_correctly_handled_by_provider_on_context_manager
======== 20 failed, 1945 passed, 260 skipped, 169 deselected in 57.38s =========
make[1]: *** [debian/rules:14: override_dh_auto_test] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:9: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.

For a full build log, please see:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/lexicon.html

Note: You can reproduce this easily by trying to build the package using sbuild unshare backend.

About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large 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 affects, so that this is still visible in the BTS web
page for this package.

Thanks.

#1076826#10
Date:
2024-07-26 06:58:52 UTC
From:
To:
Hi Ana,

this bug seems to be due to a new version of python3-tldextract.
Downgrading it to 3.1.2-2 from bookworm fixes the tests.

Cheers Jochen

* Santiago Vila <sanvila@debian.org> [2024-07-23 21:13]:

#1076826#15
Date:
2025-08-19 11:59:04 UTC
From:
To:
Hello,

I believe that this might be related to the upstream issue I reported in
https://github.com/john-kurkowski/tldextract/issues/350

Best regards,
Michel Le Bihan

#1076826#24
Date:
2025-08-20 11:37:30 UTC
From:
To:
Hello,

Bug #1076826 in tldextract reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/python-team/packages/python-tldextract/-/commit/5f8ba283abc6156a6f4dfe57e2006c1913f7af25
------------------------------------------------------------------------
patch: Use list of suffixes from publicsuffix package

Closes: #1076826, #1111574
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1076826

#1076826#31
Date:
2025-08-20 14:53:28 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
tldextract, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1076826@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexandre Detiste <tchet@debian.org> (supplier of updated tldextract package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 20 Aug 2025 16:02:43 +0200
Source: tldextract
Architecture: source
Version: 5.1.2-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Alexandre Detiste <tchet@debian.org>
Closes: 1076826 1111574
Changes:
 tldextract (5.1.2-2) unstable; urgency=medium
 .
   * Team Upload
   * Set Team as Maintainer per new DPT Policy
   * Bump Standards-Version to 4.7.2
   * Drop "Rules-Requires-Root: no", it is the default now
   * Reformat d/control with debputy
 .
   [ Michel Le Bihan ]
   * patch: Use list of suffixes from publicsuffix package
            (Closes: #1076826, #1111574)
   * Declare runtime dependency on publicsuffix
   * Make autopkgtest-pkg-pybuild work
Checksums-Sha1:
 829a47af5f3fa3448bdc42a3ccd6c0d6ccaf1eb3 2353 tldextract_5.1.2-2.dsc
 29d34ea8eb4291d4b8f01402e8b3682fb6d7d8ff 4248 tldextract_5.1.2-2.debian.tar.xz
 790d0cff5ac1c66e95f0eef9e4b5a80bf61147fa 7820 tldextract_5.1.2-2_source.buildinfo
Checksums-Sha256:
 d995fdec8f95536968c97a8d2339ca13f672d9054c3e19236203f8dcf0e74cd0 2353 tldextract_5.1.2-2.dsc
 bd755c9103eb9d0cfb3b3c6b14ccf86ff2315940ef34196160cb861c114d1bc7 4248 tldextract_5.1.2-2.debian.tar.xz
 623efce95b616e9bf67ab7f10ef561820c5f52290fb1e1eae2a990c430af162f 7820 tldextract_5.1.2-2_source.buildinfo
Files:
 229ab28e87d191a88629b62713b2578a 2353 python optional tldextract_5.1.2-2.dsc
 38e54af5d5e6a85a95ae3a752652a799 4248 python optional tldextract_5.1.2-2.debian.tar.xz
 43350fa2ca844c615ee97e4fd49b6fd7 7820 python optional tldextract_5.1.2-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAmil3ekRHHRjaGV0QGRl
Ymlhbi5vcmcACgkQMfMURUShdBoWHBAAgGvcnDCyvKpoeboX4H9TUKb8TrD+PKVk
yzqKZLwDWTMHl3dfB5hqXpeDprxxlUibU2dI6PpAuKZPWC4IDbEYD1giS/QZsSnk
UbWhUEF6iURYBgupUjgFID616PG1EtCHjAxR2UutZWJfThcBn+Izw1PQoec1S5JW
SSig4zgQn4njPcIZ7wSUR72TvJAjWq5KT2dTnIff+42Aqf1a1N44i+8BpuQH6e/5
FwAlSHoh4aeOo4I+gRxFR4qGXQyqQ9myelnrV1sf4GYrL+1ZB+jOep4V+vGzrB4H
MD7jS+bxF8i8wKj23V68yPfgg7l7KgTt2iixndvSrOeV1uUn/HWR2156aotclXu2
Q3dkhY5644h5sxdqQ+MKjPydhLnvJMMnP+RmREigbERxOJepyarIuFrCMoug4ZZC
iKsck4IvAYRdETTTOnugintWtid/Yhu6pU4EdlKyFIw3DYBz+dIt+1nBpSOeBKhG
UwCA07M4oosCNgvBk/SnngrYTthyrTPMtJCPGXa27mKeYFEOqdJyl6GFtqAkPiey
rt4dAeFDjdZJCK7Z4GYDVQXNTZqJVu1JhtEPmOpEP2gQkBkAeIQNrB/g5jwDOM5Z
mPxHfoVST8MFfHzbzYnvlUm3MFdlLL44Ng82ywvhIJjrV1jkIxLsGQEp2l84sdsd
wkONa6S/MC8=
=dD+w
-----END PGP SIGNATURE-----