From: Gerhard H. <gh...@gh...> - 2005-04-13 17:13:27
|
On Wed, Apr 13, 2005 at 11:48:28AM +0000, Antonio Prado wrote: > I am with the following problem: >=20 > from pyPgSQL.PgSQL import connect >=20 > 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",=20 > line 23, in ? > from libpq import * > ImportError:=20 > /usr/lib/python2.3/site-packages/pyPgSQL/libpq/libpqmodule.so: undefined= =20 > symbol: PyUnicodeUCS4_EncodeDecimal >=20 >=20 > 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=3Ducs2 and the One pyPgSQL was built with was built with --enable-unicode=3Ducs4 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 |