Opened 22 months ago

Closed 22 months ago

Last modified 22 months ago

#34367 closed Cleanup/optimization (fixed)

GIS GDAL install on Windows 11 Instructions Issue

Reported by: Heath Henley Owned by: Heath Henley
Component: Documentation Version: 4.1
Severity: Normal Keywords:
Cc: David Smith, Sarah Boyce Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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)

comment:1 by Heath Henley, 22 months ago

Summary: GIS GDAL install on Windows 11 issueGIS GDAL install on Windows 11 Instructions Issue

comment:2 by Mariusz Felisiak, 22 months ago

Cc: David Smith Sarah Boyce added

comment:3 by David Smith, 22 months ago

Triage Stage: UnreviewedAccepted

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.

comment:4 by Mariusz Felisiak, 22 months ago

Type: UncategorizedCleanup/optimization

comment:6 by Mariusz Felisiak, 22 months ago

Owner: changed from nobody to Heath Henley
Status: newassigned

comment:7 by Mariusz Felisiak, 22 months ago

Triage Stage: AcceptedReady for checkin

comment:8 by Mariusz Felisiak <felisiak.mariusz@…>, 22 months ago

Resolution: fixed
Status: assignedclosed

In 54aecf9:

Fixed #34367 -- Updated instructions for installing GeoDjango on Windows.

Thanks David Smith for the review.

comment:9 by Mariusz Felisiak <felisiak.mariusz@…>, 22 months ago

In 125abb7:

[4.2.x] Fixed #34367 -- Updated instructions for installing GeoDjango on Windows.

Thanks David Smith for the review.

Backport of 54aecf95a2efb989263e3a888b54fb52cbc15787 from main

Note: See TracTickets for help on using tickets.
Back to Top