Re: Psycopg2 : error message.

From: Dorian Hoxha <dorian(dot)hoxha(at)gmail(dot)com>
To: image <lcelati(at)latitude-geosystems(dot)com>
Cc: PostgreSql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Psycopg2 : error message.
Date: 2014-05-16 10:44:48
Message-ID: CANsFX07d4kYcA6pJr2h2-UzvuQwZPRbnDjw7QT56ikBOE+Z-Dw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)latitude-geosystems(dot)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(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Karsten Hilbert 2014-05-16 10:58:04 Re: Psycopg2 : error message.
Previous Message image 2014-05-16 10:41:15 Re: Psycopg2 : error message.