Re: Psycopg2 : error message. - Mailing list pgsql-general

From Dorian Hoxha
Subject Re: Psycopg2 : error message.
Date
Msg-id CANsFX07d4kYcA6pJr2h2-UzvuQwZPRbnDjw7QT56ikBOE+Z-Dw@mail.gmail.com
Whole thread Raw
In response to Re: Psycopg2 : error message.  (image <lcelati@latitude-geosystems.com>)
List pgsql-general
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 <lcelati@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

pgsql-general by date:

Previous
From: image
Date:
Subject: Re: Psycopg2 : error message.
Next
From: Karsten Hilbert
Date:
Subject: Re: Psycopg2 : error message.