2021-03-05, 08:48
Hi @bossanova808
I am frequently getting the following error on start up of kodi and after it no weather info will be displayed. I am now on matrix, but I was getting an error on Leia too.
Full debug log here: https://paste.ubuntu.com/p/9DZmmfZpGg/
Looks like its failing to connect to the BOM FTP?
I am frequently getting the following error on start up of kodi and after it no weather info will be displayed. I am now on matrix, but I was getting an error on Leia too.
Code:
2021-03-05 17:32:42.758 T:1154439 DEBUG <general>: ### Oz Weather 1.2.2 - Log in to BOM FTP
2021-03-05 17:32:42.760 T:1154439 ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'socket.gaierror'>
Error Contents: [Errno -3] Temporary failure in name resolution
Traceback (most recent call last):
File "/home/blaster/.kodi/addons/weather.ozweather/default.py", line 11, in <module>
ozweather.run(sys.argv)
File "/home/blaster/.kodi/addons/weather.ozweather/resources/lib/ozweather.py", line 31, in run
get_forecast()
File "/home/blaster/.kodi/addons/weather.ozweather/resources/lib/forecast.py", line 190, in get_forecast
forecast(location_url_path, radar)
File "/home/blaster/.kodi/addons/weather.ozweather/resources/lib/forecast.py", line 129, in forecast
buildImages(radarCode, updateRadarBackgrounds, backgroundsPath, overlayLoopPath)
File "/home/blaster/.kodi/addons/weather.ozweather/resources/lib/bom.py", line 175, in buildImages
ftp = ftplib.FTP("ftp.bom.gov.au")
File "/usr/lib/python3.8/ftplib.py", line 117, in __init__
self.connect(host)
File "/usr/lib/python3.8/ftplib.py", line 152, in connect
self.sock = socket.create_connection((self.host, self.port), self.timeout,
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 -3] Temporary failure in name resolution
-->End of Python script error report<--
2021-03-05 17:32:42.760 T:1154439 DEBUG <general>: onExecutionDone(8, /home/blaster/.kodi/addons/weather.ozweather/default.py)
Full debug log here: https://paste.ubuntu.com/p/9DZmmfZpGg/
Looks like its failing to connect to the BOM FTP?