{"html_url": "https://github.com/simonw/datasette/issues/1900#issuecomment-1319631421", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1900", "id": 1319631421, "node_id": "IC_kwDOBm6k_c5Op_o9", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-11-18T07:13:00Z", "updated_at": "2022-11-18T07:13:00Z", "author_association": "OWNER", "body": "You get:\r\n\r\n```\r\n => [internal] load metadata for docker.io/library/python:3.11.0-slim-bullseye 0.9s\r\n => [internal] load build context 2.3s\r\n => => transferring context: 72.38MB 2.3s\r\n => CACHED [1/6] FROM docker.io/library/python:3.11.0-slim-bullseye@sha256:1cd45c5dad845af18d71745c017325725dc979571c1bbe625b67e6051533716c 0.0s\r\n```\r\n\r\nI get:\r\n\r\n```\r\n => [internal] load metadata for docker.io/library/python:3.11.0-slim-bullseye 1.0s\r\n => [internal] load build context 0.0s\r\n => => transferring context: 705B 0.0s\r\n => CACHED [1/6] FROM docker.io/library/python:3.11.0-slim-bullseye@sha256:1cd45c5dad845af18d71745c017325725dc979571c1bbe625b67e6051533716c 0.0s\r\n```\r\nBoth the image name and the hash are _exactly_ the same. So why are you getting an error while mine works OK?\r\n\r\nFor my machine:\r\n```\r\n~ % docker --version\r\nDocker version 20.10.12, build e91ed57\r\n\r\n~ % uname -a\r\nDarwin Simons-MacBook-Pro-2.local 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:14:54 PDT 2022; root:xnu-8792.41.9~2/RELEASE_X86_64 x86_64\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1452572348, "label": "datasette package --spatialite throws error during build"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1900#issuecomment-1319629469", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1900", "id": 1319629469, "node_id": "IC_kwDOBm6k_c5Op_Kd", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-11-18T07:10:17Z", "updated_at": "2022-11-18T07:10:17Z", "author_association": "OWNER", "body": "This is so weird! What version of Datasette do you get from `datasette --version` there - and what's your Docker version / operating system version?", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1452572348, "label": "datasette package --spatialite throws error during build"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1900#issuecomment-1319583703", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1900", "id": 1319583703, "node_id": "IC_kwDOBm6k_c5Opz_X", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-11-18T05:58:31Z", "updated_at": "2022-11-18T05:58:31Z", "author_association": "OWNER", "body": "Could you provide full steps to reproduce plus a SpatiaLite database file that triggered this for you? I'm not able to recreate the problem.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1452572348, "label": "datasette package --spatialite throws error during build"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1900#issuecomment-1319583281", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1900", "id": 1319583281, "node_id": "IC_kwDOBm6k_c5Opz4x", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-11-18T05:57:44Z", "updated_at": "2022-11-18T05:57:44Z", "author_association": "OWNER", "body": "Did you use the `--spatialite` option?\r\n\r\nI just tried this:\r\n\r\n datasette package nps-spatialite.db\r\n\r\nIt built the image OK (I didn't see the error you reported), but running the container failed with an error:\r\n\r\n```\r\n/tmp % docker run -p 8001:8001 7298e8e6bbfb\r\nUsage: datasette serve [OPTIONS] [FILES]...\r\nTry 'datasette serve --help' for help.\r\n\r\nError: It looks like you're trying to load a SpatiaLite database without first loading the SpatiaLite module.\r\n\r\nRead more: https://docs.datasette.io/en/stable/spatialite.html\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1452572348, "label": "datasette package --spatialite throws error during build"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1900#issuecomment-1319582239", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1900", "id": 1319582239, "node_id": "IC_kwDOBm6k_c5Opzof", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-11-18T05:55:38Z", "updated_at": "2022-11-18T05:55:38Z", "author_association": "OWNER", "body": "Trying this out locally with this 69MB SpatiaLite file I happened to have lying around (from testing `shapefile-to-sqlite` a while ago): https://static.simonwillison.net/static/2022/nps-spatialite.db\r\n```\r\n% datasette package nps-spatialite.db --spatialite\r\n...\r\n => [2/6] COPY . /app 0.4s\r\n => [3/6] WORKDIR /app 0.0s\r\n => [4/6] RUN apt-get update && apt-get install -y python3-dev gcc libsqlite3-mod-spatialite && rm -rf /var/lib/apt/lists/* 29.6s\r\n => [5/6] RUN pip install -U datasette 12.0s\r\n => [6/6] RUN datasette inspect nps-spatialite.db --inspect-file inspect-data.json 2.6s \r\n => exporting to image 3.0s \r\n => => exporting layers 3.0s \r\n => => writing image sha256:4dfef1c373c5c057ef7ac22344f834d522acef24313a1b25d2eba9e500066b8f 0.0s \r\n```\r\nAnd then:\r\n\r\n docker run -p 8001:8001 4dfef1c373c5\r\n\r\nThis worked fine for me. I ran `datasette package` using Datasette 0.63.1.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1452572348, "label": "datasette package --spatialite throws error during build"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1900#issuecomment-1319574972", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1900", "id": 1319574972, "node_id": "IC_kwDOBm6k_c5Opx28", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-11-18T05:41:28Z", "updated_at": "2022-11-18T05:41:28Z", "author_association": "OWNER", "body": "Oh this is with `datasette package`? That should work. Will investigate.", "reactions": "{\"total_count\": 1, \"+1\": 1, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1452572348, "label": "datasette package --spatialite throws error during build"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1900#issuecomment-1319571220", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1900", "id": 1319571220, "node_id": "IC_kwDOBm6k_c5Opw8U", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-11-18T05:34:35Z", "updated_at": "2022-11-18T05:34:35Z", "author_association": "OWNER", "body": "Which Docker image are you using here? It looks like it's missing SpatiaLite from the image.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1452572348, "label": "datasette package --spatialite throws error during build"}, "performed_via_github_app": null}