From 06c342f47ff50a29cfd1629e8dbeb6653188e536 Mon Sep 17 00:00:00 2001 From: Jorge Samuel Mendes de Jesus Date: Sat, 12 May 2018 13:51:45 +0200 Subject: [PATCH] Update spatiallite provider library extension spatialite provider was missing .so extension causing problem in alpine --- pygeoapi/provider/sqlite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygeoapi/provider/sqlite.py b/pygeoapi/provider/sqlite.py index 6c15edc..b344b37 100644 --- a/pygeoapi/provider/sqlite.py +++ b/pygeoapi/provider/sqlite.py @@ -123,7 +123,7 @@ class SQLiteProvider(BaseProvider): cursor = conn.cursor() try: - cursor.execute("SELECT load_extension('mod_spatialite')") + cursor.execute("SELECT load_extension('mod_spatialite.so')") cursor.execute("PRAGMA table_info({})".format(self.table)) except sqlite3.OperationalError as err: LOGGER.error('Extension loading error: {}'.format(err))