これはかなり基本的な質問だと思いますが、理由がわかりません。
import psycopg2
psycopg2.connect("postgresql://postgres:postgres@localhost/postgres")
次のエラーが発生しています:
psycopg2.OperationalError: missing "=" after
"postgresql://postgres:postgres@localhost/postgres" in connection info string
何か案が?接続文字列に関するドキュメントによると、私はそれが機能するはずだと信じていますが、それはこのようにしか機能しません:
psycopg2.connect("host=localhost user=postgres password=postgres dbname=postgres")
Ubuntu12.04のPython2.7.3で最新のpsycopg2バージョンを使用しています