Thursday, March 3, 2011

GDAL_LIBRARY_PATH

Hey All,

I'm having a hell of a time getting GeoDjango working on Windows 7,
and wondering if I could get a couple of pointers.

With the newest FWTools, where should I be pointing
GDAL_LIBRARY_PATH?

My GDAL binaries would appear to be in C:\Program Files
(x86)\FWTools2.4.7\bin.

I have that directory in my PATH environment variable, and can run
those exes off of the command line.

I have tried adding an environment variable for GDAL_LIBRARY_PATH that
points to it.

I have also tried adding an entry to my settings.py that points to it.

And lastly, have tried this directly:

>>> GDAL_LIBRARY_PATH = 'C:/Program Files (x86)/FWTools2.4.7/bin'
>>> import django.contrib.gis.gdal
>>> HAS_GDAL
False

I would use the GeoDjango windows installer, but all of the included
packages seem to be quite out of date.

Thanks for any insight anyone can provide.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment