Dear maintainer,
A new upstream version of Pywikibot is now available: 9.5.0.
Dear maintainer,
A new upstream version of Pywikibot is now available: 9.5.0.
This being a recurring maintenance task of sorts, should we maybe include it in clinic duty?
might this be related to the wikitech SUL migration?
tools.wikitech-double-redirect-bot@tools-sgebastion-10:~$ toolforge jobs run --image tool-pywikibot/pywikibot-scripts-stable:latest --command "pwb -family:wikitech -lang:en listpages -cat:Bots" test-image
tools.wikitech-double-redirect-bot@tools-sgebastion-10:~$ toolforge jobs logs test-image -f
2024-11-06T08:44:36+00:00 [test-image-g4qtw] family and mylang are not set.
2024-11-06T08:44:36+00:00 [test-image-g4qtw] Defaulting to family='wikipedia' and mylang='test'.
2024-11-06T08:44:38+00:00 [test-image-g4qtw] WARNING: API error mwoauth-invalid-authorization: The authorization headers in your request are not valid: Invalid consumer
2024-11-06T08:44:38+00:00 [test-image-g4qtw] Traceback (most recent call last):
2024-11-06T08:44:38+00:00 [test-image-g4qtw] File "/workspace/pwb.py", line 40, in <module>
2024-11-06T08:44:38+00:00 [test-image-g4qtw] sys.exit(main())
2024-11-06T08:44:38+00:00 [test-image-g4qtw] File "/workspace/pwb.py", line 36, in main
2024-11-06T08:44:38+00:00 [test-image-g4qtw] runpy.run_path(str(path), run_name='__main__')
2024-11-06T08:44:38+00:00 [test-image-g4qtw] File "/layers/heroku_python/python/lib/python3.9/runpy.py", line 288, in run_path
2024-11-06T08:44:38+00:00 [test-image-g4qtw] return _run_module_code(code, init_globals, run_name,
2024-11-06T08:44:38+00:00 [test-image-g4qtw] File "/layers/heroku_python/python/lib/python3.9/runpy.py", line 97, in _run_module_code
2024-11-06T08:44:38+00:00 [test-image-g4qtw] _run_code(code, mod_globals, init_globals,
2024-11-06T08:44:38+00:00 [test-image-g4qtw] File "/layers/heroku_python/python/lib/python3.9/runpy.py", line 87, in _run_code
2024-11-06T08:44:38+00:00 [test-image-g4qtw] exec(code, run_globals)
2024-11-06T08:44:38+00:00 [test-image-g4qtw] File "/workspace/pywikibot/scripts/wrapper.py", line 544, in <module>
2024-11-06T08:44:38+00:00 [test-image-g4qtw] main()
2024-11-06T08:44:38+00:00 [test-image-g4qtw] File "/workspace/pywikibot/scripts/wrapper.py", line 528, in main
2024-11-06T08:44:38+00:00 [test-image-g4qtw] if not execute():
2024-11-06T08:44:38+00:00 [test-image-g4qtw] File "/workspace/pywikibot/scripts/wrapper.py", line 466, in execute
2024-11-06T08:44:38+00:00 [test-image-g4qtw] unknown_args = pwb.handle_args(global_args)
2024-11-06T08:44:38+00:00 [test-image-g4qtw] File "/workspace/pywikibot/bot.py", line 853, in handle_args
2024-11-06T08:44:38+00:00 [test-image-g4qtw] pywikibot.Site()
2024-11-06T08:44:38+00:00 [test-image-g4qtw] File "/workspace/pywikibot/__init__.py", line 243, in Site
2024-11-06T08:44:38+00:00 [test-image-g4qtw] _sites[key] = interface(code=code, fam=fam, user=user)
2024-11-06T08:44:38+00:00 [test-image-g4qtw] File "/workspace/pywikibot/site/_apisite.py", line 142, in __init__
2024-11-06T08:44:38+00:00 [test-image-g4qtw] self.login(cookie_only=True)
2024-11-06T08:44:38+00:00 [test-image-g4qtw] File "/workspace/pywikibot/site/_apisite.py", line 400, in login
2024-11-06T08:44:38+00:00 [test-image-g4qtw] if self.userinfo['name'] == self.user():
2024-11-06T08:44:38+00:00 [test-image-g4qtw] File "/workspace/pywikibot/site/_apisite.py", line 675, in userinfo
2024-11-06T08:44:38+00:00 [test-image-g4qtw] uidata = uirequest.submit()
2024-11-06T08:44:38+00:00 [test-image-g4qtw] File "/workspace/pywikibot/data/api/_requests.py", line 1113, in submit
2024-11-06T08:44:38+00:00 [test-image-g4qtw] raise NoUsernameError(f'Failed {msg}')
2024-11-06T08:44:38+00:00 [test-image-g4qtw] pywikibot.exceptions.NoUsernameError: Failed OAuth authentication for wikitech:en: The authorization headers in your request are not valid: Invalid consumer
2024-11-06T08:44:38+00:00 [test-image-g4qtw] CRITICAL: Exiting due to uncaught exception NoUsernameError: Failed OAuth authentication for wikitech:en: The authorization headers in your request are not valid: Invalid consumerIt did work when I use my credentials:
tools.wm-what@tools-bastion-13:~$ toolforge jobs run --image tool-pywikibot/pywikibot-scripts-stable:latest --command "pwb -family:wikitech -lang:en listpages -cat:Bots" test-image tools.wm-what@tools-bastion-13:~$ toolforge jobs logs test-image -f 2024-11-06T15:39:26+00:00 [test-image-whtlp] family and mylang are not set. 2024-11-06T15:39:26+00:00 [test-image-whtlp] Defaulting to family='wikipedia' and mylang='test'. 2024-11-06T15:39:29+00:00 [test-image-whtlp] 1 Asanack-bot 2024-11-06T15:39:29+00:00 [test-image-whtlp] 2 Bridgebot 2024-11-06T15:39:29+00:00 [test-image-whtlp] 3 Linkwatcher 2024-11-06T15:39:29+00:00 [test-image-whtlp] 4 Dbbot-wm 2024-11-06T15:39:29+00:00 [test-image-whtlp] 5 Gerrit/Phabricator integration 2024-11-06T15:39:29+00:00 [test-image-whtlp] 6 Ircecho 2024-11-06T15:39:29+00:00 [test-image-whtlp] 7 Jouncebot 2024-11-06T15:39:29+00:00 [test-image-whtlp] 8 Logmsgbot 2024-11-06T15:39:29+00:00 [test-image-whtlp] 9 Meetbot 2024-11-06T15:39:29+00:00 [test-image-whtlp] 10 Morebots 2024-11-06T15:39:29+00:00 [test-image-whtlp] 11 Nagios-wm 2024-11-06T15:39:29+00:00 [test-image-whtlp] 12 Phab-ban 2024-11-06T15:39:29+00:00 [test-image-whtlp] 13 Phabricator/Conduit API Tokens 2024-11-06T15:39:29+00:00 [test-image-whtlp] 14 ReleaseTaggerBot 2024-11-06T15:39:29+00:00 [test-image-whtlp] 15 Stashbot 2024-11-06T15:39:29+00:00 [test-image-whtlp] 16 Wikibugs 2024-11-06T15:39:29+00:00 [test-image-whtlp] 17 WikiSVN 2024-11-06T15:39:29+00:00 [test-image-whtlp] 18 Wm-bot 2024-11-06T15:39:29+00:00 [test-image-whtlp] 19 Wprc 2024-11-06T15:39:29+00:00 [test-image-whtlp] 20 Zhmrtbot 2024-11-06T15:39:29+00:00 [test-image-whtlp] 2024-11-06T15:39:29+00:00 [test-image-whtlp] 20 read operations 2024-11-06T15:39:29+00:00 [test-image-whtlp] Execution time: 2024-11-06T15:39:29+00:00 [test-image-whtlp] Read operation time: 0.0 seconds 2024-11-06T15:39:29+00:00 [test-image-whtlp] Script terminated successfully.
So the image "works" xd, though we should double check the creds that that tool is using