I installed spatialite's Python module using pip:

pip install spatialite

I copied the mod_spatialite.dll found on https://www.gaia-gis.it/gaia-sins/index.html into my windows/system32 folder (I have Python 3 32bits)

I have the error message

spatialite.connection.LoadExtensionError: Failed to load SpatiaLite extension. Verify that your python module sqlite3 has load_extension support and check that libspatialite is installed. Tried extension names: mod_spatialite, mod_spatialite.so, mod_spatialite.dylib

  • Have same error, did you find a solution? – Michael Jul 8 at 14:06
  • I don't think I found a solution, I think I just installed debian on windows through WSL and worked from there. I tried asking on #python on freenode but got no relevant help. I recommend asking either on #winapi or through the spatialite mailinglist. – jokoon Jul 11 at 20:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.