| Mike_Peel created this task. Mike_Peel added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. |
TASK DESCRIPTION
When submitting an API call through pywikibot.data.api.Request to do action="" on Commons, the API request is never sent, and pywikibot displays an error message "pywikibot.exceptions.Error: API write action attempted without userinfo".
This happens even if the request immediately follows a login (using an account bot password) via pywikibot.data.api.LoginManager. There does not seem to be a way to pass the userinfo into the request function.
Example code is at https://bitbucket.org/mikepeel/wikicode/src/master/commons_captions_copy.py - the task I am trying to code up copies the description from an image to a Structured Data on Commons caption.
TASK DETAIL
EMAIL PREFERENCES
To: Mike_Peel
Cc: Aklapper, pywikibot-bugs-list, Mike_Peel, Wenyi, Mahveotm, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy
Cc: Aklapper, pywikibot-bugs-list, Mike_Peel, Wenyi, Mahveotm, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
