#33886 closed Bug (fixed)
GeoIP module unnecessarily requires GDAL
Description ¶
The commit https://github.com/django/django/commit/31bef51d8ea5e3bf650de1495ae1f0566670b8f3 (in versions 4.1a1 forward) moved the import of django.contrib.gis.geos.Point
from the def geos()
function to top-level, with the unfortunate side-effect that importing the GeoIP
module now requires working GDAL libraries.
The GeoIP module should be usable without GDAL; naturally, returning a GDAL geometry would require GDAL.
My suggested fix would be to revert the above commit; a late import should be fine here.
Change History (6)
comment:1 by , 3 years ago
Has patch: | set |
---|
comment:2 by , 3 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:3 by , 3 years ago
Severity: | Normal → Release blocker |
---|
Regression in 31bef51d8ea5e3bf650de1495ae1f0566670b8f3.
comment:4 by , 3 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Patch: https://github.com/django/django/pull/15906