>>> cur = conn.cursor() >>> print stmt select * from stipendcrm."Accounts" >>> cur.execute(stmt) Traceback (most recent call last): File "", line 1, in ? psycopg2.ProgrammingError: schema "stipendcrm" does not exist >>>