datasette package --spatialite throws error during build
Open
Nobody has claimed this yet.
bug
docker
- Dominant language
- Python
- Stars
- 11.5k
- Forks
- 904
- Avg merge
- 4d 17h
- Merged PRs (30d)
- 18
Description
Hello! Attempting to use datasette package to bundle up a SpatiaLite DB and I'm getting this error during the docker build:
sqlite3.OperationalError: /usr/lib/x86_64-linux-gnu/mod_spatialite.so.so: cannot open shared object file: No such file or directory
Seems to be throwing when this step is ran:
ERROR [6/6] RUN datasette inspect results.db --inspect-file inspect-data.json
This is with v0.63.1.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the datasette package Docker build using a SpatiaLite database and focus on the datasette inspect results.db --inspect-file inspect-data.json step. Trace how the SpatiaLite extension path becomes /usr/lib/x86_64-linux-gnu/mod_spatialite.so.so; done means the package build completes and inspection succeeds without the missing-library error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python, sqlite
- Domain
- build-system, cli, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100