• My Errors
  • Login
  • Search
Search again

Error #69803

Error loading psycopg module: No module named psycopg

User's solution

This works!
+4 Vote Up

When running Django, it complains that psycopg is not installed.

The easy fix is to install psycopg2-2.0.2-py2.4-macosx10.4.zip that can be found here: http://pythonmac.org/packages/py24-fat/

Then you need to change this line in settings.py:

From:

DATABASE_ENGINE = 'postgresql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.

To:

DATABASE_ENGINE = 'postgresql_psycopg2' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.

Apr 12, 2008