Skip to content
This repository was archived by the owner on Jun 6, 2025. It is now read-only.
This repository was archived by the owner on Jun 6, 2025. It is now read-only.

GDAL_VERSION cannot be lazy #10

@joshuadavidthomas

Description

@joshuadavidthomas
2.809     from django.contrib.gis.db import models as geomodels
2.809   File "/usr/local/lib/python3.12/site-packages/django/contrib/gis/db/models/__init__.py", line 3, in <module>
2.809     import django.contrib.gis.db.models.functions  # NOQA
2.810     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2.810   File "/usr/local/lib/python3.12/site-packages/django/contrib/gis/db/models/functions.py", line 3, in <module>
2.810     from django.contrib.gis.db.models.fields import BaseSpatialField, GeometryField
2.810   File "/usr/local/lib/python3.12/site-packages/django/contrib/gis/db/models/fields.py", line 3, in <module>
2.810     from django.contrib.gis import forms, gdal
2.810   File "/usr/local/lib/python3.12/site-packages/django/contrib/gis/forms/__init__.py", line 3, in <module>
2.810     from .fields import (  # NOQA
2.810   File "/usr/local/lib/python3.12/site-packages/django/contrib/gis/forms/fields.py", line 2, in <module>
2.810     from django.contrib.gis.gdal import GDALException
2.810   File "/usr/local/lib/python3.12/site-packages/django/contrib/gis/gdal/__init__.py", line 29, in <module>
2.810     from django.contrib.gis.gdal.datasource import DataSource
2.810   File "/usr/local/lib/python3.12/site-packages/django/contrib/gis/gdal/datasource.py", line 42, in <module>
2.810     from django.contrib.gis.gdal.layer import Layer
2.810   File "/usr/local/lib/python3.12/site-packages/django/contrib/gis/gdal/layer.py", line 6, in <module>
2.810     from django.contrib.gis.gdal.feature import Feature
2.810   File "/usr/local/lib/python3.12/site-packages/django/contrib/gis/gdal/feature.py", line 4, in <module>
2.810     from django.contrib.gis.gdal.geometries import OGRGeometry, OGRGeomType
2.810   File "/usr/local/lib/python3.12/site-packages/django/contrib/gis/gdal/geometries.py", line 51, in <module>
2.810     from django.contrib.gis.gdal.prototypes import geom as capi
2.810   File "/usr/local/lib/python3.12/site-packages/django/contrib/gis/gdal/prototypes/geom.py", line 57, in <module>
2.810     if GDAL_VERSION >= (3, 3):
2.810        ^^^^^^^^^^^^^^^^^^^^^^
2.811 TypeError: '>=' not supported between instances of 'SimpleLazyObject' and 'tuple'

Not sure how to fix this one!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions