cal-itp / data-infra

Cal-ITP data infrastructure
https://docs.calitp.org/data-infra
GNU Affero General Public License v3.0
47 stars 12 forks source link

ValueError: Unparseable zip: File/directory structure within zipfile cannot be unpacked #3313

Open cal-itp-sentry[bot] opened 5 months ago

cal-itp-sentry[bot] commented 5 months ago

Sentry Issue: CAL-ITP-DATA-INFRA-27T5

ValueError: Unparseable zip: File/directory structure within zipfile cannot be unpacked
  File "unzip_gtfs_schedule.py", line 165, in unzip_individual_feed
    zipfile_files, zipfile_md5_hash = process_feed_files(
  File "unzip_gtfs_schedule.py", line 125, in process_feed_files
    raise ValueError(
evansiroky commented 5 months ago

This error is occurring with the City of Morro Bay file: https://www.morrobayca.gov/DocumentCenter/View/18183/Morro-Bay-GTFS

The GTFS Schedule parser should be able to first try to find various files in the base folder and only if it can't then it can look into subdirectories.