Gismetro weather stopped working today. Tried refresh and reboot but nothing.
weather.gismeteo [v.0.6.3+matrix.1]: Unhandled exception detected!
2023-11-29 20:08:10.488 T:1511 error : weather.gismeteo [v.0.6.3+matrix.1]: *** Start diagnostic info ***
2023-11-29 20:08:10.488 T:1511 error : weather.gismeteo [v.0.6.3+matrix.1]: System info: uname_result(system=‘Linux’, node=‘osmc’, release=‘5.15.92-1-osmc’, version=‘#1 SMP PREEMPT Tue Jul 25 00:03:42 UTC 2023’, machine=‘armv7’)
2023-11-29 20:08:10.488 T:1511 error : weather.gismeteo [v.0.6.3+matrix.1]: OS info: Busy
2023-11-29 20:08:10.488 T:1511 error : weather.gismeteo [v.0.6.3+matrix.1]: Kodi version: 20.2
2023-11-29 20:08:10.488 T:1511 error : weather.gismeteo [v.0.6.3+matrix.1]: File: /home/osmc/.kodi/addons/weather.gismeteo/resources/libs/gismeteo.py
2023-11-29 20:08:10.488 T:1511 error : weather.gismeteo [v.0.6.3+matrix.1]: Code context:
172: ‘pressure’: {‘min’: self._get_int(xml_day.attrib[‘pmin’]),
173: ‘max’: self._get_int(xml_day.attrib[‘pmax’]),
174:> ‘avg’: self._get_int(xml_day.attrib[‘p’]),
175: },
176: ‘cloudiness’: xml_day.attrib[‘cl’],
2023-11-29 20:08:10.489 T:1511 error : weather.gismeteo [v.0.6.3+matrix.1]: Global variables:
GismeteoClient = <class ‘resources.libs.gismeteo.GismeteoClient’>
GismeteoError = <class ‘resources.libs.gismeteo.GismeteoError’>
calendar = <module ‘calendar’ from ‘/usr/lib/python3.9/calendar.py’>
etree = <module ‘xml.etree.cElementTree’ from ‘/usr/lib/python3.9/xml/etree/cElementTree.py’>
requests = <module ‘requests’ from ‘/home/osmc/.kodi/addons/script.module.requests/lib/requests/init.py’>
time = <module ‘time’ (built-in)>
unicode_literals = _Feature((2, 6, 0, ‘alpha’, 2), (3, 0, 0, ‘alpha’, 0), 2097152)
2023-11-29 20:08:10.489 T:1511 error : weather.gismeteo [v.0.6.3+matrix.1]: Local variables:
result =
self = <resources.libs.Gismeteo object at 0xd9069d48>
tzone = -180
xml_day = <Element ‘day’ at 0xd8a5d0f0>
xml_location = <Element ‘location’ at 0xd8a69f00>
2023-11-29 20:08:10.489 T:1511 error : weather.gismeteo [v.0.6.3+matrix.1]: **** End diagnostic info ****
2023-11-29 20:08:10.495 T:1511 error : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<–
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class ‘KeyError’>
Error Contents: ‘p’
Traceback (most recent call last):
File “/home/osmc/.kodi/addons/script.module.simpleplugin3/libs/simpleplugin.py”, line 795, in _get_cached_data
data, timestamp = cache[key]
File “/home/osmc/.kodi/addons/script.module.simpleplugin3/libs/simpleplugin.py”, line 381, in getitem
raise KeyError(key)
KeyError: “_location_forecast(‘en’, ‘10589’){}”
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/osmc/.kodi/addons/weather.gismeteo/default.py", line 498, in <module>
weather.run()
File "/home/osmc/.kodi/addons/weather.gismeteo/resources/libs/simpleweather/simpleweather.py", line 475, in run
self._resolve_function()
File "/home/osmc/.kodi/addons/script.module.simpleplugin3/libs/simpleplugin.py", line 1128, in _resolve_function
return action_callable(self._params)
File "/home/osmc/.kodi/addons/weather.gismeteo/default.py", line 364, in forecast
data = _location_forecast(lang, location.id)
File "/home/osmc/.kodi/addons/script.module.simpleplugin3/libs/simpleplugin.py", line 850, in inner_wrapper
return self._get_cached_data(cache, func, duration,
File "/home/osmc/.kodi/addons/script.module.simpleplugin3/libs/simpleplugin.py", line 801, in _get_cached_data
data = func(*args, **kwargs)
File "/home/osmc/.kodi/addons/weather.gismeteo/default.py", line 415, in _location_forecast
return _call_method(gismeteo.forecast, params)
File "/home/osmc/.kodi/addons/weather.gismeteo/default.py", line 472, in _call_method
return func(**params)
File "/home/osmc/.kodi/addons/weather.gismeteo/resources/libs/gismeteo.py", line 263, in forecast
return self._get_forecast_info(x)
File "/home/osmc/.kodi/addons/weather.gismeteo/resources/libs/gismeteo.py", line 107, in _get_forecast_info
'days': self._get_days_forecast(xml_location),
File "/home/osmc/.kodi/addons/weather.gismeteo/resources/libs/gismeteo.py", line 174, in _get_days_forecast
'avg': self._get_int(xml_day.attrib['p']),
KeyError: 'p'
-->End of Python script error report<--