Thanks for your help. So i remove the first "try" + i remove the space before "conn=" Indeed i have a new error message in my DOS interface : pg_test.py <http://postgresql.1045698.n5.nabble.com/file/n5804207/pg_test.py> SS_dos.JPG <http://postgresql.1045698.n5.nabble.com/file/n5804207/SS_dos.JPG> In advance, thank you. IMAGE. -- View this message in context: http://postgresql.1045698.n5.nabble.com/Psycopg2-error-message-tp5804197p5804207.html Sent from the PostgreSQL - general mailing list archive at Nabble.com.