Closed shaunanoordin closed 3 years ago
Butts! I can't even assign this issue. Tagging @camallen
closed by f8e8eab58e829feeaab63c8cc338b84ec81d05e2
Thanks @shaunanoordin - the above commit on main
should have fixed this (building locally for me now), can you please pull the latest change and try again?
Also you should have access to maintain
this repo now, let me know if you don't.
I pulled a fresh git clone
on this repo and can confirm that the .gitkeep
fix in f8e8eab works! 👍 Datasette was built and is running fine on my machine at the moment.
Also updated the PR's title because for some reason I didn't complete the whole sentence.
Scripting Issue
Issue: If I try to run
docker-compose build
, I will receive the error: "sqlite3.OperationalError: unable to open database file. ERROR: Service 'datasette' failed to build: The command '/bin/sh -c /usr/local/bin/labs-import-csv-files-to-sqlite.sh' returned a non-zero code: 1"Analysis:
csvs-to-sqlite --replace-tables $input_csv_file $db_name_path
, the csvs-to-sqlite doesn't recursively create folders for $db_path_name if the folders don't exist.Solution
Run
mkdir ./databases
if the folder doesn't yet exist.In the file
labs-import-csv-files-to-sqlite.sh
, add the following line of code:Or! Easier yet, give me write access to this repo and I'll push my branch. 👍