Hello, On 11/18/2014 09:53 AM, jogaserbia wrote: > I just realized something. > > > This are all the files in django.contrib.gis.geos: > > Notice there is no GEOSException, nor is there GEOSGeometry. There is > however geometry.py (which as the class GEOSGeometry in it) and error.py > (which has the class GEOSException in it). > > I am not sure what to do with this information as I am new to > Python/Django.
Sorry, this error message is obscure. I have filed a ticket to improve it: https://code.djangoproject.com/ticket/23873 The cause of the error message is that you do not have an installation of GEOS that is on your `sys.path` and importable. (That is, something in https://docs.djangoproject.com/en/1.7/ref/contrib/gis/install/#osgeo4w or the following step didn't work correctly.) If you look in django/contrib/gis/geos/__init__.py, you'll see that GEOSException is only imported there if HAS_GEOS is True. That is why importing GEOSException from django.contrib.gis.geos will succeed if you have GEOS installed, but fails otherwise. Carl -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/546D0E22.6070806%40oddbird.net. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: OpenPGP digital signature