I am running into an issue where every single call I make to merge GTFS it results in a KeyError start_date. There's no logging to tell me which file this is affecting. I have tried this with combinations of four different agencies in Canada as well as Pierce Transit and Intercity Transit. Any thoughts about what I might be doing wrong?
The calendar.txt file is present in each of the subfolders.
Directory structure is as follows:
/GTFS/19/
agency.txt fare_attributes.txt routes.txt stops.txt transfers.txt
calendar_dates.txt feed_info.txt shapes.txt stop_times.txt trips.txt
/GTFS/3/
agency.txt calendar.txt feed_info.txt shapes.txt stop_times.txt
calendar_dates.txt fare_attributes.txt routes.txt stops.txt trips.txt
/output/
combine_gtfs_feeds run -g "GTFS" -s "20230505" -o "output"
Traceback (most recent call last):
File "/opt/conda/bin/combine_gtfs_feeds", line 8, in
sys.exit(main())
File "/opt/conda/lib/python3.8/site-packages/combine_gtfs_feeds/cli/main.py", line 19, in main
sys.exit(combine.execute())
File "/opt/conda/lib/python3.8/site-packages/combine_gtfs_feeds/cli/cli.py", line 28, in execute
args.func(args)
File "/opt/conda/lib/python3.8/site-packages/combine_gtfs_feeds/cli/run.py", line 509, in run
feeds = combine(args.gtfs_dir, args.service_date, args.output_dir, logger)
File "/opt/conda/lib/python3.8/site-packages/combine_gtfs_feeds/cli/run.py", line 578, in combine
service_id_list = get_service_ids(
File "/opt/conda/lib/python3.8/site-packages/combine_gtfs_feeds/cli/run.py", line 125, in get_service_ids
(calendar["start_date"] <= service_date)
File "/home/datascience/.local/lib/python3.8/site-packages/pandas/core/frame.py", line 3807, in getitem
indexer = self.columns.get_loc(key)
File "/home/datascience/.local/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 3804, in get_loc
raise KeyError(key) from err
KeyError: 'start_date'