django.core.exceptions.ImproperlyConfigured: Could not import user-defined GEOMETRY_BACKEND “geos”.

You’re installing GeoDjango and you meet this error “django.core.exceptions.ImproperlyConfigured: Could not import user-defined GEOMETRY_BACKEND “geos” while trying to runserver (or any other command) in your project. Check the following in order of severity:

Have you included this in your .bash_profile (or equivalent)

export DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib:/opt/local/lib/postgresql91

Where 91 is the version of postgres you’re using.

If that doesn’t work, I would try reinstalling all the packages listed here: https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/#macports

Make sure you’re getting the right versions for each package and that postgis is installing to the right postgres!

Advertisements

2 thoughts on “django.core.exceptions.ImproperlyConfigured: Could not import user-defined GEOMETRY_BACKEND “geos”.

  1. Nai,
    Yesterday I was searching Google for “Ruby Vs Python” and I stumbled upon this blog. Finding your blog was an excellent discovery. I guess I am in the same boat as you are. I am trying to learn how to code (in Python) and then eventually will try to make something out of my knowledge of coding may be even go for a Startup. I am a big fan of MOOCs and currently learning Python from these 2 sources:
    Udacity – CS101
    EdX – 6.00x: Introduction to Computer Science and Programming (MIT)

    Just keep sharing your thoughts as they are helping a lot of folks out there. I might ping you (if you don’t mind) in case I need some help with Python.

    Good Luck!!
    Will follow you from now on…..

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s