[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1006790: python-unicodedata2: FTBFS without network access



Source: python-unicodedata2
Version: 14.0.0+ds-7
Severity: serious

See https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/python-unicodedata2.html
:  (I also see the same error in my custom build environment based on
sbuild, but using a systemd-nspawn container with network access
disabled.)

...

bunzip2 -ckd /usr/share/unicode/Unihan_NumericValues.txt.bz2 >
data/Unihan_NumericValues.txt
python3 makeunicodedata.py
--- Reading UnicodeData.txt ...
Traceback (most recent call last):
  File "/usr/lib/python3.9/urllib/request.py", line 1346, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File "/usr/lib/python3.9/http/client.py", line 1285, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.9/http/client.py", line 1331, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.9/http/client.py", line 1280, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.9/http/client.py", line 1040, in _send_output
    self.send(msg)
  File "/usr/lib/python3.9/http/client.py", line 980, in send
    self.connect()
  File "/usr/lib/python3.9/http/client.py", line 946, in connect
    self.sock = self._create_connection(
  File "/usr/lib/python3.9/socket.py", line 823, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/lib/python3.9/socket.py", line 954, 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 "/build/1st/python-unicodedata2-14.0.0+ds/makeunicodedata.py",
line 1356, in <module>
    maketables(1)
  File "/build/1st/python-unicodedata2-14.0.0+ds/makeunicodedata.py",
line 117, in maketables
    unicode = UnicodeData(UNIDATA_VERSION)
  File "/build/1st/python-unicodedata2-14.0.0+ds/makeunicodedata.py",
line 1004, in __init__
    for s in UcdFile(UNICODE_DATA, version):
  File "/build/1st/python-unicodedata2-14.0.0+ds/makeunicodedata.py",
line 934, in records
    with open_data(self.template, self.version) as file:
  File "/build/1st/python-unicodedata2-14.0.0+ds/makeunicodedata.py",
line 898, in open_data
    urllib.request.urlretrieve(url, filename=local)
  File "/usr/lib/python3.9/urllib/request.py", line 239, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.9/urllib/request.py", line 517, in open
    response = self._open(req, data)
  File "/usr/lib/python3.9/urllib/request.py", line 534, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.9/urllib/request.py", line 1375, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/usr/lib/python3.9/urllib/request.py", line 1349, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in
name resolution>
make[1]: *** [debian/rules:17: override_dh_auto_build] Error 1
make[1]: Leaving directory '/build/1st/python-unicodedata2-14.0.0+ds'
make: *** [debian/rules:9: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
-- 
Daniel Schepler


Reply to: