This project is archived and is in readonly mode.
Codec error with psycopg 2.4 and django 1.3
Reported by Psycopg website | April 10th, 2011 @ 02:55 PM
Submitted by: Andrei Antoukh
Since I upgraded from 2.3 to 2.4 psycopg'm having a problem with my django web applications, connect to the database.
When you synchronize (Django), I get this error: http://pastebin.com/hQ2s5nyQ
Note: This error happens in my linux systems with postgresql
9.x, but freebsd8.2 with the same version of postgresql works
correctly.
The python version is 2.7 in both cases.
Comments and changes to this ticket
-
Daniele Varrazzo April 10th, 2011 @ 09:28 PM
- State changed from new to resolved
Hello,
the bug has been reported a few days ago in the mailing list
http://archives.postgresql.org/psycopg/2011-04/msg00002.php
The problem has been fixed: the fix will be released in psycopg 2.4.1 but it's already available in my github branch.
https://github.com/dvarrazzo/psycopg
To work around the problem it's probably enough to define the environment variable PGCLIENTENCODING=utf8 on the client.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
<b>WARNING:</b> the informations in this tracker are archived. Please submit new tickets or comments to <a href="https://github.com/psycopg/psycopg2/issues">the new tracker</a>.
<br/>
Psycopg is the most used PostgreSQL adapter for the Python programming language. At the core it fully implements the Python DB API 2.0 specifications. Several extensions allow access to many of the features offered by PostgreSQL.