-1👍
http://initd.org/psycopg/docs/connection.html#connection.protocol_version
You didn’t provide a version of postgres you are using.
Seems it’s older than 7.4.
In that case a solution will be to upgrade version of postgres
(or install older version of psycopg, but i think it’s not good)
Source:stackexchange.com