mampfes / hacs_waste_collection_schedule

Home Assistant integration framework for (garbage collection) schedules
MIT License
1.08k stars 657 forks source link

[Bug]: Version 2.4.0 broken (No module named 'icalendar.windows_to_olson') #2987

Open BoGnY opened 9 hours ago

BoGnY commented 9 hours ago

I Have A Problem With:

The integration in general

What's Your Problem

The version 2.4.0 which try to fix icalendar v6 error get "No module named 'icalendar.windows_to_olson'"

Version 2.3.0 with ics calendar 5.0.3 (not 5.0.4) works without problem.

Not tested 'master' because there isn't master selectable: image

Source (if relevant)

contarina_it

Logs

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( ^^^^^^^^^^^^^^^^^^^^^^^^ 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/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.12/site-packages/icalevents/icalevents.py", line 3, in <module> from .icalparser import parse_events, Event File "/usr/local/lib/python3.12/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'

Relevant Configuration

waste_collection_schedule:
  sources:
    - name: ics
      args:
        regex: '.*: (.*)'
        split_at: ', '
        url: https://contarina.it/ajax/moduli/appbugfixapi/genera_ics_calendari?id_zona=19
      customize:
        - type: Carta
          icon: mdi:package-variant
        - type: Secco
          icon: mdi:dump-truck
        - type: Umido
          icon: mdi:compost
        - type: Vegetale
          icon: mdi:leaf
        - type: Vpl
          icon: mdi:bottle-wine

Checklist Source Error

Checklist Sensor Error

Required

ReneNulschDE commented 9 hours ago

Did you installed ics_calendar 5.0.4 after the update?

BoGnY commented 7 hours ago

Many installation.. Tried all combinations...

Started with iCalendar 5.0.3 and WCS 2.3.0 and in this order: Updated iCalendar to 5.0.4: broken Downgraded iCalendar to 5.0.3 as suggested in other issue: work again Updated iCalendar to 5.0.4 and WCS to 2.4.0: broken Downgraded iCalendar to 5.0.3: broken Downgraded WCS to 2.3.0: broken

Every step with reboot.

Now with iCalendar 5.0.3 and WCS 2.3.0 is not working 😅 (source ics not found)..

I have HAOS on raspberry.. Tomorrow I try to uninstall all, rebooting and reinstalling iCalendar 5.0.3 and WCS 2.3.0 until fix