WRI-Cities / static-GTFS-manager

GUI interface for creating, editing, exporting of static GTFS data for a public transit authority
GNU General Public License v3.0
145 stars 46 forks source link

Importing GTFS shows Error #169

Open anwernkp opened 1 year ago

anwernkp commented 1 year ago

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 commented 1 year ago

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 .\ 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.

Tlvopen6341 commented 6 months ago

hello i have same problem could you help me please

jerryellis commented 5 months ago

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 commented 4 months ago

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