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: (view raw, whole thread or download thread mbox)
Lists: psycopg

When I import psycopg2 from python built with ucs2 I get the following error:
ImportError: /usr/local/lib/python2.4/site-packages/psycopg2/
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,



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-2017 The PostgreSQL Global Development Group