I am trying to connect to my postgres database using psycopg2 with sslmode=\'required\' param; however, I get the following error
psycopg2.OperationalError:
Try to install psycopg2 from MacPorts
psycopg2
sudo port install py27-psycopg2