atagar created this task.
atagar added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
Unlike add_text.py which logs you in if credentials are not cached,
movepages.py errors...
% python pwb.py movepages -from:"Pywikibot move test" -to:"Pywikibot move
test 2"
Moving page [[en:Pywikibot move test]] to [[Pywikibot move test 2]]
WARNING: No user is logged in on site test:en
Traceback (most recent call last):
File "pwb.py", line 399, in <module>
if not main():
File "pwb.py", line 391, in main
run_python_file(filename,
File "pwb.py", line 106, in run_python_file
exec(compile(source, filename, 'exec', dont_inherit=True),
File "./scripts/movepages.py", line 258, in <module>
main()
File "./scripts/movepages.py", line 247, in main
bot.moveOne(page, pair[1])
File "./scripts/movepages.py", line 78, in moveOne
page.move(
File "pywikibot/tools/_deprecate.py", line 404, in wrapper
return obj(*__args, **__kw)
File "pywikibot/tools/_deprecate.py", line 487, in wrapper
return obj(*new_args, **new_kwargs)
File "pywikibot/page/__init__.py", line 1719, in move
return self.site.movepage(self, newtitle, reason,
File "pywikibot/site/_decorators.py", line 89, in callee
raise UserRightsError('User "{}" does not have required '
pywikibot.exceptions.UserRightsError: User "None" does not have required
user
right "move"
CRITICAL: Exiting due to uncaught exception <class
'pywikibot.exceptions.UserRightsError'>
With the patch <https://gerrit.wikimedia.org/r/c/pywikibot/core/+/701695> we
output...
% python pwb.py movepages -from:"Pywikibot move test" -to:"Pywikibot move
test 2"
WARNING: No user is logged in on site test:en
Logging in to test:en as Atagar-bot@all
WARNING: API warning (main): Subscribe to the mediawiki-api-announce mailing
list at
<https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce>
for notice of API deprecations and breaking changes. Use
[[Special:ApiFeatureUsage]] to see usage of deprecated features by your
application.
WARNING: API warning (login): Fetching a token via "action=login" is
deprecated. Use "action=query&meta=tokens&type=login" instead.
ERROR: Received incorrect login token. Forcing re-login.
Moving page [[en:Pywikibot move test]] to [[Pywikibot move test 2]]
Sleeping for 6.8 seconds, 2021-06-27 16:27:28
TASK DETAIL
https://phabricator.wikimedia.org/T285723
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: atagar
Cc: Aklapper, pywikibot-bugs-list, atagar, Jyoo1011, JohnsonLee01, SHEKH,
Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89,
Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]