-
Notifications
You must be signed in to change notification settings - Fork 44
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
ValueError: could not convert string to float in gtfs_entities.py #54
Comments
The error message is unfortunately too laconic to figure it out by itself. I'll take a look at your data. |
I ran gtfs2db on this feed, and extracted a longer version of the error message:
The first line tells us the issue:
According to the spec stop_lat and stop_long are required fields. pygtfs chokes when these are missing. Looking at stops.txt, 17 out of the ~12000 stops lack the lat and long info, which is very bad for gtfs (other tools will also fail to parse that). Please reach out to the gtfs provider and ask them to fix their feed. (I guess you can hack something around this by modifying your own feed until they fix their stuff). |
Hi @jarondl It looks like
|
I just opened PR #68 to circumvent this kind of error, just warning the user when stops are skipped, for example. |
Has there been any update on this issue or the linked PR? I am trying to parse MBTA data (zip) and am having the same issue
|
Hi,
we're using pygtfs as part of Home Assistant [0.91.2] and have received the following error during setup:
We are using the GTFS data set from VRN:
https://www.vrn.de/mam/service/downloads/vrn_gtfs.zip
and are trying to use a route between the following stops:
origin: "de:07332:1015"
destination: "de:07332:1009:1:Bus"
According to the documentation at https://www.home-assistant.io/components/gtfs/ we are opening this issue here.
Thank you for the work you do,
-Jan
The text was updated successfully, but these errors were encountered: