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

windows_to_olson issues #135077

Open
Destroyer061090 opened this issue Jan 8, 2025 · 3 comments
Open

windows_to_olson issues #135077

Destroyer061090 opened this issue Jan 8, 2025 · 3 comments

Comments

@Destroyer061090
Copy link

Destroyer061090 commented Jan 8, 2025

The problem

Updating to Core 2025.1.0, I noticed the following error related to an external integration. I'm unsure if this issue is genuinely tied to the external app or possibly connected to the Calendar (hence why I'm starting this thread). However, I resolved the problem "windows_to_olson" modifying /usr/local/lib/python3.13/site-packages/icalevents/icalparser.py of package icalevents replacing "from icalendar.windows_to_olson import WINDOWS_TO_OLSON" to "from icalendar.timezone.windows_to_olson import WINDOWS_TO_OLSON".

Questo errore ha avuto origine da un'integrazione personalizzata.

Registratore: custom_components.waste_collection_schedule.waste_collection_schedule.source_shell
Fonte: custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py:226
Integrazione: Waste Collection Schedule (documentazione)
Prima occorrenza: 13:47:44 (1 occorrenze)
Ultimo accesso: 13:47:44

error loading source ics: No module named 'icalendar.windows_to_olson' Traceback (most recent call last): File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py", line 217, in create source_module: SourceModule = importlib.import_module( ~~~~~~~~~~~~~~~~~~~~~~~^ f"waste_collection_schedule.source.{source_name}" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, 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 "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source/ics.py", line 15, in <module> from waste_collection_schedule.service.ICS import ICS File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/ICS.py", line 7, in <module> from icalevents import icalevents File "/usr/local/lib/python3.13/site-packages/icalevents/icalevents.py", line 3, in <module> from .icalparser import parse_events, Event File "/usr/local/lib/python3.13/site-packages/icalevents/icalparser.py", line 18, in <module> from icalendar.windows_to_olson import WINDOWS_TO_OLSON ModuleNotFoundError: No module named 'icalendar.windows_to_olson'

ERROR 3:
Registratore: homeassistant.components.sensor
Fonte: helpers/entity_platform.py:366
Integrazione: Sensore (documentazione, problemi)
Prima occorrenza: 13:48:14 (6 occorrenze)
Ultimo accesso: 13:48:14

Error while setting up waste_collection_schedule platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/config/custom_components/waste_collection_schedule/sensor.py", line 147, in async_setup_platform
    raise ValueError(
        f"source_index {i} out of range (0-{len(api.shells) - 1}) please check your sensor configuration"
    )
ValueError: source_index 0 out of range (0--1) please check your sensor configuration

What version of Home Assistant Core has the issue?

2025.1.0 & 2025.1.1

What was the last working version of Home Assistant Core?

Just before 2025.1.0

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

icalevents

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

@home-assistant
Copy link

home-assistant bot commented Jan 8, 2025

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (calendar) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of calendar can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign calendar Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


calendar documentation
calendar source
(message by IssueLinks)

@Cyrelion
Copy link

This is related to a problem with the icalevents python library, see https://github.com/jazzband/icalevents/pull/145/files with the fix that is available sind 3 month, but not merged yet :-(

I've successfully tested it and it works for me now.

@DarthSonic
Copy link

This is related to a problem with the icalevents python library, see https://github.com/jazzband/icalevents/pull/145/files with the fix that is available sind 3 month, but not merged yet :-(

I've successfully tested it and it works for me now.

Using HAOS I can see no ICalEvents integration or smiliar. ICS Calendar integration already using ICalender 6.1:
"requirements": ["icalendar~=6.1","python-dateutil>=2.9.0.post0","pytz>=2024.1","recurring_ical_events~=3.3,>=3.3.4","ics>=0.7.2","arrow","httpx_auth>=0.22.0"],

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