Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gismetro stopped working in OSMC #22

Closed
lindelux opened this issue Nov 30, 2023 · 7 comments
Closed

Gismetro stopped working in OSMC #22

lindelux opened this issue Nov 30, 2023 · 7 comments

Comments

@lindelux
Copy link

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’){}”
@vlmaksime
Copy link
Owner

Fixed at v0.6.4, You can download it at releases page

@atlanticcanadianscot
Copy link

*Thank You!

@lindelux
Copy link
Author

lindelux commented Dec 1, 2023

Hello, thanks for the quick fix but when I try to install from the zip file I get the following message in OSMC; "the dependency on xbmc.python 2.19 could not be satisfied".

@Zawardo1000
Copy link

Hello, thanks for the quick fix but when I try to install from the zip file I get the following message in OSMC; "the dependency on xbmc.python 2.19 could not be satisfied".

I suppose you are using a not Matrix zip on a 3.x python. Try the Matrix One.

@lindelux
Copy link
Author

lindelux commented Dec 1, 2023

The matrix one works fine. Thanks. What need to be changed in the code to get it to work?

@vlmaksime
Copy link
Owner

@lindelux Which version of KODI used at OSMC?

@lindelux
Copy link
Author

lindelux commented Dec 2, 2023

@lindelux Which version of KODI used at OSMC?

20.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants