My Python application works in 18.10 fine, but when upgrading to 19.10 for development reasons the same script produces the errors reported below. I have checked on the Python bug tracker and there are no related bug reports.
Traceback (most recent call last):
File "/usr/lib/python3.7/urllib/request.py", line 1317, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "/usr/lib/python3.7/http/client.py", line 1229, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1275, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1224, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1016, in _send_output
self.send(msg)
File "/usr/lib/python3.7/http/client.py", line 956, in send
self.connect()
File "/usr/lib/python3.7/http/client.py", line 1384, in connect
super().connect()
File "/usr/lib/python3.7/http/client.py", line 928, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/usr/lib/python3.7/socket.py", line 707, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/lib/python3.7/socket.py", line 748, 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/pihole-panel/main.py", line 312, in <module>
win = GridWindow()
File "/usr/lib/pihole-panel/main.py", line 37, in __init__
self.updates_frame = self.draw_updates_frame()
File "/usr/lib/pihole-panel/main.py", line 132, in draw_updates_frame
if self.version_check() == True:
File "/usr/lib/pihole-panel/main.py", line 53, in version_check
get_version = urlopen('https://raw.githubusercontent.com/daleosm/PiHole-Panel/master/VERSION').read()
File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.7/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/usr/lib/python3.7/urllib/request.py", line 543, in _open
'_open', req)
File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/usr/lib/python3.7/urllib/request.py", line 1360, in https_open
context=self._context, check_hostname=self._check_hostname)
File "/usr/lib/python3.7/urllib/request.py", line 1319, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>
My Python application works in 18.10 fine, but when upgrading to 19.10 for development reasons the same script produces the errors reported below. I have checked on the Python bug tracker and there are no related bug reports.
Traceback (most recent call last): python3. 7/urllib/ request. py", line 1317, in do_open chunked= req.has_ header( 'Transfer- encoding' )) python3. 7/http/ client. py", line 1229, in request _send_request( method, url, body, headers, encode_chunked) python3. 7/http/ client. py", line 1275, in _send_request endheaders( body, encode_ chunked= encode_ chunked) python3. 7/http/ client. py", line 1224, in endheaders _send_output( message_ body, encode_ chunked= encode_ chunked) python3. 7/http/ client. py", line 1016, in _send_output python3. 7/http/ client. py", line 956, in send python3. 7/http/ client. py", line 1384, in connect ).connect( ) python3. 7/http/ client. py", line 928, in connect host,self. port), self.timeout, self.source_ address) python3. 7/socket. py", line 707, in create_connection python3. 7/socket. py", line 748, in getaddrinfo getaddrinfo( host, port, family, type, proto, flags):
File "/usr/lib/
encode_
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.send(msg)
File "/usr/lib/
self.connect()
File "/usr/lib/
super(
File "/usr/lib/
(self.
File "/usr/lib/
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/lib/
for res in _socket.
socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last): pihole- panel/main. py", line 312, in <module> pihole- panel/main. py", line 37, in __init__ updates_ frame = self.draw_ updates_ frame() pihole- panel/main. py", line 132, in draw_updates_frame check() == True: pihole- panel/main. py", line 53, in version_check /raw.githubuser content. com/daleosm/ PiHole- Panel/master/ VERSION' ).read() python3. 7/urllib/ request. py", line 222, in urlopen python3. 7/urllib/ request. py", line 525, in open python3. 7/urllib/ request. py", line 543, in _open python3. 7/urllib/ request. py", line 503, in _call_chain python3. 7/urllib/ request. py", line 1360, in https_open self._context, check_hostname= self._check_ hostname) python3. 7/urllib/ request. py", line 1319, in do_open error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>
File "/usr/lib/
win = GridWindow()
File "/usr/lib/
self.
File "/usr/lib/
if self.version_
File "/usr/lib/
get_version = urlopen('https:/
File "/usr/lib/
return opener.open(url, data, timeout)
File "/usr/lib/
response = self._open(req, data)
File "/usr/lib/
'_open', req)
File "/usr/lib/
result = func(*args)
File "/usr/lib/
context=
File "/usr/lib/
raise URLError(err)
urllib.