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, which in my experience (which is more on win32 and linux) is a good indicator that the libraries itself are installed correctly. Maybe if you post the result from that call again it becomes clearer what is going wrong. Ludwig 2008/9/17 Alfonso <[EMAIL PROTECTED]> > > Finally got round to setting up geodjango properly - postgresql db > etc. and been inspecting some shapefiles for import. I get this > error: > > >>> from django.contrib.gis.utils import ogrinfo, ogrinspect > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/site-packages/django/contrib/gis/utils/ogrinfo.py", line 7, > in <module> > from django.contrib.gis.gdal import DataSource > ImportError: cannot import name DataSource > > Clearly something to do with my Gdal installation? I'm running OS X > Leopard and wondering where to begin to debug the error? > > Thanks, > > Allan > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---