-
Notifications
You must be signed in to change notification settings - Fork 56
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 - 'directory does not exist' #165
Comments
Can you let me know what value you have in your config.json file for sqlitePath? The directory you specify needs to exist - or you can remove this line from the config entirely and it will use an in-memory database. |
It was '/tmp/gtfs'. After removing it, it does run localhost, but then, a completely different error comes up: SqliteError: no such table: timetables |
Can you try adding a sqlitePath config value to a folder that does exist? Maybe Let me know if that solves the issue. |
Tried it. Now shows the same error, just coming from the files inside of the gtfs folder: SqliteError: no such table: timetables |
Can you share with me the config.json you are using? And also which version of gtfs-to-html is installed?
|
Here's the file. The version is 2.6.8. |
Thanks for sharing the config. Can you let me know the full output of the command gtfs-to-html when you run it? For example, here is what I got when trying the config you sent:
|
Hello. I'm having trouble setting up gtfs-to-html. I'm running it through Git Bash on Windows 11, and it spits out an error. I have already updated Node.js from 20.8.0 using nvm (as it was saying that it was incompatible), and am using config copied from the sample, with the URL changed to https://www.visimarsrutai.lt/gtfs/VilniausR.zip and the agencyKey to VilniausR. This is the error:
`C:\Users\gedim\gtfs-to-html\node_modules\better-sqlite3\lib\database.js:65
throw new TypeError('Cannot open database because the directory does not exist');
^
TypeError: Cannot open database because the directory does not exist
at new Database (C:\Users\gedim\gtfs-to-html\node_modules\better-sqlite3\lib\database.js:65:9)
at setupDb (file:///C:/Users/gedim/gtfs-to-html/node_modules/gtfs/lib/db.js:10:14)
at openDb (file:///C:/Users/gedim/gtfs-to-html/node_modules/gtfs/lib/db.js:31:12)
at file:///C:/Users/gedim/gtfs-to-html/app/index.js:43:3
at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
at async loadESM (node:internal/process/esm_loader:28:7)
at async handleMainPromise (node:internal/modules/run_main:113:12)
Node.js v20.11.0`
I have little experience with running node apps, so I may be doing something trivial wrong, perhaps installing it incorrectly. I have played around with the config, looked at the files in question, deleted the folder and git clone'd it numerous times, always leading to the same error. Help would be really appreciated.
The text was updated successfully, but these errors were encountered: