[Django] #29645: django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension "mod_spatialite" in ubuntu 18.04

13 views
Skip to first unread message

Django

unread,
Aug 7, 2018, 3:56:43 AM8/7/18
to django-...@googlegroups.com
#29645: django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite
library extension "mod_spatialite" in ubuntu 18.04
-------------------------------------+-------------------------------------
Reporter: ravi | Owner: nobody
singh |
Type: Bug | Status: new
Component: GIS | Version: 2.0
Severity: Normal | Keywords: spatialite django
Triage Stage: | gis
Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
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

--
Ticket URL: <https://code.djangoproject.com/ticket/29645>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Aug 7, 2018, 5:52:05 AM8/7/18
to django-...@googlegroups.com
#29645: django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite
library extension "mod_spatialite" in ubuntu 18.04
-------------------------------------+-------------------------------------
Reporter: ravi singh | Owner: nobody
Type: Bug | Status: closed
Component: GIS | Version: 2.0
Severity: Normal | Resolution: invalid

Keywords: spatialite django | Triage Stage:
gis | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* status: new => closed
* resolution: => invalid


Comment:

On Ubuntu 18.04, you must use `SPATIALITE_LIBRARY_PATH =
'mod_spatialite.so'` as per 422a403565ddb8c1866f90f1b2ce7d9157b33ce3.

--
Ticket URL: <https://code.djangoproject.com/ticket/29645#comment:1>

Django

unread,
Aug 7, 2018, 6:00:52 AM8/7/18
to django-...@googlegroups.com
#29645: django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite
library extension "mod_spatialite" in ubuntu 18.04
-------------------------------------+-------------------------------------
Reporter: ravi singh | Owner: nobody
Type: Bug | Status: closed
Component: GIS | Version: 2.0
Severity: Normal | Resolution: invalid

Keywords: spatialite django | Triage Stage:
gis | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by ravi singh):

Thanks a lot. We should mention this in the Docs.

Replying to [comment:1 Tim Graham]:


> On Ubuntu 18.04, you must use `SPATIALITE_LIBRARY_PATH =
'mod_spatialite.so'` as per 422a403565ddb8c1866f90f1b2ce7d9157b33ce3.

--
Ticket URL: <https://code.djangoproject.com/ticket/29645#comment:2>

Django

unread,
Aug 7, 2018, 8:41:49 AM8/7/18
to django-...@googlegroups.com
#29645: django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite
library extension "mod_spatialite" in ubuntu 18.04
-------------------------------------+-------------------------------------
Reporter: ravi singh | Owner: nobody
Type: Bug | Status: closed
Component: GIS | Version: 2.0
Severity: Normal | Resolution: invalid

Keywords: spatialite django | Triage Stage:
gis | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham):

The commit that I linked to is a patch that was applied to Django's
documentation.

--
Ticket URL: <https://code.djangoproject.com/ticket/29645#comment:3>

Django

unread,
Aug 7, 2018, 9:07:25 AM8/7/18
to django-...@googlegroups.com
#29645: django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite
library extension "mod_spatialite" in ubuntu 18.04
-------------------------------------+-------------------------------------
Reporter: ravi singh | Owner: nobody
Type: Bug | Status: closed
Component: GIS | Version: 2.0
Severity: Normal | Resolution: invalid

Keywords: spatialite django | Triage Stage:
gis | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by ravi singh):

Okay, just checked, it was patched for 2.1 version.

Replying to [comment:3 Tim Graham]:


> The commit that I linked to is a patch that was applied to Django's
documentation.

--
Ticket URL: <https://code.djangoproject.com/ticket/29645#comment:4>

Reply all
Reply to author
Forward
0 new messages