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

[Bug]: Error during setup of component waste_collection_schedule #3390

Open
7 tasks done
screamer3003 opened this issue Jan 3, 2025 · 78 comments
Open
7 tasks done

[Bug]: Error during setup of component waste_collection_schedule #3390

screamer3003 opened this issue Jan 3, 2025 · 78 comments

Comments

@screamer3003
Copy link

I Have A Problem With:

The integration in general

What's Your Problem

After Update to Hassio 2025.1.0 I get this error

Source (if relevant)

No response

Logs

Logger: homeassistant.setup
Quelle: setup.py:416
Erstmals aufgetreten: 21:40:34 (1 Vorkommnisse)
Zuletzt protokolliert: 21:40:34

Error during setup of component waste_collection_schedule
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/config/custom_components/waste_collection_schedule/init_yaml.py", line 109, in async_setup
    await hass.async_add_executor_job(
    ...<6 lines>...
    )
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/waste_collection_schedule/waste_collection_api.py", line 88, in add_source_shell
    new_shell = SourceShell.create(
        source_name=source_name,
    ...<3 lines>...
        day_offset=day_offset,
    )
  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 16, in <module>
    from waste_collection_schedule.service.ICS_v1 import ICS_v1
  File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/ICS_v1.py", line 6, in <module>
    import recurring_ical_events
  File "/usr/local/lib/python3.13/site-packages/recurring_ical_events.py", line 1530, in <module>
    class CalendarQuery:
    ...<193 lines>...
            raise IndexError("No components found.")
  File "/usr/local/lib/python3.13/site-packages/recurring_ical_events.py", line 1547, in CalendarQuery
    icalendar.InvalidCalendar,
    ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'icalendar' has no attribute 'InvalidCalendar'

Relevant Configuration

No response

Checklist Source Error

  • Use the example parameters for your source (often available in the documentation) (don't forget to restart Home Assistant after changing the configuration)
  • Checked that the website of your service provider is still working
  • Tested my attributes on the service provider website (if possible)
  • I have tested with the latest version of the integration (master) (for HACS in the 3 dot menu of the integration click on "Redownload" and choose master as version)

Checklist Sensor Error

  • Checked in the Home Assistant Calendar tab if the event names match the types names (if types argument is used)

Required

  • I have searched past (closed AND opened) issues to see if this bug has already been reported, and it hasn't been.
  • I understand that people give their precious time for free, and thus I've done my very best to make this problem as easy as possible to investigate.
@N3m3515
Copy link

N3m3515 commented Jan 3, 2025

Same Problem here

@realEntwickler
Copy link

Yep, me too!

2 similar comments
@sfcoze
Copy link

sfcoze commented Jan 3, 2025

Yep, me too!

@Marinko67
Copy link

Yep, me too!

@philadou
Copy link

philadou commented Jan 3, 2025

Me too :(

@superpower10
Copy link

Same here

@Schumbi
Copy link

Schumbi commented Jan 3, 2025

Similar here:

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'

@Finest
Copy link

Finest commented Jan 3, 2025

+1 same error

AttributeError: module 'icalendar' has no attribute 'InvalidCalendar'

@niclas911
Copy link

Hier auch der gleiche Fehler.

@eastvan
Copy link

eastvan commented Jan 3, 2025

Same issue after HA update to 2025.01

@Sugomojawe
Copy link

Bei mir auch der gleiche Fehler

@jimjaeger
Copy link

jimjaeger commented Jan 3, 2025

Same here:

related error in log:

Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/aiohttp/web_protocol.py", line 480, in _handle_request
    resp = await request_handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/web_app.py", line 569, in _handle
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 86, in ban_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware
    response = await handler(request)
               ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
    result = await handler(request, **request.match_info)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin
    return await func(self, request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 222, in post
    return await super().post(request, flow_id)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper
    return await method(view, request, data, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 122, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in async_configure
    result = await self._async_configure(flow_id, user_input)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 414, in _async_configure
    result = await self._async_handle_step(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        flow, cur_step["step_id"], user_input
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 517, in _async_handle_step
    result: _FlowResultT = await getattr(flow, method)(user_input)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/waste_collection_schedule/config_flow.py", line 409, in async_step_source
    return await self.async_step_args()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/waste_collection_schedule/config_flow.py", line 693, in async_step_args
    schema, module = await self.__get_arg_schema(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        self._source, self._extra_info_default_params, args_input
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/config/custom_components/waste_collection_schedule/config_flow.py", line 488, in __get_arg_schema
    module = await self.hass.async_add_executor_job(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        importlib.import_module, f"waste_collection_schedule.source.{source}"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  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 "", line 1387, in _gcd_import
  File "", line 1360, in _find_and_load
  File "", line 1331, in _find_and_load_unlocked
  File "", line 935, in _load_unlocked
  File "", line 1022, in exec_module
  File "", line 488, in _call_with_frames_removed
  File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source/bsr_de.py", line 5, in 
    from waste_collection_schedule.service.ICS import ICS
  File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/ICS.py", line 7, in 
    from icalevents import icalevents
  File "/usr/local/lib/python3.13/site-packages/icalevents/icalevents.py", line 3, in 
    from .icalparser import parse_events, Event
  File "/usr/local/lib/python3.13/site-packages/icalevents/icalparser.py", line 18, in 
    from icalendar.windows_to_olson import WINDOWS_TO_OLSON
ModuleNotFoundError: No module named 'icalendar.windows_to_olson'

@hremling
Copy link

hremling commented Jan 4, 2025

Same Issue here! I figuered out that all ics sources are broken after updating to 2025.1.0

@jimjaeger
Copy link

Sounds like: #2893 (comment)

@larp-welt
Copy link

+1 ... same problem here

@Bruchhardt2
Copy link

Bei mir auch seit dem Update auf HASS 2025.1.0

@bauerpower69
Copy link

Same here :-(

@JohnyBeGood
Copy link

+1 ... same problem here after updating to 2025.1.0

@ReviloEgros
Copy link

+1

@nima-1102
Copy link

Spamming 'same here' or '+1' is not useful, nor necessary. Add something of value, or just subscribe to the issue.

@ReviloEgros
Copy link

I solved this issue for me. just downgraded recurring-ical-events from 3.4.0 to 3.3.4, for now it is up and running again.

@superpower10
Copy link

I solved this issue for me. just downgraded recurring-ical-events from 3.4.0 to 3.3.4, for now it is up and running again.

What of recurring-ical-event? A HACS integration? Where do I find it? Because I didn’t install that manually.

If it’s a HACS integration than it’s not the reason because I don’t have that and waste_paper doesn’t work

@Presl1983
Copy link

#metoo

@yasars
Copy link

yasars commented Jan 4, 2025

Wait for an fix

@controllero
Copy link

me as well...

@bluenazgul
Copy link

same issue here after HA Update to 2025.1.0

@fishter
Copy link

fishter commented Jan 4, 2025

I think it's due to the iCalendar update to v6.1.0 for HA2025.1.0

Ensure icalendar==6.1.0 is installed for caldav integration (@jon6fingrs - #133541)
home-assistant/core#133541

@ReviloEgros
Copy link

I solved this issue for me. just downgraded recurring-ical-events from 3.4.0 to 3.3.4, for now it is up and running again.

What of recurring-ical-event? A HACS integration? Where do I find it? Because I didn’t install that manually.

If it’s a HACS integration than it’s not the reason because I don’t have that and waste_paper doesn’t work

it is a python package. you have to login via ssh to your home assistant

@ReviloEgros
Copy link

ReviloEgros commented Jan 4, 2025

I think it's due to the iCalendar update to v6.1.0 for HA2025.1.0

Ensure icalendar==6.1.0 is installed for caldav integration (@jon6fingrs - #133541) home-assistant/core#133541

my installed versions:
`homeassistant:/config# pip list |grep ical
ical 8.2.0
icalendar 5.0.13
icalevents 0.1.29
recurring-ical-events 3.3.4

`

had to downgrade first icalendar to 5.0.13 to fix the "No module named 'icalendar.windows_to_olson'" issue. and now after the 2025 update recurring-ical-events from 3.4.0. to 3.3.4 to fix "AttributeError: module 'icalendar' has no attribute 'InvalidCalendar'"

@Redskyer
Copy link

Redskyer commented Jan 5, 2025

I tried to fix it, but this fix don't work for me. I got a "Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble" error.

@Lagnus123
Copy link

Fix worked, thanks!

@ahessling
Copy link

To fix the "windows_to_olson" error, you need to edit icalevents/icalparser.py of package icalevents and replace from icalendar.windows_to_olson import WINDOWS_TO_OLSON by from icalendar.timezone.windows_to_olson import WINDOWS_TO_OLSON.

But strictly this has nothing to do with this package here, it is a problem of incompatible versions of the python packages icalevents and icalendar.

@LordHayne
Copy link

@KazemaRyukuro : @mmstano is correct. I deleted the /service/ICS_v1.py, commented out line 16 as well as 154-160 of /source/ics.py and gave HASS a restart. Works like a charm!

This works for me as well! Thank you

@justin19k
Copy link

To fix the "windows_to_olson" error, you need to edit icalevents/icalparser.py of package icalevents and replace from icalendar.windows_to_olson import WINDOWS_TO_OLSON by from icalendar.timezone.windows_to_olson import WINDOWS_TO_OLSON.

But strictly this has nothing to do with this package here, it is a problem of incompatible versions of the python packages icalevents and icalendar.

Hi! Perfect, that was very helpful. Now it's working for me :-)

Thanks!

@KazemaRyukuro
Copy link

Um den Fehler „windows_to_olson“ zu beheben, müssen Sie icalevents/icalparser.pydas Paket bearbeiten icaleventsund from icalendar.windows_to_olson import WINDOWS_TO_OLSONdurch ersetzen from icalendar.timezone.windows_to_olson import WINDOWS_TO_OLSON.

Aber strenggenommen hat dies nichts mit diesem Paket hier zu tun, sondern ist ein Problem inkompatibler Versionen der Python-Pakete icaleventsund icalendar.

Where can I find this? I have searched the whole folder and found nothing.

@z-master42
Copy link

It isn't a part of the integration.

@totti1171
Copy link

mmmh - i´ve complete deinstalled the Waste_collection, delete all entrys in configurations.yaml...

after the new HACS-install - the same ERROR "Unknown error occurred"

(It doesn't matter whether I try to create the data via the provider or via an ics file)

:-(

@z-master42
Copy link

Did you try the fix?

@KazemaRyukuro
Copy link

I don't know what I have to do now to get it to work.
I tried the fix, and now I get this error:

error loading source ics: No module named 'icalendar.windows_to_olson' Traceback (most recent call last)

@Elmraspi
Copy link

Elmraspi commented Jan 5, 2025

I tried the fix and first it was working. After some new restarts of HA (other changes) it is not longer working.
I get the error:

ERROR (SyncWorker_6) [custom_components.waste_collection_schedule.waste_collection_schedule.source_shell] error loading source ics:
No module named 'icalendar.windows_to_olson' 

Where can i find the file
icalevents/icalparser.py

@JohnyBeGood
Copy link

Just assuming the logic of the fix as was explained (pay close attention to the paths as mentioned to find the correct files) -

First, delete file ICS_v1.py

Second, in file ics.py, delete lines 16 and 154-160

that’s how I’m reading the fix. Haven’t tried it myself as I’ve had pretty bad luck doing 1st Wednesday of the month core updates for the last 3 months, so I’m just gonna wait a week or two. Good luck!

edit: just double checking the work, but I’m unsure if the fix included deleting line 144 in ics.py or not. I’d try trial and error, as I think that line 144 is just designating version 2 in the code. First try with it. If no dice, delete it and try again.

This works!
I'm using "Generic x86-64" on a standalone computer and here are the exact lines and files that need to be either deleted or commented out. Reboot afterwards. Hope it helps someone!

image image image

@z-master42
Copy link

I don't know what I have to do now to get it to work.
I tried the fix, and now I get this error:

error loading source ics: No module named 'icalendar.windows_to_olson' Traceback (most recent call last)

This is another error.

@z-master42
Copy link

I tried the fix and first it was working. After some new restarts of HA (other changes) it is not longer working.
I get the error:

ERROR (SyncWorker_6) [custom_components.waste_collection_schedule.waste_collection_schedule.source_shell] error loading source ics:
No module named 'icalendar.windows_to_olson' 

Where can i find the file
icalevents/icalparser.py

This is another error. The file is no part of this integration.

@justin19k
Copy link

justin19k commented Jan 6, 2025

I tried the fix and first it was working. After some new restarts of HA (other changes) it is not longer working. I get the error:

ERROR (SyncWorker_6) [custom_components.waste_collection_schedule.waste_collection_schedule.source_shell] error loading source ics:
No module named 'icalendar.windows_to_olson' 

Where can i find the file icalevents/icalparser.py

Hi!
You will not find the icalendar, icalevents, etc. files in the file editor. You must access the HomeAssistant structure via the SSH terminal. I'm also relatively new to the whole topic, but then stumbled across the Docker problem myself. I installed my HomeAssistant as a VM on ProxMox. This installs HomeAssistant as a Docker. In other words, if you try to access the folders via the SSH Terminal Addon, you are working in an environment that has no influence on your HomeAssistant itself. To do this, you must first find the correct Docker. If you enter the command “docker ps” in the shell, it will show you all dockers in the system. The HomeAssistant itself should also be visible there. You can then use “docker exec -it container-name /bin/bash" to access the structure of the correct Docker.

Once you have this, you need to navigate to the directory:
cd /usr/local/lib/python3.13/site-packages/icalevents

There you should find the file you are looking for. Then edit it and adapt the line described by ahessling.

Then restart HomeAssistant - then it worked again for me.
(Remember the change described above. You can simply adjust this using the file editor)

@LordHayne
Copy link

Okay. Can you or anyone help me with this error?

The fastest way for me was via the file editor.

go to: custom_components/waste_collection_schedule/waste_collection_schedule/service and delete ICS_v1.py.

then go to: custom_components/waste_collection_schedule/waste_collection_schedule/source open the file: ics.py
in this file command out the line 16 as well as 154-160

Save it then restart HA.

now you can go to integrations and set it up as before

@justin19k
Copy link

Okay. Can you or anyone help me with this error?

The fastest way for me was via the file editor.

go to: custom_components/waste_collection_schedule/waste_collection_schedule/service and delete ICS_v1.py.

then go to: custom_components/waste_collection_schedule/waste_collection_schedule/source open the file: ics.py in this file command out the line 16 as well as 154-160

Save it then restart HA.

now you can go to integrations and set it up as before

Hi,
thank you, but my error was another problem. See my post before

@rossi75
Copy link

rossi75 commented Jan 6, 2025

Okay. Can you or anyone help me with this error?

The fastest way for me was via the file editor.

go to: custom_components/waste_collection_schedule/waste_collection_schedule/service and delete ICS_v1.py.

then go to: custom_components/waste_collection_schedule/waste_collection_schedule/source open the file: ics.py in this file command out the line 16 as well as 154-160

Save it then restart HA.

now you can go to integrations and set it up as before

this did not work for me. But I saw it from a logical perpsective and also commented out line 161, as the ELSE is intended for the ICS_V1 tree. Not for the IF regarding the BOOL question above, which this means if you leave the line 161 available...

Also another question: How can I curl any specific request? How can I obtain more data anywhere into the logs? Is there a debug parameter?

@totti1171
Copy link

totti1171 commented Jan 6, 2025 via email

@Redskyer
Copy link

Redskyer commented Jan 6, 2025

Yes… but the same error

Am 05.01.2025 um 21:10 schrieb z-master42 @.>: Did you try the fix? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>

The same for me.

@fft1010
Copy link

fft1010 commented Jan 14, 2025

Hi,
with a relative vanilla (test) HomeAssistant everything works fine. 2025.1.2, I got waste_collection_schedule installed, and working. Also ICS Cal does work. On my "real" System I de-installed waste_collection_schedule, ICS_cal, Upgraded HACS to 2.0.3 downloaded waste_collection_schedule 2.6.0, die NOT installe ICS_cal. After reboot I see this in the logfile:


2025-01-14 11:37:50.030 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/aiohttp/web_protocol.py", line 480, in _handle_request
    resp = await request_handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/web_app.py", line 569, in _handle
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 86, in ban_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware
    response = await handler(request)
               ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
    result = await handler(request, **request.match_info)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin
    return await func(self, request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 222, in post
    return await super().post(request, flow_id)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper
    return await method(view, request, data, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 122, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 341, in async_configure
    result = await self._async_configure(flow_id, user_input)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 388, in _async_configure
    result = await self._async_handle_step(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        flow, cur_step["step_id"], user_input
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 491, in _async_handle_step
    result: _FlowResultT = await getattr(flow, method)(user_input)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/waste_collection_schedule/config_flow.py", line 409, in async_step_source
    return await self.async_step_args()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/waste_collection_schedule/config_flow.py", line 693, in async_step_args
    schema, module = await self.__get_arg_schema(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        self._source, self._extra_info_default_params, args_input
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/config/custom_components/waste_collection_schedule/config_flow.py", line 488, in __get_arg_schema
    module = await self.hass.async_add_executor_job(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        importlib.import_module, f"waste_collection_schedule.source.{source}"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  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/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'

And I cannot install schedule via User Interface. (tried with germany: Karlsruhe, Stuttgart )

Test System is a raspberry-pi-5 with only HA on it, "real" System is a virtual box. Core: 2025.1.2, Supervisor: 2024.12.3, Operating System: 14.1, Frontend: 20250109.0 Versions are the same on Testsystem and real System.

any ideas?
thanks
Juergen

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

No branches or pull requests