ImportError: cannot import name SpatialRefSys

113 views
Skip to first unread message

Alfredo Di Napoli

unread,
Jun 14, 2009, 1:13:53 PM6/14/09
to geodjango
Hi,
I have a trouble with the last step in the documentation "post-
installation" section:
When I try:
add_postgis_srs(900913)
I obtain:

/Library/Python/2.5/site-packages/django/contrib/gis/utils/srs.pyc in
add_postgis_srs(srs)
13 probably be changed.
14 """
---> 15 from django.contrib.gis.models import SpatialRefSys
16 from django.contrib.gis.gdal import SpatialReference
17

ImportError: cannot import name SpatialRefSys


I'm on mac os, I've installed gdal, geos and postgis through the king
chaos binary.
I have Django :
In [13]: print VERSION
(1, 0, 2, 'final', 0)

I've looked in gis/models.py but I haven't found any SpatialRefSys
class!!
Can you help me?
Bye :)
Alfredo

Alfredo Di Napoli

unread,
Jun 16, 2009, 6:01:30 AM6/16/09
to geodjango
The installation of GRASS framework fixed the problem :)
Bye
Alfredo

On 14 Giu, 19:13, Alfredo Di Napoli <alfredo.dinap...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages