Also remove the first "try" + remove the space before "conn=" so you have this:
#!/Python27/python.exe import psycopg2 # Try to connect conn=psycopg2.connect("dbname='busard_test' user='laurent' host='localhost' password='cactus'") cur = conn.cursor() On Fri, May 16, 2014 at 12:41 PM, image <lcel...@latitude-geosystems.com>wrote: > Hello, > > Thanks. Ok i deleted the except. Please find below the 2 updates usefull > liles : > > pg_test.py > <http://postgresql.1045698.n5.nabble.com/file/n5804203/pg_test.py> > > SS_dos.JPG > <http://postgresql.1045698.n5.nabble.com/file/n5804203/SS_dos.JPG> > > > In advance, thank you. > > Regards. > > IMAGE. > > > > -- > View this message in context: > http://postgresql.1045698.n5.nabble.com/Psycopg2-error-message-tp5804197p5804203.html > Sent from the PostgreSQL - general mailing list archive at Nabble.com. > > > -- > Sent via pgsql-general mailing list (pgsql-general@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-general >