Skip to content

Errors while parsing GTFS on tdata branch. Difference between branches?  #203

@mr-tm

Description

@mr-tm

Hi!
First of all thank you for creating this library, from the description it truly seems like it's one of a kind! Couldn't believe it's possible to compress all netherland transit info to just 17MB from 246MB GTFS zip file!

I'm having an error while parsing GTFS file(http://gtfs.ovapi.nl/gtfs-nl.zip) on tdata branches(tdata4, tdata-cherokee):

saving transfer stops (footpaths)
at position 9177772 in output [8.75 MB]
saving transfer times (footpaths)
at position 9263792 in output [8.83 MB]
Traceback (most recent call last):
File "gtfs2rrrr.py", line 154, in
main()
File "gtfs2rrrr.py", line 151, in main
exporter.timetable4.export(tdata)
File "C:\Projects\rrrr\rrrr-tdata4\rrtimetable\rrtimetable\exporter\timetable4.py", line 662, in export
export_transfers(tdata,index,out)
File "C:\Projects\rrrr\rrrr-tdata4\rrtimetable\rrtimetable\exporter\timetable4.py", line 328, in export_transfers
writeshort(out,(int(transfer_time) >> 2))
TypeError: int() argument must be a string or a number, not 'NoneType'

I also noticed the processing with gtfs2rrrr.py is much longer (until the error) than the master. Also gtfs2rrrr.py, before the error hit, took about 11GB of ram.

With master it was parsing just fine. (gtfsdb.py -> transfers.py -> timetable.py)

Which leads to the question - why are there so many different branches and which one would be the best for mobile deployment?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions