Re: PyUnicodeUCS4_EncodeDecimal
Gerhard Haering <[email protected]> Wed, 13 Apr 2005 19:13:08 +0200
| Newsgroups | gmane.comp.python.db.pypgsql.user |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Apr 13, 2005 at 11:48:28AM +0000, Antonio Prado wrote:
> I am with the following problem:
>
> from pyPgSQL.PgSQL import connect
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/lib/python2.3/site-packages/pyPgSQL/PgSQL.py", line 391, in ?
> from libpq import *
> File "/usr/lib/python2.3/site-packages/pyPgSQL/libpq/__init__.py",
> line 23, in ?
> from libpq import *
> ImportError:
> /usr/lib/python2.3/site-packages/pyPgSQL/libpq/libpqmodule.so: undefined
> symbol: PyUnicodeUCS4_EncodeDecimal
>
>
> I have installed:
> pyPgSQL-2.4-1
> postgresql-7.4.5-71534cl
> python-2.3.4-71533cl
> libpq3-7.4.5-71534cl
> Conectiva Linux 10.
The pyPgSQL RPM you installed is not binary compatible with the Python
RPM you installed, due to different Unicode settings while Python was
compiled.
The Python you installed was built with
--enable-unicode=ucs2
and the One pyPgSQL was built with was built with
--enable-unicode=ucs4
or some similar weirdness.
If you have access to the pyPgSQL source RPM, a
rpm --rebuild pyPgSQL-2.4-1.src.rpm
should help to create a usable pyPgSQL package. Otherwise I'd recommend
you insteall pyPgSQL directly from sources.
HTH,
-- Gerhard
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFCXVMkdIO4ozGCH14RAufiAKCFtlYezMrK8v/E3StsBR9mfZ5j5QCeI4dH 2W0W441lmyP7lc+AyhnOYXk= =7QrD -----END PGP SIGNATURE-----