Re: GeoDjango: ImportError: cannot import name DataSource

2008-09-18 Thread Alfonso
Thanks Ludwig, Your solution was spot on - geodjango couldn't locate gdal properly. Solved it with: GDAL_LIBRARY_PATH='/opt/local/lib/libgdal.dylib' in settings.py Thanks again Allan On Sep 17, 6:27 pm, Ludwig <[EMAIL PROTECTED]> wrote: > If you run something like>>> import django.contrib.gis

Re: GeoDjango: ImportError: cannot import name DataSource

2008-09-17 Thread Ludwig
If you run something like >>> import django.contrib.gis.gdal >>> print django.contrib.gis.gdal.libgdal.gdal_full_version() GDAL 1.5.0, released 2007/12/18 >>> you should get the version number of the GDAL library -- and with an added bonus the import statement will have loaded the GDAL libraries,