Thanks. The original CVS version gave this:
SCANNING movies: Waiting (2006/I) (movieID: 470001)
SCANNING movies: Will of the Wisp (2007) (movieID: 480001)
SCANNING movies: Yuvana dön baba (1968) (movieID: 490001)
* FLUSHING MoviesCache...
Traceback (most recent call last):
File "imdbpy2sql.py", line 1569, in ?
run()
File "imdbpy2sql.py", line 1480, in run
readMovieList()
File "imdbpy2sql.py", line 792, in readMovieList
mid = CACHE_MID.addUnique(title, yearData)
File "imdbpy2sql.py", line 494, in addUnique
else: return self.add(key, miscData)
File "imdbpy2sql.py", line 487, in add
self[key] = c
File "imdbpy2sql.py", line 418, in __setitem__
self.flush()
File "imdbpy2sql.py", line 436, in flush
self._toDB(quiet)
File "imdbpy2sql.py", line 577, in _toDB
_emptyString='')
TypeError: build_title() got an unexpected keyword argument '_emptyString'
after changing the lines as suggested:
SCANNING movies: Will of the Wisp (2007) (movieID: 480001)
SCANNING movies: Yuvana dön baba (1968) (movieID: 490001)
* FLUSHING MoviesCache...
Gosh Batman, a bat-exception!
{'kind': u'tv series', 'year': '1981', 'title': '20 heures le journal'}
<type 'dict'>
Traceback (most recent call last):
File "imdbpy2sql.py", line 1575, in ?
run()
File "imdbpy2sql.py", line 1486, in run
readMovieList()
File "imdbpy2sql.py", line 798, in readMovieList
mid = CACHE_MID.addUnique(title, yearData)
File "imdbpy2sql.py", line 494, in addUnique
else: return self.add(key, miscData)
File "imdbpy2sql.py", line 487, in add
self[key] = c
File "imdbpy2sql.py", line 418, in __setitem__
self.flush()
File "imdbpy2sql.py", line 436, in flush
self._toDB(quiet)
File "imdbpy2sql.py", line 578, in _toDB
_emptyString='')
TypeError: build_title() got an unexpected keyword argument '_emptyString'
Thanks for the support.
Jon
On 5/9/07, Davide Alberani <[EMAIL PROTECTED]> wrote:
On May 09, Jon Sabo <[EMAIL PROTECTED]> wrote:
> As I'm not at the machine now I'm not sure what version of mysql I'm
> running. I don't imagine that's the problem, but I'm not entirely
> certain how to fix it (my knowledge of unicode is quite poor).
Heee... you're not alone... ;-)
Unicode is for sure a necessary evil, but _really_ is an evil, indeed. ;-)
In the cvs (within a few minutes/hours) there will be a "blind fix";
I cannot reproduce your problem here, but I suspect that I've
pinpointed the bug.
If it doesn't work, try to change lines 576-577 to this:
try:
stitle = build_title(tget('episode of'), canonical=1,
_emptyString='')
except:
print 'Gosh Batman, a bat-exception!'
offending = tget('episode of')
print offending, type(offending)
raise
And report the output.
Thanks for the bug report: I'll add your name to the credits!
--
Davide Alberani <[EMAIL PROTECTED]> [PGP KeyID: 0x465BFD47]
http://erlug.linux.it/~da/
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Imdbpy-devel mailing list
Imdbpy-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Imdbpy-devel mailing list
Imdbpy-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-devel