$ imdbpy2sql.py -d ./ -u postgres://login:passw...@localhost/imdb/usr/lib/python2.5/site-packages/IMDbPY-4.3-py2.5.egg/imdb/parser/sql/__init__.py:119: UserWarning: Unable to import the cutils.ratcliff function. Searching names and titles using the "sql" data access system will be slower.
warnings.warn('Unable to import the cutils.ratcliff function.'/usr/lib/python2.5/site-packages/IMDbPY-4.3-py2.5.egg/imdb/parser/sql/__init__.py:326: UserWarning: Unable to import the cutils.soundex function. Searches of movie titles and person names will be a bit slower.
warnings.warn('Unable to import the cutils.soundex function.' IMPORTING psyco... FAILED (not a big deal, everything is alright...) RUNNING imdbpy2sql.py SAVING imdbID values for movies... DONE! (0 entries) SAVING imdbID values for people... DONE! (0 entries) SAVING imdbID values for characters... DONE! (0 entries) SAVING imdbID values for companies... DONE! (0 entries) DROPPING current database... DONE! CREATING new tables... DONE!# TIME dropping and recreating the database : 0min, 2sec (wall) 0min, 0sec (user) 0min, 0sec (system)
SCANNING movies: #1 (2005) (movieID: 1) SCANNING movies: A Fu (2000) (movieID: 10001) SCANNING movies: Absconding (2005) (V) (movieID: 20001) SCANNING movies: Alone and Inhuman (2005) (movieID: 30001) SCANNING movies: Apartment 23 (1919) (movieID: 40001) SCANNING movies: Babalon (1999) (movieID: 50001) SCANNING movies: Belye nochi (1959) (movieID: 60001) SCANNING movies: Blood on the Turntable (2004) (TV) (movieID: 70001) SCANNING movies: Bullets for Bandits (1942) (movieID: 80001) SCANNING movies: Celebration (2010) (movieID: 90001) * FLUSHING MoviesCache... Traceback (most recent call last): File "/usr/bin/imdbpy2sql.py", line 5, in <module> pkg_resources.run_script('IMDbPY==4.3', 'imdbpy2sql.py')File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 448, in run_script
self.require(requires)[0].run_script(script_name, ns)File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1166, in run_script
execfile(script_filename, namespace, namespace)File "/usr/lib/python2.5/site-packages/IMDbPY-4.3-py2.5.egg/EGG-INFO/scripts/imdbpy2sql.py", line 2788, in <module>
run()File "/usr/lib/python2.5/site-packages/IMDbPY-4.3-py2.5.egg/EGG-INFO/scripts/imdbpy2sql.py", line 2632, in run
readMovieList()File "/usr/lib/python2.5/site-packages/IMDbPY-4.3-py2.5.egg/EGG-INFO/scripts/imdbpy2sql.py", line 1426, in readMovieList
mid = CACHE_MID.addUnique(title, yearData)File "/usr/lib/python2.5/site-packages/IMDbPY-4.3-py2.5.egg/EGG-INFO/scripts/imdbpy2sql.py", line 1040, in addUnique
else: return self.add(key, miscData)File "/usr/lib/python2.5/site-packages/IMDbPY-4.3-py2.5.egg/EGG-INFO/scripts/imdbpy2sql.py", line 919, in add
self[key] = cFile "/usr/lib/python2.5/site-packages/IMDbPY-4.3-py2.5.egg/EGG-INFO/scripts/imdbpy2sql.py", line 829, in __setitem__
self.flush()File "/usr/lib/python2.5/site-packages/IMDbPY-4.3-py2.5.egg/EGG-INFO/scripts/imdbpy2sql.py", line 852, in flush
self._toDB(quiet)File "/usr/lib/python2.5/site-packages/IMDbPY-4.3-py2.5.egg/EGG-INFO/scripts/imdbpy2sql.py", line 1024, in _toDB
self._runCommand(l)File "/usr/lib/python2.5/site-packages/IMDbPY-4.3-py2.5.egg/EGG-INFO/scripts/imdbpy2sql.py", line 1028, in _runCommand
CURS.executemany(self.sqlstr, self.converter(dataList))psycopg2.DataError: неверная последовательность байт имя кодировки "UTF8": 0xc333 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".
The text at the "psycopg2.DataError:" says "invalid byte sequence for encoding "/UTF8/"" (sorry, but even using LANG=C does not make this text in english). I'm used psycopg version 1 before with the same error. client_encoding has been set to UTF8. Can't reproduce it on MySQL as i don't have one. Any suggestions what can it be and what can i do with it?
Debian Lenny, PostgreSQL 8.3 from debian reps, IMDbPY 4.2, IMDbPY 4.3 (svn), python-psycopg version 1 and 2 from debian repositories. IMDbPY built without cutils and lxml support.
Thanks.
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf
_______________________________________________ Imdbpy-help mailing list Imdbpy-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/imdbpy-help