YorkshireIoT/ha-google-fit

No module named 'googleapiclient.discovery_cache.base'

Opened this issue · 0 comments

GuyKh commented

System Health details

System Information

version core-2024.11.3
installation_type Home Assistant Container
dev false
hassio false
docker true
user root
virtualenv false
python_version 3.12.4
os_name Linux
os_version 6.11.0-9-generic
arch x86_64
timezone Asia/Jerusalem
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
HACS Data ok
GitHub API Calls Remaining 4948
Installed Version 2.0.1
Stage running
Available Repositories 1495
Downloaded Repositories 107
AccuWeather
can_reach_server ok
remaining_requests 44
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Dashboards
dashboards 3
resources 66
views 22
mode storage
Recorder
oldest_recorder_run December 1, 2024 at 11:41 AM
current_recorder_run December 3, 2024 at 2:11 PM
estimated_db_size 286.00 MiB
database_engine mysql
database_version 10.11.10
Sonoff
version 3.8.1 (ffa7e22)
cloud_online 2 / 4
local_online 2 / 2
Spotify
api_endpoint_reachable ok

Checklist

  • I have enabled debug logging for my installation and pasted in the debug logs below.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently previous issues..

Describe the issue

image

Integration Version

v4.0.2

Reproduction steps

N/A

Debug logs

2024-12-03 14:11:53.016 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration 'google_fit': Unable to import component: No module named 'googleapiclient.discovery_cache.base' 
Traceback (most recent call last): 
  File "/usr/src/homeassistant/homeassistant/setup.py", line 334, in _async_setup_component 
    component = await integration.async_get_component() 
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1031, in async_get_component 
    self._component_future.result() 
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1011, in async_get_component 
    comp = await self.hass.async_add_import_executor_job( 
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run 
    result = self.fn(*self.args, **self.kwargs) 
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1071, in _get_component 
    ComponentProtocol, importlib.import_module(self.pkg_path) 
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func 
    return func(*args, **kwargs) 
           ^^^^^^^^^^^^^^^^^^^^^ 
  File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module 
    return _bootstrap._gcd_import(name[level:], package, level) 
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import 
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load 
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked 
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked 
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module 
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed 
  File "/config/custom_components/google_fit/__init__.py", line 18, in <module> 
    from .coordinator import Coordinator 
  File "/config/custom_components/google_fit/coordinator.py", line 18, in <module> 
    from .api import AsyncConfigEntryAuth, GoogleFitParse 
  File "/config/custom_components/google_fit/api.py", line 9, in <module> 
    from googleapiclient.discovery_cache.base import Cache 
ModuleNotFoundError: No module named 'googleapiclient.discovery_cache.base'