Re: Python and 8.0 beta - Mailing list pgsql-general

From Michael Fuhr
Subject Re: Python and 8.0 beta
Date
Msg-id 20040824040735.GA52054@winnie.fuhr.org
Whole thread Raw
In response to Re: Python and 8.0 beta  (Tim Penhey <tim@penhey.net>)
List pgsql-general
On Tue, Aug 24, 2004 at 12:12:35AM +0100, Tim Penhey wrote:
> Peter Eisentraut wrote:
>
> >Tim Penhey wrote:
> >
> >>Are there any python drivers that work with the version 8 beta?
> >>The version seven ones didn't.
> >
> >Why?
> >
> Changed from using pyPgSQL to psycopg and things are working again...

Switching modules may fix your code but it doesn't fix the problem
with pyPgSQL.  I'm guessing that your code was failing with an
exception like the following:

libpq.DatabaseError: Ivalid [sic] format for PgVersion construction.

pyPgSQL's version string parsing fails at the "beta" portion
of "8.0.0beta1".  This has already been reported at Sourceforge
as Bug 1006782; I just followed up to that bug report with a
suggested fix.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Unsupported 3rd-party solutions (Was: Few questions
Next
From: David Wheeler
Date:
Subject: Re: UTF-8 and LIKE vs =