`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.
* needs_tests: 0 => 1
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/31292#comment:1>
* cc: Hasan Ramezani (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/31292#comment:2>
* owner: nobody => taylorjohnwood
* status: new => assigned
* version: 3.0 => master
Comment:
I will write tests for the patch this week.
--
Ticket URL: <https://code.djangoproject.com/ticket/31292#comment:3>
* needs_better_patch: 0 => 1
* needs_tests: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/31292#comment:4>
* owner: Taylor John Wood => Diederik van der Boor
--
Ticket URL: <https://code.djangoproject.com/ticket/31292#comment:5>
Comment (by Diederik van der Boor):
I've fixed the patch. I'll leave it to someone else to confirm this patch
is OK now.
--
Ticket URL: <https://code.djangoproject.com/ticket/31292#comment:6>
* needs_better_patch: 1 => 0
Comment:
Patch confirmed as per
https://github.com/django/django/pull/12467#issuecomment-590119787
--
Ticket URL: <https://code.djangoproject.com/ticket/31292#comment:7>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"84e35f4679622bf6cf7c1763bee3ce9af9c892ff" 84e35f46]:
{{{
#!CommitTicketReference repository=""
revision="84e35f4679622bf6cf7c1763bee3ce9af9c892ff"
Fixed #31292 -- Fixed django.contrib.gis.gdal.gdal_full_version() crash.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31292#comment:8>