question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

datasette package --spatialite throws error during build

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
simonwcommented, Nov 18, 2022

Oh this is with datasette package? That should work. Will investigate.

0reactions
rdmurphycommented, Nov 18, 2022

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 for arm64 and it seems that if I change /usr/lib/x86_64-linux-gnu/mod_spatialite.so here to just mod_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.)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found