update the bot to release r10622 or higher and try again with option

--page="m::Wikimedia Forum"

double colon or preleading colon now implies main namespace as exprected and 
was intended for page titles long time ago

Regards
xqt


----- Original Nachricht ----
Von:     legoktm <[email protected]>
An:      Pywikipedia discussion list <[email protected]>
Datum:   28.10.2012 03:10
Betreff: 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 <[email protected]> wrote:
> 
> > Hi,
> >
> > At Meta-Wiki we've
> detected<https://meta.wikimedia.org/w/index.php?title=Meta:Babel&oldid=43415
> 73#MiszaBot_has_stopped_archiving_main_ns_pages>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
> > [email protected]
> > https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
> >
> >
> 
> 
> --------------------------------
> 
> _______________________________________________
> Pywikipedia-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
> 

_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to