Skip site navigation (1) Skip section navigation (2)

psycopg2 and python built with ucs2

From: Scott Rohde <srohde(at)gmail(dot)com>
To: psycopg(at)postgresql(dot)org
Subject: psycopg2 and python built with ucs2
Date: 2011-07-29 17:01:45
Message-ID: CAEPRSL8XWe0kpKasJYAEtvRLy23wEcjA_eyiFsT7UArQeOyVCA@mail.gmail.com (view raw or flat)
Thread:
Lists: psycopg
Hello,

When I import psycopg2 from python built with ucs2 I get the following error:
ImportError: /usr/local/lib/python2.4/site-packages/psycopg2/_psycopg.so:
undefined symbol: PyUnicodeUCS4_Decode

By recompiling python to use ucs4 this error goes away and I can
successfully use psycopg2.

However, in my situation it would be much more convenient if I could
get psycopg2 to work with python built with ucs2.  Is there a simple
way to do that?

Thanks very much,

--
-Scott

Responses

psycopg by date

Next:From: Joe AbbateDate: 2011-08-05 17:34:14
Subject: Fwd: Psycopg2 2.4.2 on Debian with Python 3
Previous:From: Daniele VarrazzoDate: 2011-07-26 11:53:06
Subject: Re: Fwd: autocommit linux error

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group