#31292: Calling gdal_full_version() is broken on Python 3
-------------------------------------------------+------------------------
               Reporter:  Diederik van der Boor  |          Owner:  nobody
                   Type:  Bug                    |         Status:  new
              Component:  GIS                    |        Version:  3.0
               Severity:  Normal                 |       Keywords:
           Triage Stage:  Unreviewed             |      Has patch:  1
    Needs documentation:  0                      |    Needs tests:  0
Patch needs improvement:  0                      |  Easy pickings:  1
                  UI/UX:  0                      |
-------------------------------------------------+------------------------
 The GDAL `_version_info()` ctypes call uses a `c_char_p` type as first
 argument. In the Python-3 port (5330cd50cdb0674cd08cbfb40af9ac51267fbbec)
 the `gdal_version()` was updated to reflect that, but the
 `gdal_full_version()` function below was missed. It currently raises the
 following error:

 `ctypes.ArgumentError: argument 1: <class 'TypeError'>: wrong type`

 The solution is simply to call gdal's `_version_info()` with a bytes value
 too.
 The PR  https://github.com/django/django/pull/12467 fixes that.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31292>
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/049.d8c75542af304b0344469e6090c653b6%40djangoproject.com.

Reply via email to