simonw / simonw/datasette

datasette package --spatialite throws error during build

Open
#1,900 12 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.