#32935: Test suite fails with sqlite 3.36 and spatialite 5.
-----------------------------+--------------------------------------
     Reporter:  David Smith  |                    Owner:  nobody
         Type:  Bug          |                   Status:  closed
    Component:  GIS          |                  Version:  3.2
     Severity:  Normal       |               Resolution:  needsinfo
     Keywords:               |             Triage Stage:  Unreviewed
    Has patch:  0            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  0            |                    UI/UX:  0
-----------------------------+--------------------------------------

Comment (by sheppard):

 I can confirm this is broken on Ubuntu 22.04 with the default apt library
 versions.   Here's another comment from spatialite-users that explains
 what is going on:

 https://groups.google.com/g/spatialite-users/c/5rKuVlIzwZY/m/ydEa4ir_AAAJ

 I think this means that InitSpatialMetaDataFull(1) basically will not work
 on Ubuntu 22.04 until the next version of libsqlite3-mod-spatialite is
 released and packaged.  While this isn't strictly a bug in Django, I think
 it would be appropriate and helpful to fall back to InitSpatialMetaData(1)
 if the "ISO_metadata_reference_row_id_value_insert" error is detected.
 Can this ticket be reopened?

 In the meantime, here's a one-liner that can be executed before running
 ./manage.py migrate on Ubuntu 22.04.

 {{{
 ./manage.py shell -c "import
 django;django.db.connection.cursor().execute('SELECT
 InitSpatialMetaData(1);')";
 ./manage.py migrate
 }}}

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

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701849941dbbc-f4ffbf86-62e2-472d-a4c0-71e7fe06a5ba-000000%40eu-central-1.amazonses.com.

Reply via email to