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

No module named 'google.transit' #29

Open
zelial opened this issue Feb 29, 2024 · 7 comments
Open

No module named 'google.transit' #29

zelial opened this issue Feb 29, 2024 · 7 comments
Labels

Comments

@zelial
Copy link

zelial commented Feb 29, 2024

Describe the bug
Can't add the integration to HA. This error message is displayed in the UI:

Config flow could not be loaded: {"message":"Invalid handler specified"}

And this appears in the container's log:
2024-02-29 21:25:03.830 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration gtfs2: No module named 'google.transit'

Release used
gtfs2 v0.3.8
HA 2024.2.5 container

@vingerha
Copy link
Owner

vingerha commented Mar 1, 2024

I cannot reproduce this. Did a complete fresh install of the container and the app and used my reference source for static and realtime data....all fine
What is your source and where (!) in the process/screen does it crash?

@zelial
Copy link
Author

zelial commented Mar 1, 2024

I ... cant reproduce it now either. I don't remember it exactly but it occurred before the config wizard asks about data source addition/deletion. Anyway, sorry for the confusion, I"m closing this issue.

@zelial zelial closed this as completed Mar 1, 2024
@vingerha
Copy link
Owner

vingerha commented Mar 1, 2024

If it is the first install, it was possibly still loading the required python modules....no clue though as not reproducable ...and it works now :)

@ppoloskov
Copy link

I'm facing this problem right now.
HA in container under Kubernetes -- Core 2024.11.2 Frontend 20241106.2
HACS installed. I added GTFS2 (tried version 0.5.4 and last beta).

When I try to add integration from Settings, I get error "Config flow could not be loaded: {"message":"Invalid handler specified"}" and I see in the logs
'''
2024-11-29 11:23:50.500 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration gtfs2: No module named 'google.transit'
'''
What information can I provide for debug?

@ppoloskov
Copy link

I also tried a few different gtfs integrations and all of them failing to find 'google.transit' module. Should I add some component to the core HA?

@vingerha
Copy link
Owner

vingerha commented Nov 29, 2024

Weird situation again, this comes via gtfs-realtime-bindings which is part of the requirememts for this integration, installed via manifest.json. Can you do a pip list | grep gtfs on cli of your container/HA and find out if it is installed? I have never installed this manually so wonder why there is this issue now a second time (reported twice with this ticket)

image

@vingerha vingerha reopened this Nov 29, 2024
@vingerha vingerha assigned vingerha and unassigned vingerha Nov 29, 2024
Copy link

This issue is stale because it has been open for 20 days with no activity.

@github-actions github-actions bot added the stale label Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants