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]: Source Bielefeld doesn't work anymore after restart #3677

Open
7 tasks done
ptC7H12 opened this issue Jan 24, 2025 · 4 comments
Open
7 tasks done

[Bug]: Source Bielefeld doesn't work anymore after restart #3677

ptC7H12 opened this issue Jan 24, 2025 · 4 comments

Comments

@ptC7H12
Copy link

ptC7H12 commented Jan 24, 2025

I Have A Problem With:

A specific source

What's Your Problem

After a restart the source bielefeld_de doesn't work anymore.

Tried both fixes: from #3629
but only worked until restart.

I've switched back to 2.5.0 and all is working fine.

Source (if relevant)

bielefeld_de

Logs

Logger: custom_components.waste_collection_schedule.waste_collection_schedule.source_shell
Quelle: custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py:226
Integration: Waste Collection Schedule ([Dokumentation](https://github.com/mampfes/hacs_waste_collection_schedule#readme))
Erstmals aufgetreten: 08:27:49 (2 Vorkommnisse)
Zuletzt protokolliert: 08:27:49

error loading source bielefeld_de: cannot import name 'use_pytz' from 'icalendar' (/usr/local/lib/python3.13/site-packages/icalendar/__init__.py) 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/bielefeld_de.py", 
line 6, 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 import use_pytz ImportError: cannot import name 'use_pytz' from 'icalendar' (/usr/local/lib/python3.13/site-packages/icalendar/__init__.py)

Relevant Configuration

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.
@lichtteil
Copy link

I have the same problem with Freiburg using Abfall.IO.

@Kuechenfenster
Copy link

same with St.Wendel; gone after restart

@ptC7H12
Copy link
Author

ptC7H12 commented Jan 27, 2025

same with St.Wendel; gone after restart

For me a restart didn't help!
V 2.5.0 works as it should

@ptC7H12
Copy link
Author

ptC7H12 commented Jan 27, 2025

Strange another re-download from hacs solved it for me. Did it before and it did not work. Now it worked, even after another restart...

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

3 participants