If you updated recently to the last ubuntu version (15.10) and you're
getting this error or similar:
{{{
Unable to load the SpatiaLite library extension "libspatialite.so.7"
because: /usr/lib/x86_64-linux-gnu/libspatialite.so.7: undefined symbol:
sqlite3_spatialite_init
}}}
You can fix it adding this line to your settings.py file:
`SPATIALITE_LIBRARY_PATH = 'mod_spatialite' `
... and installing a package: `sudo apt-get install libsqlite3-mod-
spatialite `
Is the situation the same on newer versions of Debian? Is this something
we should recommend?
--
Ticket URL: <https://code.djangoproject.com/ticket/26137>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* has_patch: 0 => 1
* stage: Unreviewed => Accepted
Comment:
I don't completely understand it, but it looks like `mod_spatialite`
[https://www.gaia-gis.it/fossil/libspatialite/wiki?name=mod_spatialite is
required for spatialite 4.2+]?
[https://github.com/django/django/pull/6057 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/26137#comment:1>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"93897a6a75754c1c17d8a60dee188c86f13de232" 93897a6]:
{{{
#!CommitTicketReference repository=""
revision="93897a6a75754c1c17d8a60dee188c86f13de232"
Fixed #26137 -- Confirmed support for SpatiaLite 4.2/4.3 and added
instructions.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26137#comment:2>
Comment (by Tim Graham <timograham@…>):
In [changeset:"d6d8fd3b821a3e1d6bcbeddc658f7486a567af5e" d6d8fd3b]:
{{{
#!CommitTicketReference repository=""
revision="d6d8fd3b821a3e1d6bcbeddc658f7486a567af5e"
[1.9.x] Fixed #26137 -- Confirmed support for SpatiaLite 4.2/4.3 and added
instructions.
Backport of 93897a6a75754c1c17d8a60dee188c86f13de232 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26137#comment:3>