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

Integration utility_meter caused error: No module named 'croniter' #132360

Closed
Nardol opened this issue Dec 5, 2024 · 5 comments · Fixed by #132364
Closed

Integration utility_meter caused error: No module named 'croniter' #132360

Nardol opened this issue Dec 5, 2024 · 5 comments · Fixed by #132364

Comments

@Nardol
Copy link
Contributor

Nardol commented Dec 5, 2024

The problem

Since I recreated my Python venv to update to Python 3.13 and installed Home Assistant 2024.12 the utility meter fails because the croniter module is missing

What version of Home Assistant Core has the issue?

2024.12.0

What was the last working version of Home Assistant Core?

2024.11

What type of installation are you running?

Home Assistant Core

Integration causing the issue

Utility meter

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

utility_meter:
  energie_quotidienne:
    source: sensor.index_base
    cycle: daily
  energie_mensuelle:
    source: sensor.index_base
    cycle: monthly

Anything in the logs that might be useful for us?

2024-12-05 09:55:30.700 ERROR (MainThread) [homeassistant.config] Setup of package 'conso_electrique' at packages/conso_electrique.yaml, line 1 failed: Integration utility_meter caused error: No module named 'croniter'
2024-12-05 09:57:12.411 ERROR (MainThread) [homeassistant.config] Setup of package 'conso_electrique' at packages/conso_electrique.yaml, line 1 failed: Integration utility_meter caused error: No module named 'croniter'
2024-12-05 10:13:03.168 ERROR (MainThread) [homeassistant.config] Setup of package 'conso_electrique' at packages/conso_electrique.yaml, line 1 failed: Integration utility_meter caused error: No module named 'croniter'

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Dec 5, 2024

Hey there @dgomes, mind taking a look at this issue as it has been labeled with an integration (utility_meter) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of utility_meter 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 utility_meter 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)


utility_meter documentation
utility_meter source
(message by IssueLinks)

@dgomes
Copy link
Contributor

dgomes commented Dec 5, 2024

as of 2024.12 utility meter no longer uses croniter, it is now using cronsim:

e4aaaf1

@dgomes dgomes closed this as completed Dec 5, 2024
@Boebbele
Copy link

Boebbele commented Dec 5, 2024

Same here since last update. Homeassistant Core

@dgomes dgomes reopened this Dec 5, 2024
@Nardol
Copy link
Contributor Author

Nardol commented Dec 5, 2024

as of 2024.12 utility meter no longer uses croniter, it is now using cronsim:

e4aaaf1

Since this has not come up in HAOS nor container, I believe this to be an issue with your setup

How do you explain Code in the rc branch still use croniter?

@dgomes
Copy link
Contributor

dgomes commented Dec 5, 2024

I acknowledge the issue, already preparing the patch

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

Successfully merging a pull request may close this issue.

3 participants