Page MenuHomePhabricator

movepages.py unable to login if no password.lwp is present
Closed, ResolvedPublic

Description

After deleting password.lwp, it was unable to login with right username and rights.
Move action then fails.

To recover, I tried replace.py, who asked for a password, and then movepages.py was OK again.

Looks like replace.py has superpowers compared to movepages.py

user@pc:~/python/core {master}$ python scripts/movepages.py -pairs:pairs.txt -summary:"Bot request: move after Index move" -noredirect -pt:0
Moving page [[Page:Ackermann’s Repository of Arts 1809-v01-Jan-Jun.djvu/1]] to [[Page:Repository of Arts, Series 1, Volume 01, 1809, January-June.djvu/1]]

WARNING: API warning (tokens): action=tokens has been deprecated. Please use action=query&meta=tokens instead. Action 'move' is not allowed for the current user Traceback (most recent call last): File "scripts/movepages.py", line 283, in <module> main() File "scripts/movepages.py", line 271, in main bot.moveOne(page, pair[1]) File "scripts/movepages.py", line 80, in moveOne deleteAndMove=self.getOption('noredirect')) File "/home/user/python/core/pywikibot/tools.py", line 315, in wrapper return method(*args, **kw) File "/home/user/python/core/pywikibot/page.py", line 1458, in move noredirect=deleteAndMove) File "/home/user/python/core/pywikibot/site.py", line 3606, in movepage token = self.tokens['move'] File "/home/user/python/core/pywikibot/site.py", line 1168, in getitem storage = self.site._tokens.setdefault(self.site.user(), {}) KeyError: 'move' <type 'exceptions.KeyError'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort

Version: core-(2.0)
Severity: normal

Details

Reference
bz70447