Skip to content
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 GTFS GO #70

Closed
Rossellaross87polito opened this issue May 26, 2023 · 3 comments
Closed

Error GTFS GO #70

Rossellaross87polito opened this issue May 26, 2023 · 3 comments

Comments

@Rossellaross87polito
Copy link

An error occurred while running the Python code:
FileNotFoundError: calendar is not exists.
Traceback (most recent call last):
File "C:\Users/rosse/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\GTFS-GO-master\gtfs_go_dialog.py", line 237, in execution
gtfs_parser = GTFSParser(extracted_dir)
File "C:\Users/rosse/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\GTFS-GO-master\gtfs_parser_main_.py", line 35, in init
self.dataframes = self._load_tables(txts)
File "C:\Users/rosse/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\GTFS-GO-master\gtfs_parser_main.py", line 64, in __load_tables
raise FileNotFoundError(f"{datatype} is not exists.")
FileNotFoundError: calendar is not exists.

Versione Python: 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)]
Versione di QGIS: 3.28.6-Firenze Firenze, qgis/QGIS@868c9fa

Percorso Python:
C:/PROGRA1/QGIS321.6/apps/qgis-ltr/./python
C:/Users/rosse/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/rosse/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/PROGRA1/QGIS321.6/apps/qgis-ltr/./python/plugins
C:\PROGRA1\QGIS321.6\apps\grass\grass82\etc\python
C:\Program Files\QGIS 3.28.6\bin
C:\Program Files\QGIS 3.28.6\bin\python39.zip
C:\PROGRA1\QGIS321.6\apps\Python39\DLLs
C:\PROGRA1\QGIS321.6\apps\Python39\lib
C:\PROGRA1\QGIS321.6\apps\Python39
C:\PROGRA1\QGIS321.6\apps\Python39\lib\site-packages
C:\PROGRA1\QGIS321.6\apps\Python39\lib\site-packages\win32
C:\PROGRA1\QGIS321.6\apps\Python39\lib\site-packages\win32\lib
C:\PROGRA1\QGIS321.6\apps\Python39\lib\site-packages\Pythonwin
C:/Users/rosse/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:\Users\rosse\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mmqgis/forms
.
here is the gtfs i tried to upload
gtfs_compressed.zip

@Kanahiro
Copy link
Member

Thank you for report. I can reproduce the problem but for me "agency is not exists" 🤔

@takohei
Copy link
Contributor

takohei commented Apr 18, 2024

Cause:
This error occurs because there are no records in calendar.txt.

Expected:
calendar.txt is not required, if calendar_dates.txt contains all days.
https://gtfs.org/schedule/reference/#dataset-files
Therefore, the error should not occur.

Action:
I will fix it to allow for the lack of files and fields, along with other similar issues.

@Kanahiro
Copy link
Member

Kanahiro commented May 8, 2024

fixed on v4.0.0

@Kanahiro Kanahiro closed this as completed May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants