Hello,

Getting error all the time at the same place:
psycopg2.DataError: invalid byte sequence for encoding "UTF8": 0xc320

*System:*
imdbpy 4.7 (also tried with latest version from SVN: 4.8dev20110317)
python 2.6.6
PostgreSQL: 8.4.7 (Database encoding is en_US.UTF8)
IMDB data: (tried with the latest and also version from february)

*Lines i tried to run:*
./imdbpy2sql.py -d /www/imdb/data/ -u postgres://imdb:imdb@localhost/imdb2
also tried:
./imdbpy2sql.py -d /www/imdb/data/ -u postgres://imdb:imdb@localhost/imdb2
-e 'AFTER_CREATE:SET client_encoding TO utf8'

*Some facts to help diagnose problem:*
IMDBPy is not installed, running from sources.
Dependancies like SQLObject are installed (SQLObject-0.12.4)
Running on Debian Linux.
Some time ago we used installed version IMDBPy and everything went fine even
with the same data files as now, but since there is no stable version 4.7
for debian yet, we uninstalled and now we are running from source.

After 30 minutes of script running i recieve following errors:

*Error:*
SCANNING actor: Havel, Jir?
 * FLUSHING CharactersCache...
Traceback (most recent call last):
  File "./imdbpy2sql.py", line 2959, in <module>
    run()
  File "./imdbpy2sql.py", line 2820, in run
    castLists(_charIDsList=characters_imdbIDs)
  File "./imdbpy2sql.py", line 1584, in castLists
    doCast(f, roleid, rolename)
  File "./imdbpy2sql.py", line 1543, in doCast
    cid = CACHE_CID.addUnique(role)
  File "./imdbpy2sql.py", line 966, in addUnique
    else: return self.add(key, miscData)
  File "./imdbpy2sql.py", line 959, in add
    self[key] = c
  File "./imdbpy2sql.py", line 869, in __setitem__
    self.flush()
  File "./imdbpy2sql.py", line 892, in flush
    self._toDB(quiet)
  File "./imdbpy2sql.py", line 1194, in _toDB
    CURS.executemany(self.sqlstr, self.converter(l))
psycopg2.DataError: invalid byte sequence for encoding "UTF8": 0xc320
HINT:  This error can also happen if the byte sequence does not match the
encoding expected by the server, which is controlled by "client_encoding".

Any suggestions? I found similar topic, but there were also no solutions.
Run out of ideas :/
Anyone could help?
Thank you.
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help

Reply via email to