Alkamid created this task. Alkamid added a subscriber: Alkamid. Alkamid added a project: pywikibot-core. Herald added subscribers: pywikibot-bugs-list, StudiesWorld, Aklapper.
TASK DESCRIPTION I'm running my [[ https://github.com/alkamid/wiktionary/blob/master/addLang.py | script ]] (which uses pywikibot to save pages) on tools and when it reaches [[ https://github.com/alkamid/wiktionary/blob/master/addLang.py#L175 | the save(..., as_group='sysop') part ]], I'm prompted for my sysop password: ``` Logging in to wiktionary:pl as Alkamid ERROR: Login failed (WrongPass). Password for user Alkamid on wiktionary:pl (no characters will be shown): ``` When I enter the password, the following happens: ``` Logging in to wiktionary:pl as Alkamid ERROR: Logged in as 'Alkamid' instead of 'AlkamidBot'. Forcing re-login. Logging in to wiktionary:pl as AlkamidBot ERROR: Logged in as 'AlkamidBot' instead of 'Alkamid'. Forcing re-login. Logging in to wiktionary:pl as AlkamidBot WARNING: API error protectednamespace-interface: You're not allowed to edit interface messages Traceback (most recent call last): File "/shared/pywikipedia/core/pywikibot/page.py", line 1125, in _save watch=watch, bot=botflag, **kwargs) File "/shared/pywikipedia/core/pywikibot/site.py", line 1297, in callee return fn(self, *args, **kwargs) File "/shared/pywikipedia/core/pywikibot/site.py", line 4745, in editpage result = req.submit() File "/shared/pywikipedia/core/pywikibot/data/api.py", line 2178, in submit raise APIError(**result['error']) pywikibot.data.api.APIError: protectednamespace-interface: You're not allowed to edit interface messages [help:See https://pl.wiktionary.org/w/api.php for API usage] During handling of the above exception, another exception occurred: Traceback (most recent call last): File "addLang.py", line 194, in <module> main() File "addLang.py", line 175, in main page10.save(summary='Dodanie języka {0}'.format(zjezyka), as_group='sysop') File "/shared/pywikipedia/core/pywikibot/tools/__init__.py", line 1327, in wrapper return obj(*__args, **__kw) File "/shared/pywikipedia/core/pywikibot/page.py", line 1114, in save cc=apply_cosmetic_changes, **kwargs) File "/shared/pywikipedia/core/pywikibot/page.py", line 1140, in _save raise pywikibot.OtherPageSaveError(self, err) pywikibot.exceptions.OtherPageSaveError: Edit to page [[MediaWiki:Gadget-langdata.js]] failed: protectednamespace-interface: You're not allowed to edit interface messages [help:See https://pl.wiktionary.org/w/api.php for API usage] <class 'pywikibot.exceptions.OtherPageSaveError'> CRITICAL: Closing network session. ``` It works fine on my local machine on pywikibot-core. TASK DETAIL https://phabricator.wikimedia.org/T119335 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Alkamid Cc: Aklapper, StudiesWorld, Alkamid, pywikibot-bugs-list, jayvdb _______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
