Re: Postgres Python API problem

From: Harald Armin Massa <haraldarminmassa(at)gmail(dot)com>
To: Ruby Murillo <rmurillo(at)vistagen-inc(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Postgres Python API problem
Date: 2005-06-24 07:04:51
Message-ID: 7be3f35d05062400046d78a1c4@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Ruby,

to my heat-challenged ears and eyes this message looks as if the python
server side scripting "python" is built for python 2.3; and your installed
python is 2.4

So... I recommend installing python 2.3 and try again.

Harald

2005/6/23, Ruby Murillo <rmurillo(at)vistagen-inc(dot)com>:
>
> Hi,
>
> We keep getting this message:
>
> import pgdb
>
> /usr/local/lib/python2.4/site-packsges/pgdb.py:56: RuntimeWarning: Python
> C API version mismatch for module _pg: This Python has API version 1012,
>
> module _pg has version 1011
>
> import pg
>
> /usr/local/lib/python2.4/site-packsges/pgdb.py:8: RuntimeWarning: Python C
> API version mismatch for module _pg: This Python has API version 1012,
>
> module _pg has version 1011
>
> I have installed Postgres 3 years from RPM and just included python(2.2)
> in the installation. This time I need to use python but then I keep getting
> this
>
> Warning/error message.
>
> Please let me know if this is a bug or is this just a warning. I
> currently have postgres and being access by my perl appl and don't want to
> mess with it.
>
> So if you could guide me on how I could make my python up-to-date to the
> API, that would be great.
>
> Thanks,
>
> Ruby
>
>

--
GHUM Harald Massa
persuasion python postgresql
Harald Armin Massa
Reinsburgstraße 202b
70197 Stuttgart
0173/9409607

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Stephan Szabo 2005-06-24 14:32:28 Re: BUG #1728: unable to connect from other stations
Previous Message Christian Mercure 2005-06-24 02:40:52 BUG #1728: unable to connect from other stations