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

Importing GTFS shows Error #169

Open
anwernkp opened this issue Feb 27, 2023 · 4 comments
Open

Importing GTFS shows Error #169

anwernkp opened this issue Feb 27, 2023 · 4 comments
Labels
compatibliity related to versions, OSs etc Windows related to windows OS

Comments

@anwernkp
Copy link

I tried Importing a GTFS File (Generated Previously by Same GTFS Manager).But It shows 500: Internal Server Error

Attaching the screenshots
image

image


I am using Windows 10, Opening using gtfsmanager.exe

@answerquest
Copy link
Collaborator

Hi @anwernkp ,
Apologies for getting back so late.

First check : Can you ensure you're having the exact version of tinydb lib installed as mentioned in requirements.txt?


Next: These issues coming up on Windows systems are difficult, as I myself am now working on linux machines only and am not in a position to debug for Windows or to recreate a new .exe file (windows doesn't allow making those from non-windows os - proprietary crap). This tool was tested on Windows 7 back when I'd developed it. I'm seriously considering getting rid of the .exe file and insisting that folks use Docker, which by now is quite nice on Windows.

Please install Docker Desktop : https://docs.docker.com/desktop/install/windows-install/
Then, please run the two .bat files : first install then run.

You can run either by typing .<batname> in the terminal, or by opening the files in a text editor, copying their contents and pasting into the terminal / command prompt which should be open on the program folder.

@answerquest answerquest added Windows related to windows OS compatibliity related to versions, OSs etc labels Apr 23, 2023
@Tlvopen6341
Copy link

hello i have same problem
could you help me please

@jerryellis
Copy link

jerryellis commented Mar 13, 2024

I think I may have found a solution for this issue.

Within the GTFSserverfunctions.py file

it appears a function has changed with regards to the tinydb.

on line 1250 within this .py code change db2.drop_tables() to db2.purge()

I had the 500 error and doing this resolved the issue. The program is working fine now.

What's happening here is that you probably have installed a newer version of tinydb and this function was updated to .purge

@abhasdudeja
Copy link

abhasdudeja commented Apr 13, 2024

I tried the python way, and it worked. The exe, just shows this error:

I tried Importing a GTFS File (Generated Previously by Same GTFS Manager).But It shows 500: Internal Server Error

Attaching the screenshots image

image

I am using Windows 10, Opening using gtfsmanager.exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibliity related to versions, OSs etc Windows related to windows OS
Projects
None yet
Development

No branches or pull requests

5 participants