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 <sanv...@debian.org> [2024-07-23 21:13]:
Package: src:lexicon
Version: 3.17.0-1
Severity: serious
Tags: ftbfs

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:
         _make_dir(cache_filepath)

/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:
             os.makedirs(os.path.dirname(filename))
E               PermissionError: [Errno 13] Permission denied: 
'/sbuild-nonexistent'

/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:
         text = find_first_response(
               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()
     raise SuffixListNotFound(
           "No remote Public Suffix List found. Consider using a mirror, or avoid 
this"
           " fetch by constructing your TLDExtract with `suffix_list_urls=()`."
       )
E       tldextract.suffix_list.SuffixListNotFound: No remote Public Suffix List 
found. Consider using a mirror, or avoid this fetch by constructing your 
TLDExtract with `suffix_list_urls=()`.

/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'

 ???
E   FileNotFoundError: [Errno 2] No such file or directory: 
'/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.

Attachment: signature.asc
Description: PGP signature

Reply via email to