GIS GDAL install on Windows 11 Instructions Issue
I had to make a couple minor changes to the instructions from the docs after installing the OSGEO4W GIS tools on Windows 11 from (https://trac.osgeo.org/osgeo4w/). I'm using Django 4.1.7 and Python 3.10.2.
https://github.com/django/django/compare/main...heathhenley:django:patch-1
The GDAL data directory is different. I'm pretty sure I'm running the 64 bit version of everything, but there was not a 64 suffix in my OSGEO4W dir. I didn't see an option anywhere to choose, so I assume it would default to 64 bit.
I think I only had to add the explicit GDAL_LIBRARY_PATH to point to gdal306.dll because it was only looking for up to gdal304.dll on my system. I see it was added in: https://github.com/django/django/commit/ecbb5db65dce7193a941b117cdd33839e5536b2e so that part is probably not necessary in the next version.
Happy to clean up and PR some version of the doc change above, if it's not just a me problem (eg did I somehow install a 32 bit version?). After installing OSGEO4W and setting the env vars / registry keys, the shortest case to reproduce was just trying py -c "from django.contrib.gis.db import models"
(but for me required renaming gdal306 to gdal304 to test).
Change History
(9)
Summary: |
GIS GDAL install on Windows 11 issue → GIS GDAL install on Windows 11 Instructions Issue
|
Cc: |
David Smith Sarah Boyce added
|
Triage Stage: |
Unreviewed → Accepted
|
Type: |
Uncategorized → Cleanup/optimization
|
Owner: |
changed from nobody to Heath Henley
|
Status: |
new → assigned
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
https://trac.osgeo.org/osgeo4w/wiki/WikiStart?action=diff&version=76
It looks to me like the 32-bit version has stopped being published since the django docs were last updated.
Therefore makes sense to me that the django docs need to be revisited. I'd be happy to review your patch.