[Pywikipedia-l] error in replace.py rewrite branch
Matias
plinbox at gmail.com
Thu Sep 24 14:57:49 UTC 2009
Hi everyone. When trying to use a version of replace.py I get this error:
Traceback (most recent call last):
File "pande_replace.py", line 742, in <module>
main()
File "pande_replace.py", line 725, in main
gen = genFactory.getCombinedGenerator(gen)
TypeError: getCombinedGenerator() takes exactly 1 argument (2 given)
Exception exceptions.TypeError: "'NoneType' object is not callable" in
<bound method SharedSocket.__del__ of <httplib.SharedSocket instance at
0x1a45200>> ignored
Line 725 is:
query = u"""
SELECT page_namespace, page_title
FROM page
JOIN text ON (page_id = old_id)
%s
%s
LIMIT 200""" % (whereClause, exceptClause)
gen = pagegenerators.MySQLPageGenerator(query)
elif PageTitles:
pages = [pywikibot.Page(pywikibot.getSite(), PageTitle)
for PageTitle in PageTitles]
gen = iter(pages)
gen = genFactory.getCombinedGenerator(gen)
running parameters for script are:
python pande_replace.py -fix:comunes -start:! -always
I'm using latest revision from SVN.
Any ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wikimedia.org/pipermail/pywikipedia-l/attachments/20090924/ae0110a3/attachment.htm
More information about the Pywikipedia-l
mailing list