Closed wkulesza closed 3 years ago
This looks like an issue with sqlite3 being installed on Ubuntu.
This issue: https://github.com/mapbox/node-sqlite3/issues/1329 makes it sound like if you run:
npm install --build-from-source
it may work.
If that doesn't, check out some of the other issue threads related to this issue on the node-sqlite project: https://github.com/mapbox/node-sqlite3/issues?q=is%3Aissue+ubuntu+
@brendannee thanks for pointers. On Ubuntu 18.04 (clean install) i had to use nvm to install latest npm version (apt get install npm installed incorrect version) and indeed npm install --build-from-source gtfs-to-html -g did the trick.
Now i'm stuck with No trips found for route_id being printed to my tries to run it (both with stock config with bart gtfs and also my own gtfs zip file).
Does it mean i need to manually change examples/timetable.txt or should it work only using the gfts url in config.json ?
You'll need to manually create a timetables.txt file based on the example one but using the correct route_ids and info for your feed.
Or, you can skip that step and GTFS-to-HTML will try to generate timetables for all route/direction/day combinations it can find.
For all those struggling with my error, this is what worked for me:
npm install --unsafe-perm --allow-root -g
Thanks for the notes - I updated the documentation to add this to the troubleshooting section: https://gtfstohtml.com/docs/quick-start
Hey, first of all, great project (if only i'd be able to run it on my server). I've been scratching my head but were unable to start it on a fresh Ubuntu 20.04 server 64bit. After installing npm, i went ahead to install this globally as a sudo user, but got a lot of errors.
My node log is below. Could anyone point out what i'm doing wrong (i've been trying to install this as a normal user too - then of course i get a lot of permission errors) and also install this not globally (without -g flag). then gtfs-to-html command is not found.