[Django] #26137: Document steps needed to install spatialite on Ubuntu 15.04+

79 views
Skip to first unread message

Django

unread,
Jan 25, 2016, 9:38:37 PM1/25/16
to django-...@googlegroups.com
#26137: Document steps needed to install spatialite on Ubuntu 15.04+
------------------------------------------------+------------------------
Reporter: timgraham | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
I ran into a problem running the Django test suite with spatialite and
found this solution [http://www.eduardmartinez.es/2015/11/unable-to-load-
spatialite-library.html on the blogosphere] which worked for me:

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.

Django

unread,
Jan 28, 2016, 9:20:37 AM1/28/16
to django-...@googlegroups.com
#26137: Document steps needed to install spatialite on Ubuntu 15.04+
--------------------------------------+------------------------------------

Reporter: timgraham | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by timgraham):

* 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>

Django

unread,
Jan 29, 2016, 8:53:11 AM1/29/16
to django-...@googlegroups.com
#26137: Document steps needed to install spatialite on Ubuntu 15.04+
--------------------------------------+------------------------------------
Reporter: timgraham | Owner: nobody
Type: Cleanup/optimization | Status: closed
Component: Documentation | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Tim Graham <timograham@…>):

* 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>

Django

unread,
Jan 29, 2016, 8:57:30 AM1/29/16
to django-...@googlegroups.com
#26137: Document steps needed to install spatialite on Ubuntu 15.04+
--------------------------------------+------------------------------------
Reporter: timgraham | Owner: nobody
Type: Cleanup/optimization | Status: closed
Component: Documentation | Version: master

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------

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>

Reply all
Reply to author
Forward
0 new messages