ics_calendar icon indicating copy to clipboard operation
ics_calendar copied to clipboard

Post update to 5.1.0 Error message Detected blocking call to import_module with args ('tzdata.zoneinfo',)

Open mcpfr opened this issue 2 months ago • 2 comments

Home Assistant Setup Please indicate your version of HA and how it is installed.

Version core-2024.12.4

Type d'installation | Home Assistant OS

Installation Type (put an X between the square brackets for your HA): [X] Home Assistant OS [] Home Assistant OS [] Home Assistant Supervised [] Home Assistant Container [] Home Assistant Core

Hardware platform: [X] ARM [] x86-64

Describe the bug

After updating 5.0.4 to 5.1.0, I have two errors when starting H.A But this does not seem to have any impact on the operation

If you need information do not hesitate to ask me

Can you help me please

######################################################################################### Enregistreur: homeassistant.util.loop Source: util/loop.py:136 S'est produit pour la première fois: 16:26:52 (2 occurrences) Dernier enregistrement: 16:26:52

Detected blocking call to import_module with args ('tzdata.zoneinfo',) inside the event loop by custom integration 'ics_calendar' at custom_components/ics_calendar/parsers/parser_rie.py, line 33: self._calendar = Calendar.from_ical(content) (offender: /usr/local/lib/python3.13/importlib/resources/_common.py, line 82: return importlib.import_module(cand)), please create a bug report at https://github.com/franc6/ics_calendar/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#import_module Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 227, in sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 213, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 154, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.13/asyncio/base_events.py", line 708, in run_until_complete self.run_forever() File "/usr/local/lib/python3.13/asyncio/base_events.py", line 679, in run_forever self._run_once() File "/usr/local/lib/python3.13/asyncio/base_events.py", line 2027, in _run_once handle._run() File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 960, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1318, in async_device_update await self.async_update() File "/config/custom_components/ics_calendar/calendar.py", line 220, in async_update await self.data.async_update() File "/config/custom_components/ics_calendar/calendar.py", line 343, in async_update self.parser.set_content(self._calendar_data.get()) File "/config/custom_components/ics_calendar/parsers/parser_rie.py", line 33, in set_content self._calendar = Calendar.from_ical(content)

Detected blocking call to open with args (PosixPath('/usr/local/lib/python3.13/site-packages/tzdata/zoneinfo/Romance Standard Time'), 'rb') inside the event loop by custom integration 'ics_calendar' at custom_components/ics_calendar/parsers/parser_rie.py, line 33: self._calendar = Calendar.from_ical(content) (offender: /usr/local/lib/python3.13/zoneinfo/_common.py, line 12: return resources.files(package_name).joinpath(resource_name).open("rb")), please create a bug report at https://github.com/franc6/ics_calendar/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#open Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 227, in sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 213, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 154, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.13/asyncio/base_events.py", line 708, in run_until_complete self.run_forever() File "/usr/local/lib/python3.13/asyncio/base_events.py", line 679, in run_forever self._run_once() File "/usr/local/lib/python3.13/asyncio/base_events.py", line 2027, in _run_once handle._run() File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 960, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1318, in async_device_update await self.async_update() File "/config/custom_components/ics_calendar/calendar.py", line 220, in async_update await self.data.async_update() File "/config/custom_components/ics_calendar/calendar.py", line 343, in async_update self.parser.set_content(self._calendar_data.get()) File "/config/custom_components/ics_calendar/parsers/parser_rie.py", line 33, in set_content self._calendar = Calendar.from_ical(content)

mcpfr avatar Dec 19 '24 15:12 mcpfr