franc6 / ics_calendar

Provides an ICS (icalendar) platform for the Home Assistant calendar
Apache License 2.0
146 stars 22 forks source link

ModuleNotFoundError: Platform ics_calendar.calendar not found #168

Open voronind-com opened 6 days ago

voronind-com commented 6 days ago

Hass 2024.9.1, plugin 5.0.3

Sep 16 04:26:48 iot hass[370]: 2024-09-16 04:26:48.311 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry  for ics_calendar
Sep 16 04:26:48 iot hass[370]: Traceback (most recent call last):
Sep 16 04:26:48 iot hass[370]:   File "/nix/store/asjvw7bffk54aawfkvyq3a57psci7b37-homeassistant-2024.9.1/lib/python3.12/site-packages/homeassistant/config_entries.py", line 604, in async_setup
Sep 16 04:26:48 iot hass[370]:     result = await component.async_setup_entry(hass, self)
Sep 16 04:26:48 iot hass[370]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 16 04:26:48 iot hass[370]:   File "/var/lib/hass/custom_components/ics_calendar/__init__.py", line 202, in async_setup_entry
Sep 16 04:26:48 iot hass[370]:     await hass.config_entries.async_forward_entry_setups(entry, ["calendar"])
Sep 16 04:26:48 iot hass[370]:   File "/nix/store/asjvw7bffk54aawfkvyq3a57psci7b37-homeassistant-2024.9.1/lib/python3.12/site-packages/homeassistant/config_entries.py", line 2108, in async_forward_entry_setups
Sep 16 04:26:48 iot hass[370]:     await integration.async_get_platforms(platforms)
Sep 16 04:26:48 iot hass[370]:   File "/nix/store/asjvw7bffk54aawfkvyq3a57psci7b37-homeassistant-2024.9.1/lib/python3.12/site-packages/homeassistant/loader.py", line 1116, in async_get_platforms
Sep 16 04:26:48 iot hass[370]:     if platform := self._get_platform_cached_or_raise(platform_name):
Sep 16 04:26:48 iot hass[370]:                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 16 04:26:48 iot hass[370]:   File "/nix/store/asjvw7bffk54aawfkvyq3a57psci7b37-homeassistant-2024.9.1/lib/python3.12/site-packages/homeassistant/loader.py", line 1207, in _get_platform_cached_or_raise
Sep 16 04:26:48 iot hass[370]:     raise ModuleNotFoundError(
Sep 16 04:26:48 iot hass[370]: ModuleNotFoundError: Platform ics_calendar.calendar not found
franc6 commented 5 days ago

The error seems to suggest the component isn’t correctly installed. Can you verify the files are installed as noted in README.md?

voronind-com commented 5 days ago

The error seems to suggest the component isn’t correctly installed. Can you verify the files are installed as noted in README.md?

I install the extension via HACS. Is that alright? Old versions (before 5.0.0) worked, I've been using this plugin for a while.

franc6 commented 5 days ago

As a general rule, yes, that’s a great way to install it. Installation through HACS is the preferred method. However, there have been reports of failed installs through HACS, both for this component and others (but it’s been years since I last heard of problems). Reinstalling fixed it. But that might not be your problem, which is why I asked if you can verify if all the files were installed.

voronind-com commented 5 days ago

As a general rule, yes, that’s a great way to install it. Installation through HACS is the preferred method. However, there have been reports of failed installs through HACS, both for this component and others (but it’s been years since I last heard of problems). Reinstalling fixed it. But that might not be your problem, which is why I asked if you can verify if all the files were installed.

Sorry, sure I'll verify that all files are present. Tho I've tried reinstalling multiple times different versions.

voronind-com commented 5 days ago

@franc6 Well it looks like all files are present. image

voronind-com commented 5 days ago

I am curious about this log line:

Error setting up entry for ics_calendar

Notice two spaces? Looks like entry name is empty. Should it be like that?