#29645 closed Bug (invalid)
django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension "mod_spatialite" in ubuntu 18.04
Reported by: | ravi singh | Owned by: | nobody |
---|---|---|---|
Component: | GIS | Version: | 2.0 |
Severity: | Normal | Keywords: | spatialite django gis |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I used django git in ubuntu 16.04 and it was working perfectly fine. But after upgrading to ubuntu 18.04, it gives this error.
django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension "mod_spatialite"
I tried downgrading python to 3.5 but it didn't work.
I have set
SPATIALITE_LIBRARY_PATH = 'mod_spatialite'
in settings.py
Change History (4)
follow-up: 2 comment:1 by , 6 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 6 years ago
Thanks a lot. We should mention this in the Docs.
Replying to Tim Graham:
On Ubuntu 18.04, you must use
SPATIALITE_LIBRARY_PATH = 'mod_spatialite.so'
as per 422a403565ddb8c1866f90f1b2ce7d9157b33ce3.
follow-up: 4 comment:3 by , 6 years ago
The commit that I linked to is a patch that was applied to Django's documentation.
comment:4 by , 6 years ago
Okay, just checked, it was patched for 2.1 version. :+1:
Replying to Tim Graham:
The commit that I linked to is a patch that was applied to Django's documentation.
On Ubuntu 18.04, you must use
SPATIALITE_LIBRARY_PATH = 'mod_spatialite.so'
as per 422a403565ddb8c1866f90f1b2ce7d9157b33ce3.