sander1988 / Indego

Home Assistant Custom Component for Bosch Indego Lawn Mower
Apache License 2.0
95 stars 29 forks source link

Problems after update to 2023.4.0 #175

Closed Bastiman75 closed 1 year ago

Bastiman75 commented 1 year ago

After updating yesterday my indego seems to have some problems.

Home Assistant 2023.4.0 Supervisor 2023.04.0 Operating System 9.5 Frontend 20230405.0 - latest

Logger: homeassistant.setup Source: setup.py:213 First occurred: 07:38:29 (1 occurrences) Last logged: 07:38:29

Setup failed for custom integration indego: Unable to import component: Exception importing custom_components.indego

Unexpected exception importing component custom_components.indego Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/pkg_resources/init.py", line 3038, in _dep_map return self.dep_map File "/usr/local/lib/python3.10/site-packages/pkg_resources/init.py", line 2834, in getattr__ raise AttributeError(attr) AttributeError: _DistInfoDistribution__dep_map

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/pkg_resources/init.py", line 3029, in _parsed_pkg_info return self._pkg_info File "/usr/local/lib/python3.10/site-packages/pkg_resources/init.py", line 2834, in getattr raise AttributeError(attr) AttributeError: _pkg_info

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/loader.py", line 760, in get_component cache[self.domain] = importlib.import_module(self.pkg_path) File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/config/custom_components/indego/init.py", line 38, in from pyIndego import IndegoAsyncClient File "/usr/local/lib/python3.10/site-packages/pyIndego/init.py", line 6, in version = get_distribution(dist_name).version File "/usr/local/lib/python3.10/site-packages/pkg_resources/init.py", line 514, in get_distribution dist = get_provider(dist) File "/usr/local/lib/python3.10/site-packages/pkg_resources/init.py", line 386, in get_provider return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0] File "/usr/local/lib/python3.10/site-packages/pkg_resources/init.py", line 956, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/local/lib/python3.10/site-packages/pkg_resources/init.py", line 820, in resolve new_requirements = dist.requires(req.extras)[::-1] File "/usr/local/lib/python3.10/site-packages/pkg_resources/init.py", line 2754, in requires dm = self._dep_map File "/usr/local/lib/python3.10/site-packages/pkg_resources/init.py", line 3040, in _dep_map self.dep_map = self._compute_dependencies() File "/usr/local/lib/python3.10/site-packages/pkg_resources/init.py", line 3049, in _compute_dependencies for req in self._parsed_pkg_info.get_all('Requires-Dist') or []: File "/usr/local/lib/python3.10/site-packages/pkg_resources/init.py", line 3031, in _parsed_pkg_info metadata = self.get_metadata(self.PKG_INFO) File "/usr/local/lib/python3.10/site-packages/pkg_resources/init.py", line 1475, in get_metadata value = self._get(path) File "/usr/local/lib/python3.10/site-packages/pkg_resources/init__.py", line 1684, in _get with open(path, 'rb') as stream: FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.10/site-packages/pytz-2023.3.dist-info/METADATA'

Bastiman75 commented 1 year ago

After a restore and new Update and a restart it’s now working