Re: libpq problem

Gerhard Häring <[email protected]> Mon, 06 Mar 2006 08:11:28 +0100
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

mattia tortorelli wrote:
> Hi all!
> 
>  
> 
> I?m trying to install trac 0.9.3 on a Linux RedHat Enterprise 4 server,
> I got Python 2.3 and 2.4 and I?ve installed pyPgSQL 2.3 and 2.4
> respectively. When I try to create a new environment with the trac-admin
> command, this use pyPgSQL to connect to a PgSQL database but it gives me
> the next error: [...]

There is no pyPgSQL 2.4 released, yet.

> /usr/lib/python2.4/site-packages/pyPgSQL/libpq/__init__.py:23:
> RuntimeWarning: Python C API version mismatch for module libpq: This
> Python has API version 1012, module libpq has version 1011.
> 
>   from libpq import *
> 
> *** glibc detected *** free(): invalid pointer: 0xb7ed83c0 ***
> 

This error message comes from using an extension module compiled for one
Python major version in a different Python major version.

Most likely you're using a binary install of pyPgSQL compiled for Python
2.3 under Python 2.4.

One solution is to compile pyPgSQL for Python 2.4 yourself.

- -- Gerhard
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEC+CgdIO4ozGCH14RAtNOAJkBpJ++CxVxuqi51n6Bd7YMR7ESGgCfevic
stA+7Ky//ug8mcjR9AXcW8o=
=Knwb
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642