Source: pyte Version: 0.8.0-1 Severity: serious Hello, in Ubuntu the network is more strictly disabled, and the package FTBFS
I'm not sure if this is a change in sphinx or the new release dh_auto_build I: pybuild base:217: /usr/bin/python3 setup.py build running build running build_py creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/pyte copying pyte/compat.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/pyte copying pyte/graphics.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/pyte copying pyte/control.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/pyte copying pyte/__main__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/pyte copying pyte/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/pyte copying pyte/charsets.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/pyte copying pyte/escape.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/pyte copying pyte/modes.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/pyte copying pyte/streams.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/pyte copying pyte/screens.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/pyte python3 -m sphinx -b html -d docs/build/doctrees docs docs/build/html Running Sphinx v2.4.3 Configuration error: There is a programmable error in your configuration file: Traceback (most recent call last): File "/usr/lib/python3.8/urllib/request.py", line 1326, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "/usr/lib/python3.8/http/client.py", line 1240, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.8/http/client.py", line 1286, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.8/http/client.py", line 1235, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.8/http/client.py", line 1006, in _send_output self.send(msg) File "/usr/lib/python3.8/http/client.py", line 946, in send self.connect() File "/usr/lib/python3.8/http/client.py", line 1402, in connect super().connect() File "/usr/lib/python3.8/http/client.py", line 917, in connect self.sock = self._create_connection( File "/usr/lib/python3.8/socket.py", line 787, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): File "/usr/lib/python3.8/socket.py", line 918, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -2] Name or service not known During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/sphinx/config.py", line 348, in eval_config_file execfile_(filename, namespace) File "/usr/lib/python3/dist-packages/sphinx/util/pycompat.py", line 81, in execfile_ exec(code, _globals) File "/<<PKGBUILDDIR>>/docs/conf.py", line 106, in <module> tag = resolve_tag() File "/<<PKGBUILDDIR>>/docs/conf.py", line 99, in resolve_tag urlopen(linkcode_base_url + release) File "/usr/lib/python3.8/urllib/request.py", line 222, in urlopen return opener.open(url, data, timeout) File "/usr/lib/python3.8/urllib/request.py", line 525, in open response = self._open(req, data) File "/usr/lib/python3.8/urllib/request.py", line 542, in _open result = self._call_chain(self.handle_open, protocol, protocol + File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain result = func(*args) File "/usr/lib/python3.8/urllib/request.py", line 1369, in https_open return self.do_open(http.client.HTTPSConnection, req, File "/usr/lib/python3.8/urllib/request.py", line 1329, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [Errno -2] Name or service not known> make[1]: *** [debian/rules:11: override_dh_auto_build] Error 2 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:7: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 -------------------------------------------------------------------------------- Build finished at 20200507-1159 looking at the diff of the new version, my guess is to blame the new resolve_tag function +linkcode_base_url = "https://github.com/selectel/pyte/tree/" + +def resolve_tag(): + from urllib.request import urlopen + from urllib.error import HTTPError + try: + urlopen(linkcode_base_url + release) + except HTTPError: + return "master" + else: + return release + + +tag = resolve_tag() G.