-
Notifications
You must be signed in to change notification settings - Fork 169
psycopg2.InterfaceError: can't encode unicode string to latin-1 #53
Comments
Configuration:
|
Doesn't looks like a current code. Can you try this with what we have in the git or at least with the latest version? |
That's what I've got with |
OK, when using git master I get this:
(with or without tables created) |
This may be about issue #51. |
I don’t think I have any large blobs there ... it is a bugzilla instance. |
It's about types, not about big chunks of data:
There's also no correct code in referenced issue. As I need something to test my assumptions on you please my laziness by creating a good MySQL dump sample containing table with some longblob data. Or I can try to do this myself yet right now I'm a bit out of time... |
This http://mcepl.fedorapeople.org/tmp/bugzilla-dump.sql.bz2 is the dump of the database I have tried to convert from MySQL to Postgres (the only change is that passwords are replaced with a nonsensical text). Is this what you need? |
It would be enough to have only table with attachments as it's the one that contains PS: Dump can be already removed, I made myself a copy so there's no need to expose it anymore. |
Any updates on this? I have encountered the same issue while trying to migrate a RequestTracker database |
I'm sorry, I'm just switching jobs and I hadn't enough time to invest in this one. The time mostly needed to install exactly the same software/os stack because I can't reproduce this one on my test machine. I have: py27-MySQLdb-1.2.3_3, python27-2.7.6_4, py27-psycopg2-2.5.2, mariadb55-server-5.5.35, postgresql93-server-9.3.3. And this table with data:
For me is correctly transmuted to:
|
I have already fix in #61 pull request with utf-8 encoding |
With MySQL-python-1.2.3-0.3.c1.1.el6.i686, python-psycopg2-2.0.14-2.el6.i686, mysql-5.1.71-1.el6.i686, postgresql-8.4.18-1.el6_4.i686 (output to file)
The text was updated successfully, but these errors were encountered: