datasette package --spatialite throws error during build
See original GitHub issueHello! 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
.
Issue Analytics
- State:
- Created 10 months ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
Updated Dockerfile with SpatiaLite version 5.0 #1249 - GitHub
And when I ran Datasette I got that same error where the database listing page hangs! docker run -p 8001:8001 -v `pwd`:/mnt datasette-spatialite...
Read more >Note - Datasette documentation
Datasette is aimed at data journalists, museum curators, archivists, local governments ... Installing SpatiaLite on Linux · Building SpatiaLite from source.
Read more >Changelog - Datasette documentation
Fixed a bug where databases with a different route from their name (as used by the datasette-hashed-urls plugin) returned errors when executing custom...
Read more >Changelog - Datasette documentation
Getting SpatiaLite working can be tricky, especially if you want to use the most recent alpha version (with support for K-nearest neighbor).
Read more >Simon Willison - Datasette documentation
An open source multi-tool for exploring and publishing data. Datasette is a tool for exploring and publishing data.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh this is with
datasette package
? That should work. Will investigate.Okay, my final observations for the night! I’ve been pushing and pulling the various levers in
utils/__init__.py
to see what makes this work without hard-coding in something forarm64
and it seems that if I change/usr/lib/x86_64-linux-gnu/mod_spatialite.so
here to justmod_spatialite
it’s happy.Unfortunately cannot audit that for
x86_64
, but maybe that’s a solution that’d be cross-arch compatible? It seems like it’s the hard-coding of that path that’s tripping it up.(It was actually this comment from back in 2018 in an entirely unrelated repo that nudged me to try this, ha.)