From 25e3ca2e7952a4299dc18b8a18b559953538a897 Mon Sep 17 00:00:00 2001 From: Ivan Kharlamov Date: Thu, 12 Oct 2023 16:41:58 +0200 Subject: [PATCH] Fixed Documentation issue #390: added explanation of the error and PYTHON_CONFIGURE_OPTS: a little bit verbose, but maybe will save someone time and possibly add contributors to the project (#392) --- docs/contributing.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/contributing.md b/docs/contributing.md index d187e61e..a01c1b55 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -10,7 +10,13 @@ poetry install poetry run pytest ``` -This will install all the dependencies (including dev ones) and run the tests. +This will install all the dependencies (including the dev ones) and run the tests. + +If the tests fail with `SpatiaLite requires SQLite to be configured to allow extension loading` error, +it means that your python interpreter is not built with `--enable-loadable-sqlite-extensions` flag. +For example, if you are using pyenv, it can be fixed like this: + +`PYTHON_CONFIGURE_OPTS="--enable-loadable-sqlite-extensions" pyenv install 3.12.0` ### Pre commit