Перестал работать интернет в Kodi

Около месяца назад установил Коди. Все настроил, все работало. Несколько дней назад перестала обновляться погода через плагин Гисметео. Так как он мне не критично нужен, не придал этому значения, подумал что в плагине что-то сломалось. А вчера отвалился плагин для Ютуба - ни одно видео не показывает. Так же не показывает с ютуба, если отправлять ссылку с телефона. Следом перестал работать плагин Яндекс музыки.

В настройках Коди показывает, что интернет есть. Айпт от роутера получен.

В терминале пинг идёт, wget и yt-dlp скачивают.

Что могло сломаться в коди?
Лог ?
https://kodi.wiki/view/Log_file/Advanced

cat  ~/.kodi/temp/kodi.log
vs220
Лог
Как раз оттуда и начал смотреть. Но последняя запись в этот файл была 2021-11-27.

Нашел в /var/lib/kodi/.kodi/temp. Не знаю то ли это?

2021-12-30 06:42:16.594 T:14824    INFO <general>: Python interpreter stopped
2021-12-30 07:12:16.617 T:15010    INFO <general>: WEATHER: Downloading weather
2021-12-30 07:12:16.618 T:15011    INFO <general>: initializing python engine.
2021-12-30 07:12:16.782 T:15011   ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'ImportError'>
                                                   Error Contents: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
                                                   Traceback (most recent call last):
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/default.py", line 12, in <module>
                                                       from resources.libs import Gismeteo, GismeteoError, Location, Weather, WebClientError
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/resources/libs/__init__.py", line 9, in <module>
                                                       from .simpleweather import Weather as SW_Weather
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/resources/libs/simpleweather/__init__.py", line 6, in <module>
                                                       from .simpleweather import (WeatherProperties, Weather,
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/resources/libs/simpleweather/simpleweather.py", line 9, in <module>
                                                       import simpleplugin
                                                     File "/var/lib/kodi/.kodi/addons/script.module.simpleplugin3/libs/simpleplugin.py", line 30, in <module>
                                                       from collections import MutableMapping, namedtuple
                                                   ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
                                                   -->End of Python script error report<--

2021-12-30 07:12:16.805 T:15011    INFO <general>: Python interpreter stopped
2021-12-30 07:42:16.823 T:15175    INFO <general>: WEATHER: Downloading weather
2021-12-30 07:42:16.823 T:15176    INFO <general>: initializing python engine.
2021-12-30 07:42:16.992 T:15176   ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'ImportError'>
                                                   Error Contents: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
                                                   Traceback (most recent call last):
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/default.py", line 12, in <module>
                                                       from resources.libs import Gismeteo, GismeteoError, Location, Weather, WebClientError
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/resources/libs/__init__.py", line 9, in <module>
                                                       from .simpleweather import Weather as SW_Weather
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/resources/libs/simpleweather/__init__.py", line 6, in <module>
                                                       from .simpleweather import (WeatherProperties, Weather,
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/resources/libs/simpleweather/simpleweather.py", line 9, in <module>
                                                       import simpleplugin
                                                     File "/var/lib/kodi/.kodi/addons/script.module.simpleplugin3/libs/simpleplugin.py", line 30, in <module>
                                                       from collections import MutableMapping, namedtuple
                                                   ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
                                                   -->End of Python script error report<--

2021-12-30 07:42:17.016 T:15176    INFO <general>: Python interpreter stopped
2021-12-30 08:12:17.035 T:15369    INFO <general>: WEATHER: Downloading weather
2021-12-30 08:12:17.035 T:15370    INFO <general>: initializing python engine.
2021-12-30 08:12:17.195 T:15370   ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'ImportError'>
                                                   Error Contents: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
                                                   Traceback (most recent call last):
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/default.py", line 12, in <module>
                                                       from resources.libs import Gismeteo, GismeteoError, Location, Weather, WebClientError
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/resources/libs/__init__.py", line 9, in <module>
                                                       from .simpleweather import Weather as SW_Weather
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/resources/libs/simpleweather/__init__.py", line 6, in <module>
                                                       from .simpleweather import (WeatherProperties, Weather,
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/resources/libs/simpleweather/simpleweather.py", line 9, in <module>
                                                       import simpleplugin
                                                     File "/var/lib/kodi/.kodi/addons/script.module.simpleplugin3/libs/simpleplugin.py", line 30, in <module>
                                                       from collections import MutableMapping, namedtuple
                                                   ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
                                                   -->End of Python script error report<--

2021-12-30 08:12:17.217 T:15370    INFO <general>: Python interpreter stopped
2021-12-30 08:42:17.241 T:15547    INFO <general>: WEATHER: Downloading weather
2021-12-30 08:42:17.241 T:15548    INFO <general>: initializing python engine.
2021-12-30 08:42:17.399 T:15548   ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'ImportError'>
                                                   Error Contents: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
                                                   Traceback (most recent call last):
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/default.py", line 12, in <module>
                                                       from resources.libs import Gismeteo, GismeteoError, Location, Weather, WebClientError
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/resources/libs/__init__.py", line 9, in <module>
                                                       from .simpleweather import Weather as SW_Weather
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/resources/libs/simpleweather/__init__.py", line 6, in <module>
                                                       from .simpleweather import (WeatherProperties, Weather,
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/resources/libs/simpleweather/simpleweather.py", line 9, in <module>
                                                       import simpleplugin
                                                     File "/var/lib/kodi/.kodi/addons/script.module.simpleplugin3/libs/simpleplugin.py", line 30, in <module>
                                                       from collections import MutableMapping, namedtuple
                                                   ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
                                                   -->End of Python script error report<--

2021-12-30 08:42:17.421 T:15548    INFO <general>: Python interpreter stopped
2021-12-30 09:12:17.454 T:15748    INFO <general>: WEATHER: Downloading weather
2021-12-30 09:12:17.454 T:15749    INFO <general>: initializing python engine.
2021-12-30 09:12:17.613 T:15749   ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'ImportError'>
                                                   Error Contents: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
                                                   Traceback (most recent call last):
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/default.py", line 12, in <module>
                                                       from resources.libs import Gismeteo, GismeteoError, Location, Weather, WebClientError
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/resources/libs/__init__.py", line 9, in <module>
                                                       from .simpleweather import Weather as SW_Weather
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/resources/libs/simpleweather/__init__.py", line 6, in <module>
                                                       from .simpleweather import (WeatherProperties, Weather,
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/resources/libs/simpleweather/simpleweather.py", line 9, in <module>
                                                       import simpleplugin
                                                     File "/var/lib/kodi/.kodi/addons/script.module.simpleplugin3/libs/simpleplugin.py", line 30, in <module>
                                                       from collections import MutableMapping, namedtuple
                                                   ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
                                                   -->End of Python script error report<--

2021-12-30 09:12:17.635 T:15749    INFO <general>: Python interpreter stopped
2021-12-30 09:42:17.655 T:15938    INFO <general>: WEATHER: Downloading weather
2021-12-30 09:42:17.656 T:15939    INFO <general>: initializing python engine.
2021-12-30 09:42:17.823 T:15939   ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'ImportError'>
                                                   Error Contents: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
                                                   Traceback (most recent call last):
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/default.py", line 12, in <module>
                                                       from resources.libs import Gismeteo, GismeteoError, Location, Weather, WebClientError
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/resources/libs/__init__.py", line 9, in <module>
                                                       from .simpleweather import Weather as SW_Weather
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/resources/libs/simpleweather/__init__.py", line 6, in <module>
                                                       from .simpleweather import (WeatherProperties, Weather,
                                                     File "/var/lib/kodi/.kodi/addons/weather.gismeteo/resources/libs/simpleweather/simpleweather.py", line 9, in <module>
                                                       import simpleplugin
                                                     File "/var/lib/kodi/.kodi/addons/script.module.simpleplugin3/libs/simpleplugin.py", line 30, in <module>
                                                       from collections import MutableMapping, namedtuple
                                                   ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
                                                   -->End of Python script error report<--

2021-12-30 09:42:17.847 T:15939    INFO <general>: Python interpreter stopped
2021-12-30 09:49:09.586 T:578      INFO <general>: JSONRPC Server: New connection added
2021-12-30 09:49:10.077 T:533     ERROR <general>: Unable to find plugin plugin.video.sendtokodi
2021-12-30 09:49:40.510 T:578      INFO <general>: JSONRPC Server: Disconnection detected

Еще в /var/lib/kodi/ есть несколько файлов kodi_crashlog_*. В них в основном повторяются такие строки:
2021-12-25 22:52:55.556 T:630     ERROR <general>: Unable to lookup host: 'www.msftncsi.com'
2021-12-25 22:52:55.560 T:630     ERROR <general>: CCurlFile::Exists - Failed: Couldn't resolve host name(6) for http://www.msftncsi.com/ncsi.txt
2021-12-25 22:52:55.595 T:630     ERROR <general>: Unable to lookup host: 'www.w3.org'
abc
ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
С питоном разбираться, почему не может найти. Все питоновские пакеты из официальных реп?
Хотя возможно старый пакет или скрипт просто какой то
.
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
Тогда или переделывать скрипт или откатывать все питоновские на 3.9
abc
Error Contents: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
Погугли по этой фразе ... и станет понятно ... первое, что попалось (хотя ссылка старая, около года)

PS - хотя посмотрел внимательнее, вроде бы это не то .... но гуглить всеравно нужно обязательно
Ошибки не исчезают с опытом - они просто умнеют
vs220
Все питоновские пакеты из официальных реп?
Отдельно ничего связанного с питоном не ставил.

Сейчас у меня Python 3.10.1.

Погуглил. Да, дело именно в версии питона. Будем разбираться. Спасибо за наводку.
abc
ничего связанного с питоном не ставил

Скрипт
/var/lib/kodi/.kodi/addons/weather.gismeteo/default.py
не из официальных реп арча, с 3.10 не работает надо переделывать в соответствии с новыми правилами.
Создайте дискуссию на гите аддона
вроде он https://github.com/vlmaksime/weather.gismeteo
без самого скрипта трудно точно определить
 
Зарегистрироваться или войдите чтобы оставить сообщение.