#29959: Random LooseVersion errors while getting multiple wkb values
-------------------------------------------+------------------------
               Reporter:  Claude Paroz     |          Owner:  nobody
                   Type:  Bug              |         Status:  new
              Component:  GIS              |        Version:  2.1
               Severity:  Release blocker  |       Keywords:
           Triage Stage:  Unreviewed       |      Has patch:  0
    Needs documentation:  0                |    Needs tests:  0
Patch needs improvement:  0                |  Easy pickings:  0
                  UI/UX:  0                |
-------------------------------------------+------------------------
 From [f185d929fa1c0caa], each call to geometry `wkb` value (used in the
 json representation) will call `GEOSversion()` to test a corner case
 condition.
 Unfortunately and randomly, this causes `'LooseVersion' object has no
 attribute 'version'` errors. It might be memory related because the same
 operation sometimes fails, sometimes succeeds in the exact same code
 conditions.

 It's hard to know what part of the code to blame, but I would argue that
 calling a GEOS method for each wkb value retrieval is suboptimal, as the
 GEOS version should not change between server restart. We may find a way
 to cache the GEOS version between calls.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29959>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.18d2ef59f0f8d84da238bccc9778c89d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to