-
Notifications
You must be signed in to change notification settings - Fork 33
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
Error importing transfers.txt with invalid stop IDs #53
Comments
I was unable to duplicate this bug. I downloaded the file at the link, and imported it under two different configurations, and it imported correctly both times. My feed download is a zip file, 4,511,933 bytes, with an md5sum of I tried it with my development configuration of Python 2.7.12, multigtfs master branch, and these packages:
I was also unable to reproduce it with Python 3.4.3 and these packages
|
@araichev can you post your copy of the feed somewhere for download? 5MB might be be allowed as a GitHub attachment. |
Sorry, my bad! The corrupted feed actually fails Google's feed validator, so i don't expect multigtfs to perform well on it, so you can ignore my bug report. |
No problem. If it had been a bug, it may not have been back ported to 0.4.3. You may want to start the work of updating to Django 1.8 LTS, so that a multigtfs upgrade would have been possible for a bug fix. I'm going to leave the bug open with the new title. This does feel like something that could have a more friendly error message, and a simple test to reproduce. |
Greetings.
Using mult-gtfs v0.4.3, i tried to import this GTFS feed for Fort Lauderdale: http://transitfeeds.com/p/broward-county-transit/49/latest/download and got the following error.
After some debugging, i discovered that the feed is faulty:
transfers.txt
contains stop IDs not present instops.txt
.Fair enough, but it appears that multigtfs is trying to create the stops in
transfers.txt
that it can't find instops.txt
, and that causes the error; see https://github.com/tulsawebdevs/django-multi-gtfs/blob/v1.0.0/multigtfs/models/base.py#L153.That seems like a bug to me, because
transfers.txt
will never contain enough data, e.g. stop geography, to properly create stop objects.I'd favor a warning, such as, "Encountered stop ID in transfers.txt, which is not present in stops.txt. Skipping this stop."
What do you think?
Now, i didn't test the feed import using multigtfs v1.0.0, but i do see that the offending code block linked above is the same as in version 0.4.3.
Thanks for your attention.
The text was updated successfully, but these errors were encountered: