Hello hello,
Yesterday i tried to update my database from the plain text datafiles but
failed. Last time I did this was two months ago and no problem that time.
First I used version 3.2 of imdbpy but it failed, so tried with 3.4, same
problem.
This is the output i get;
SCANNING actor: Barbier, George
SCANNING actor: Barlier, Jean-Pierre
* FLUSHING SQLData...
* FLUSHING CharactersCache...
Traceback (most recent call last):
File "/home/prozzerg/imdb/imdbpy/IMDbPY-3.4/bin/imdbpy2sql.py", line
1885, in ?
run()
File "/home/prozzerg/imdb/imdbpy/IMDbPY-3.4/bin/imdbpy2sql.py", line
1784, in run
castLists()
File "/home/prozzerg/imdb/imdbpy/IMDbPY-3.4/bin/imdbpy2sql.py", line
1033, in castLists
doCast(f, roleid, rolename)
File "/home/prozzerg/imdb/imdbpy/IMDbPY-3.4/bin/imdbpy2sql.py", line
1002, in doCast
cid = CACHE_CID.addUnique(role)
File "/home/prozzerg/imdb/imdbpy/IMDbPY-3.4/bin/imdbpy2sql.py", line
569, in addUnique
else: return self.add(key, miscData)
File "/home/prozzerg/imdb/imdbpy/IMDbPY-3.4/bin/imdbpy2sql.py", line
562, in add
self[key] = c
File "/home/prozzerg/imdb/imdbpy/IMDbPY-3.4/bin/imdbpy2sql.py", line
480, in __setitem__
self.flush()
File "/home/prozzerg/imdb/imdbpy/IMDbPY-3.4/bin/imdbpy2sql.py", line
526, in flush
print ' * TOO MANY DATA (%s items in %s), recursion: %s' % \
AttributeError: 'CharactersCache' object has no attribute 'className'
I tried to comment the print line and it worked, atleast for a while.
Before the script was able to finnish with the first .gz file it crashed
with a plain segfault without errors. I tried to do the same modifications
to the 3.2 script, it completes the first file but halts on actors.gz,
giving me this error:
# TIME readMovieList() : 13 min, 45 sec.
DOING actors.list.gz
Traceback (most recent call last):
File "/home/prozzerg/imdb/imdbpy/IMDbPY-3.2/bin/imdbpy2sql.py", line
1739, in ?
run()
File "/home/prozzerg/imdb/imdbpy/IMDbPY-3.2/bin/imdbpy2sql.py", line
1642, in run
castLists()
File "/home/prozzerg/imdb/imdbpy/IMDbPY-3.2/bin/imdbpy2sql.py", line
910, in castLists
doCast(f, roleid, rolename)
File "/home/prozzerg/imdb/imdbpy/IMDbPY-3.2/bin/imdbpy2sql.py", line
838, in doCast
sqldata = SQLData(table=CastInfo, cols=['personID', 'movieID',
'personRole', 'note', 'nrOrder', roleidVal])
File "/home/prozzerg/imdb/imdbpy/IMDbPY-3.2/bin/imdbpy2sql.py", line
674, in __init__
sqlString, converter = createSQLstr(table, cols)
File "/home/prozzerg/imdb/imdbpy/IMDbPY-3.2/bin/imdbpy2sql.py", line
191, in createSQLstr
colNames.append(colName(table, col))
File "/home/prozzerg/imdb/imdbpy/IMDbPY-3.2/bin/imdbpy2sql.py", line
137, in colName
return table.sqlmeta.columns[column].dbName
The 3.2 version worked on the same box two months ago, nothing have
changed. Have tried to drop the database, recreate it, even tried to
redownload the plain text files (from all the 3 mirrors listed on
imdb.com) and nothing helps.
Have IMDB changed their structure in the plain text files recently?
Best regards,
Fredrik Arnell
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Imdbpy-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/imdbpy-devel