Huji added a comment.
Alright, I tried OAuth and when I was creating the consumer on meta, I made
sure to check "Block and unblock users". However, when the bot gets to the
point that it tries to block an IP I get this error message:
...
Checking 109.169.72.36
Traceback (most recent call last):
File "pwb.py", line 297, in <module>
if not main():
File "pwb.py", line 292, in main
run_python_file(filename, [filename] + args, argvu, file_package)
File "pwb.py", line 96, in run_python_file
main_mod.__dict__)
File "./scripts/userscripts/findproxy.py", line 236, in <module>
robot.find_proxies()
File "./scripts/userscripts/findproxy.py", line 209, in find_proxies
anononly=False, allowusertalk=True)
File "/home/huji/bot/pywikibot/site.py", line 1320, in callee
self.login(True)
File "/home/huji/bot/pywikibot/site.py", line 2069, in login
raise NoUsername('No sysop is permitted with OAuth')
pywikibot.exceptions.NoUsername: No sysop is permitted with OAuth
Looking at Site.py
<https://phabricator.wikimedia.org/diffusion/PWBC/browse/master/pywikibot/site.py$2067-2070>
it seems like the code actually disallows using OAuth for sysop accounts. (It
seems this is because OAuth does not tie the bot to a username? but that
doesn't make sense)
Anyway, unless I am doing something overtly wrong, OAuth is not going to be
the answer here. Let me see if I can get BotPasswords to work.
TASK DETAIL
https://phabricator.wikimedia.org/T229293
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Huji
Cc: Dalba, Framawiki, Aklapper, Huji, pywikibot-bugs-list, Viztor, DannyS712,
Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis,
mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs