Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#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)

comment:1 by Tim Graham, 6 years ago

Resolution: invalid
Status: newclosed

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

in reply to:  1 comment:2 by ravi singh, 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.

comment:3 by Tim Graham, 6 years ago

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

in reply to:  3 comment:4 by ravi singh, 6 years ago

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

Replying to Tim Graham:

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

Version 0, edited 6 years ago by ravi singh (next)
Note: See TracTickets for help on using tickets.
Back to Top