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

caldav not working after update: No module named 'icalendar.prop' #138333

Open
chris-y opened this issue Feb 11, 2025 · 3 comments
Open

caldav not working after update: No module named 'icalendar.prop' #138333

chris-y opened this issue Feb 11, 2025 · 3 comments

Comments

@chris-y
Copy link

chris-y commented Feb 11, 2025

The problem

After updating from 2025.2.1 to 2025.2.2, I'm getting a notification that caldav setup has failed.

What version of Home Assistant Core has the issue?

2025.02.02

What was the last working version of Home Assistant Core?

2025.02.01

What type of installation are you running?

Home Assistant OS

Integration causing the issue

caldav

Link to integration documentation on our website

https://www.home-assistant.io/integrations/caldav/

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Logger: homeassistant.setup
Source: setup.py:340
First occurred: 14:26:11 (1 occurrences)
Last logged: 14:26:11

Setup failed for 'caldav': Unable to import component: No module named 'icalendar.prop'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 340, in _async_setup_component
    component = await integration.async_get_component()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1035, in async_get_component
    self._component_future.result()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1015, in async_get_component
    comp = await self.hass.async_add_import_executor_job(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        self._get_component, True
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1075, in _get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 201, in protected_loop_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, 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 1026, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/src/homeassistant/homeassistant/components/caldav/__init__.py", line 5, in <module>
    import caldav
  File "/usr/local/lib/python3.13/site-packages/caldav/__init__.py", line 8, in <module>
    from .davclient import DAVClient
  File "/usr/local/lib/python3.13/site-packages/caldav/davclient.py", line 15, in <module>
    from caldav.objects import Calendar
  File "/usr/local/lib/python3.13/site-packages/caldav/objects.py", line 19, in <module>
    import icalendar
  File "/usr/local/lib/python3.13/site-packages/icalendar/__init__.py", line 1, in <module>
    from icalendar.alarms import (
    ...<6 lines>...
    )
  File "/usr/local/lib/python3.13/site-packages/icalendar/alarms.py", line 19, in <module>
    from icalendar.cal import Alarm, Event, Todo
  File "/usr/local/lib/python3.13/site-packages/icalendar/cal.py", line 19, in <module>
    from icalendar.parser import Contentline, Contentlines, Parameters, q_join, q_split
  File "/usr/local/lib/python3.13/site-packages/icalendar/parser.py", line 386, in <module>
    from icalendar.prop import vText
ModuleNotFoundError: No module named 'icalendar.prop'

Additional information

No response

@home-assistant
Copy link

@MNieddu91
Copy link

Same problem here for me after last update to 2025.2.3

@CloCkWeRX
Copy link
Contributor

CloCkWeRX commented Feb 15, 2025

Similar to #138468 where a depedency restructured itself and there was a bad release of it.

But:
https://github.com/collective/icalendar/blob/main/src/icalendar/parser.py#L386

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

No branches or pull requests

3 participants