Hello,
Yes, removing "defaultNamespace=3" from the script works. I tested with the
last version of the script and removed that line. The result is that the bot works OK.
Regards, M.
----- Mensaje original -----
De: legoktm
Enviado: 28-10-12 03:10
Para: Pywikipedia discussion list
Asunto: Re: [Pywikipedia-l] archivebot.py issues
If you modify line 293 and remove the "defaultNamespace=3" it should work.
Looks like that was introduced in pyrev:10149
https://www.mediawiki.org/wiki/Special:Code/pywikipedia/10149 . Not sure if it was
intentional or not.
-- Legoktm
On Sat, Oct 27, 2012 at 3:19 PM, Marco Aurelio < maurelio(a)gmx.es > wrote:
Hi,
At Meta-Wiki we've detected
https://meta.wikimedia.org/w/index.php?title=Meta:Babel&oldid=4341573#M…
that the bot that used to archive pages (MiszaBot) has suddenly stopped from doing so on
main namespace pages. I did tryed with my bot using the archivebot.py script on a
backlogged page, being [[m:Wikimedia Forum]] and the result is:
Processing [[meta:Wikimedia Forum]]
Looking for: {{User:MiszaBot/config}} in [[meta:User talk:Wikimedia Forum]]
Error occured while processing page [[meta:Wikimedia Forum]]
Traceback (most recent call last):
File "C:\Python\pywikibot\archivebot.py", line 601, in main
Archiver = PageArchiver(pg, a, salt, force)
File "C:\Python\pywikibot\archivebot.py", line 376, in __init__
self.loadConfig()
File "C:\Python\pywikibot\archivebot.py", line 418, in loadConfig
raise MissingConfigError(u'Missing or malformed template')
MissingConfigError: Missing or malformed template
C:\Python\pywikibot>
Something seems to have changed in the script's code, that now just looks for Talk and
User talk: namespaces.
Can the script please be fixed so it works on all namespaces again? - A fix would be
deeply appreciated.
Best regards, M.
--
- Marco Aurelio
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
--
- Marco Aurelio