[Pywikipedia-bugs] [Maniphest] [Created] T376955: MediaInfo.EditEntity() doesn't work for claims/statements
Multichill created this task. Multichill added projects: Pywikibot-Wikidata, Pywikibot-Commons, StructuredDataOnCommons, Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Hitting T149410 <https://phabricator.wikimedia.org/T149410> again. I was trying to switch my code to use mediainfo.editEntity() instead of using site, but nothing happened. Some example code: import pywikibot site = pywikibot.Site('commons', 'commons') repo = site.data_repository() filepage = pywikibot.FilePage(site, 'File:-2011-03-05 Southern Hill Hospital, Mundesley, Norfolk (2).jpg') mediainfo = filepage.data_item() new_claim = pywikibot.Claim(repo, 'P7384') new_claim.setTarget('2295284') data = {'claims': [new_claim.toJSON(), ]} response = mediainfo.editEntity(data=data) print(response) (nothing happens) The problem is that the get API is returning 'statements' and the edit API expects 'claims'. In my dict I use claims. This hits WikibaseEntity._normalizeData which uses these fields: DATA_ATTRIBUTES = { 'labels': LanguageDict, 'statements': ClaimCollection, } Claims is not in there so the data dict is empty after normalization. I can't really think of a clean way to solve this at the moment. Maybe add ImageInfo._normalizeData() that doesn't mess it up? TASK DETAIL https://phabricator.wikimedia.org/T376955 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Aklapper, pywikibot-bugs-list, JJMC89, matej_suchanek, Xqt, Multichill, mevo, PotsdamLamb, Jyoo1011, FRomeo_WMF, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Nintendofan885, Zkhalido, Aram, Viztor, JKSTNK, Wenyi, Tbscho, KimKelting, MayS, Mdupont, Dvorapa, Altostratus, Avicennasis, Fuzheado, mys_721tx, Daniel_Mietchen, jayvdb, Ricordisamoa, Lydia_Pintscher, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T372588: Add MediaInfo.changeClaim() in Pywikibot
Multichill added a comment. Currently using it for edits like https://commons.wikimedia.org/w/index.php?title=File:John_Meintz,_punished_during_World_War_I_-_NARA_-_283633_-_restored.jpg&diff=prev&oldid=909842445 where I add missing qualifiers to an existing claim. ( self.site.save_claim(claim, summary=summary, tags='BotSDC') ) I could use edit entity, but than I don't have the nice automatic change summary. TASK DETAIL https://phabricator.wikimedia.org/T372588 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: pywikibot-bugs-list, Xqt, matej_suchanek, Aklapper, Multichill, mevo, PotsdamLamb, Jyoo1011, FRomeo_WMF, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Nintendofan885, Zkhalido, Aram, Viztor, JKSTNK, Wenyi, Tbscho, KimKelting, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, Fuzheado, mys_721tx, Daniel_Mietchen, jayvdb, Ricordisamoa, Lydia_Pintscher, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Retitled] T372588: Add MediaInfo.changeClaim() in Pywikibot
Multichill renamed this task from "Add MediaInfo.changeClaim in Pywikibot" to "Add MediaInfo.changeClaim() in Pywikibot". TASK DETAIL https://phabricator.wikimedia.org/T372588 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: pywikibot-bugs-list, Xqt, matej_suchanek, Aklapper, Multichill, mevo, PotsdamLamb, Jyoo1011, FRomeo_WMF, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Nintendofan885, Zkhalido, Aram, Viztor, JKSTNK, Wenyi, Tbscho, KimKelting, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, Fuzheado, mys_721tx, Daniel_Mietchen, jayvdb, Ricordisamoa, Lydia_Pintscher, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T372588: Add MediaInfo.changeClaim in Pywikibot
Multichill created this task. Multichill added projects: Pywikibot, Pywikibot-Wikidata, Pywikibot-Commons, StructuredDataOnCommons. Restricted Application added a subscriber: pywikibot-bugs-list. TASK DESCRIPTION We have MediaInfo.addClaim() which wraps around DataSite.addClaim(), but we don't have MediaInfo.changeClaim() which can wrap around DataSite.save_claim() Add this function so I don't have to use self.site.save_claim() directly. TASK DETAIL https://phabricator.wikimedia.org/T372588 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: pywikibot-bugs-list, Xqt, matej_suchanek, Aklapper, Multichill, mevo, PotsdamLamb, Jyoo1011, FRomeo_WMF, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Nintendofan885, Zkhalido, Aram, Viztor, JKSTNK, Wenyi, Tbscho, KimKelting, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, Fuzheado, mys_721tx, Daniel_Mietchen, jayvdb, Ricordisamoa, Lydia_Pintscher, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Claimed] T372513: Add tags to the wikibase functions in Pywikibot
Multichill claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T372513 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: matej_suchanek, Aklapper, pywikibot-bugs-list, Multichill, mevo, Isabelladantes1983, Themindcoder, Adamm71, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, FRomeo_WMF, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Nintendofan885, Zkhalido, Hook696, Kent7301, Aram, Viztor, CucyNoiD, JKSTNK, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, KimKelting, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, Fuzheado, mys_721tx, Xqt, Daniel_Mietchen, jayvdb, Ricordisamoa, Lydia_Pintscher, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Retitled] T372513: Add tags to the wikibase functions in Pywikibot
Multichill renamed this task from "Add tags to the wikibase functions in Wikibase" to "Add tags to the wikibase functions in Pywikibot". TASK DETAIL https://phabricator.wikimedia.org/T372513 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Aklapper, pywikibot-bugs-list, Multichill, FRomeo_WMF, Nintendofan885, JKSTNK, KimKelting, Avicennasis, Fuzheado, Daniel_Mietchen, Ricordisamoa, Lydia_Pintscher ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T372513: Add tags to the wikibase functions in Wikibase
Multichill created this task. Multichill added projects: Pywikibot-Wikidata, Pywikibot-Commons, StructuredDataOnCommons. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION On Commons we use tags to see SDC edits. In the API this field is 'tags', see it for example at https://commons.wikimedia.org/w/api.php?action=help&recursivesubmodules=1#wbsetclaim Add support for that in pywikibot Example in pywikibot/site/_datasite.py def addClaim(self, entity: pywikibot.page.WikibaseEntity, claim: pywikibot.page.Claim, bot: bool = True, summary: str | None = None, tags: str | None = None ) -> None: params = {'action': 'wbsetclaim', 'claim': json.dumps(claim.toJSON()), 'baserevid': entity.latest_revision_id, 'summary': summary, 'token': self.tokens['csrf'], 'bot': bot, 'tags': tags, } TASK DETAIL https://phabricator.wikimedia.org/T372513 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Aklapper, pywikibot-bugs-list, Multichill, FRomeo_WMF, Nintendofan885, JKSTNK, KimKelting, Avicennasis, Fuzheado, Daniel_Mietchen, Ricordisamoa, Lydia_Pintscher ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T366424: Add title() to class MediaInfo in Pywikibot
Multichill created this task. Multichill added projects: Pywikibot, Pywikibot-Commons, Pywikibot-Wikidata, StructuredDataOnCommons. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Most page (related) objects in Pywikibot have the title() function. That seems to be missing in the MediaInfo class. Should be added and function same way as ItemPage.title() ( https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.html#pywikibot.ItemPage.title ) and return something like "M1234" or "https://commons.wikimedia.org/entity/M1234"; when full url is requested. TASK DETAIL https://phabricator.wikimedia.org/T366424 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Zache, Xqt, Aklapper, pywikibot-bugs-list, Multichill, mevo, PotsdamLamb, Jyoo1011, FRomeo_WMF, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Nintendofan885, Zkhalido, Aram, Viztor, JKSTNK, Wenyi, Tbscho, KimKelting, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, Fuzheado, mys_721tx, Daniel_Mietchen, jayvdb, Ricordisamoa, Lydia_Pintscher, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Declined] T192733: Remove old symlinks to trunk/rewrite/compat/pywikipedia in /shared
Multichill closed this task as "Declined". Multichill added a comment. No activity for 5 years. I'm just going to go ahead and mark this as declined. If people want to use old symlinks, that's fine. No added value in breaking those. TASK DETAIL https://phabricator.wikimedia.org/T192733 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Urbanecm, valhallasw, Multichill, Xqt, zhuyifei1999, Framawiki, Aklapper, pywikibot-bugs-list, Dvorapa, mevo, Bellucii32, PotsdamLamb, dcaro, Devnull, Slst2020, Jyoo1011, nskaggs, JohnsonLee01, SHEKH, Dijkstra, Raymond_Ndibe, Khutuck, Nintendofan885, Zkhalido, JorisDarlingtonQuarshie, Viztor, 94rain, Wenyi, Namenlos314, skpuneethumar, sietec, Zylc, Bstorm, 1978Gage2001, Operator873, Bsandipan, DSquirrelGM, Chicocvenancio, Tbscho, MayS, Freddy2001, Mdupont, JJMC89, Altostratus, Avicennasis, Luke081515, mys_721tx, Jitrixis, Gryllida, jayvdb, Masti, scfc, Alchimista, coren, bd808, Krenair ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Updated] T192733: Remove old symlinks to trunk/rewrite/compat/pywikipedia in /shared
Multichill added a project: Pywikibot. Multichill added a comment. In T192733#9774988 <https://phabricator.wikimedia.org/T192733#9774988>, @Xqt wrote: > Not related to Pywikibot: > https://codesearch.wmcloud.org/pywikibot/?q=trunk%7Crewrite%7Ccompat%7Cpywikipedia&files=&excludeFiles=&repos= Come on, scroll up. We had this discussion before. TASK DETAIL https://phabricator.wikimedia.org/T192733 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Urbanecm, valhallasw, Multichill, Xqt, zhuyifei1999, Framawiki, Aklapper, pywikibot-bugs-list, Dvorapa, mevo, Bellucii32, PotsdamLamb, dcaro, Devnull, Slst2020, Jyoo1011, nskaggs, JohnsonLee01, SHEKH, Dijkstra, Raymond_Ndibe, Khutuck, Nintendofan885, Zkhalido, JorisDarlingtonQuarshie, Viztor, 94rain, Wenyi, Namenlos314, skpuneethumar, sietec, Zylc, Bstorm, 1978Gage2001, Operator873, Bsandipan, DSquirrelGM, Chicocvenancio, Tbscho, MayS, Freddy2001, Mdupont, JJMC89, Altostratus, Avicennasis, Luke081515, mys_721tx, Jitrixis, Gryllida, jayvdb, Masti, scfc, Alchimista, coren, bd808, Krenair ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T343936: Handle timing out SPARQL endpoint in Pywikibot
Multichill added a comment. In T343936#9083076 <https://phabricator.wikimedia.org/T343936#9083076>, @Lucas_Werkmeister_WMDE wrote: >> We should probably handle the 500 error as a recoverable error (just like the socket time out) and retry. > > Maybe the WDQS maintainers will disagree, but to me, automatically retrying a query that timed out and already consumed a significant amount of resources in doing so doesn’t sound like a good idea. That's current behavior. Queries often fail and on second try you do get valid data. Don't forget that the query service maintainers themselves implemented it like this in Pywikibot. TASK DETAIL https://phabricator.wikimedia.org/T343936 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Lucas_Werkmeister_WMDE, Aklapper, pywikibot-bugs-list, Multichill, Danny_Benjafield_WMDE, Astuthiodit_1, AWesterinen, karapayneWMDE, Invadibot, PotsdamLamb, Jyoo1011, maantietaja, JohnsonLee01, SHEKH, Dijkstra, ItamarWMDE, Khutuck, Akuckartz, Zkhalido, Viztor, Nandana, Wenyi, Namenlos314, Lahi, Gq86, GoranSMilovanovic, QZanden, EBjune, Tbscho, MayS, merbst, LawExplorer, Mdupont, JJMC89, Dvorapa, _jensen, rosalieper, Altostratus, Avicennasis, Scott_WUaS, Jonas, Xmlizer, mys_721tx, jkroll, Wikidata-bugs, Jdouglas, Xqt, aude, Tobias1984, Manybubbles, jayvdb, Ricordisamoa, Masti, Alchimista, Mbch331 ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T343936: Handle timing out SPARQL endpint in Pywikibot
Multichill added a comment. With the increased time out I was able to update https://www.wikidata.org/wiki/Wikidata:WikiProject_sum_of_all_paintings/Property_statistics ( https://github.com/multichill/toollabs/blob/master/bot/wikidata/painting_property_statistics.py ) TASK DETAIL https://phabricator.wikimedia.org/T343936 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Aklapper, pywikibot-bugs-list, Multichill, AWesterinen, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Namenlos314, Gq86, Lucas_Werkmeister_WMDE, EBjune, Tbscho, MayS, merbst, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, Jonas, Xmlizer, mys_721tx, jkroll, Wikidata-bugs, Jdouglas, Xqt, aude, Tobias1984, Manybubbles, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T343936: Handle timing out SPARQL endpint in Pywikibot
Multichill created this task. Multichill added projects: Pywikibot, Pywikibot-Wikidata, Wikidata-Query-Service. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION I have some bots that are not doing their reporting. Looking at the logs I noticed I hit the default socket timeout of 45 seconds. The Wikidata SPARQL endpoint at https://query.wikidata.org/ has a server side time out of 60 seconds. That extra 15 seconds might just be enough. **Steps to replicate the issue** (include links if applicable): I added this to my user-config.py: socket_timeout = 90 And ran a bot that does some heavy SPARQL queries ( https://github.com/multichill/toollabs/blob/master/bot/wikidata/painting_external-id_property_statistics.py ). **What happens?**: Not enough extra time so I'm hitting the server side time out: File "/home///pywikibot/pywikibot/comms/http.py", line 356, in error_handling_callback raise ServerError( pywikibot.exceptions.ServerError: 500 Server Error: Internal Server Error CRITICAL: Exiting due to uncaught exception ServerError: 500 Server Error: Internal Server Error **What should have happened instead?**: We should probably handle the 500 error as a recoverable error (just like the socket time out) and retry. **Software version** (skip for WMF-hosted wikis like Wikipedia): Recent (but not latest) git version **Other information** (browser name/version, screenshots, etc.): TASK DETAIL https://phabricator.wikimedia.org/T343936 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Aklapper, pywikibot-bugs-list, Multichill, AWesterinen, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Namenlos314, Gq86, Lucas_Werkmeister_WMDE, EBjune, Tbscho, MayS, merbst, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, Jonas, Xmlizer, mys_721tx, jkroll, Wikidata-bugs, Jdouglas, Xqt, aude, Tobias1984, Manybubbles, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T340495: Incorrect normalization of pywikibot.WbTime
Multichill added a comment. This is a bug. This causes bots to butcher up dates. Say for example a painting is sourced to be made between 1190 and 1210. The year will be set to 1200 with a precision of a millennium with earliest date 1190 and latest date 1210. The 1200 is used for sorting and other cases where things are just grouped together. This would be changed to 2000 with the current logic. This is not in line with https://www.wikidata.org/wiki/Help:Dates . TASK DETAIL https://phabricator.wikimedia.org/T340495 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: RPI2026F1, Xqt, Aklapper, pywikibot-bugs-list, Multichill, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T340495: Incorrect normalization of pywikibot.WbTime
Multichill added a comment. https://www.wikidata.org/w/index.php?title=Q118631862&diff=prev&oldid=1924443167 is what is supposed to happen TASK DETAIL https://phabricator.wikimedia.org/T340495 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: RPI2026F1, Xqt, Aklapper, pywikibot-bugs-list, Multichill, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T340495: Incorrect normalization of pywikibot.WbTime
Multichill created this task. Multichill added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION I noticed my bot doing weird edits like https://www.wikidata.org/w/index.php?title=Q2270291&diff=prev&oldid=1924431056 . Here the bot should have changed it to 1598, but for some reason it change it to 2000. This is incorrect behavior. This normalization shouldn't happen. Found the problem at https://github.com/wikimedia/pywikibot/blob/master/pywikibot/page/_wikibase.py#L1982 . normalize shouldn't be true. Bug seems to be introduced in T325860 <https://phabricator.wikimedia.org/T325860> / https://gerrit.wikimedia.org/r/c/pywikibot/core/+/872504/ TASK DETAIL https://phabricator.wikimedia.org/T340495 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: RPI2026F1, Xqt, Aklapper, pywikibot-bugs-list, Multichill, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T327600: pwb.py on Toolforge throws mwparserfromhell error on Pywikibot 8 release
Multichill created this task. Multichill added projects: Pywikibot, Toolforge. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Steps to replicate the issue** (include links if applicable): - Run python3 /data/project/shared/pywikibot/core_stable/pwb.py replace.py on the bastion host **What happens?**: The 'mwparserfromhell>=0.6.3' distribution was not found and is required by the application A package necessary for pywikibot is missing. Please update required module with: pip install "mwparserfromhell>=0.6.3" **What should have happened instead?**: Should work. If replace.py is invoked directly ($ python3 /data/project/shared/pywikibot/core_stable/scripts/replace.py), no error is given. **Software version** (skip for WMF-hosted wikis like Wikipedia): **Other information** (browser name/version, screenshots, etc.): Probably introduced in T326498 <https://phabricator.wikimedia.org/T326498> TASK DETAIL https://phabricator.wikimedia.org/T327600 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Xqt, Aklapper, pywikibot-bugs-list, Multichill, PotsdamLamb, Devnull, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Nintendofan885, Zkhalido, Viztor, Wenyi, Namenlos314, skpuneethumar, Zylc, Bstorm, 1978Gage2001, Operator873, Bsandipan, DSquirrelGM, Chicocvenancio, Tbscho, MayS, Freddy2001, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, Luke081515, mys_721tx, Jitrixis, Gryllida, jayvdb, Masti, scfc, Alchimista, coren, Krenair ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Reopened] T321452: All CI tests fail on Appveyour and Github
Multichill reopened this task as "Open". Multichill added a comment. @Xqt : Still broken: raceback (most recent call last): File "/data/project/geograph/pywikibot/pwb.py", line 38, in sys.exit(main()) File "/data/project/geograph/pywikibot/pwb.py", line 34, in main runpy.run_path(str(path), run_name='__main__') File "/usr/lib/python3.7/runpy.py", line 261, in run_path code, fname = _get_code_from_file(run_name, path_name) File "/usr/lib/python3.7/runpy.py", line 231, in _get_code_from_file with open(fname, "rb") as f: FileNotFoundError: [Errno 2] No such file or directory: '/mnt/nfs/labstore-secondary-tools-project/geograph/pywikibot/scripts/wrapper.py' The actual location ~/geograph/pywikibot/pywikibot/scripts so the additional "pywikibot" in the path gets lost somewhere TASK DETAIL https://phabricator.wikimedia.org/T321452 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Multichill Cc: Multichill, Aklapper, Xqt, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Block] T320851: pwb console script does not work when pip installed from git
Multichill reopened subtask T321452: All CI tests fail on Appveyour and Github as "Open". TASK DETAIL https://phabricator.wikimedia.org/T320851 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Multichill Cc: Xqt, Aklapper, pywikibot-bugs-list, JJMC89, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Unassigned] T319981: Migrate pywikibot from Toolforge GridEngine to Toolforge Kubernetes
Multichill removed Dvorapa as the assignee of this task. Multichill added a subscriber: Dvorapa. Multichill added a comment. In T319981#8320032 <https://phabricator.wikimedia.org/T319981#8320032>, @Xqt wrote: > @Dvorapa: Is this assignment intentionally? As mentioned in T314664 <https://phabricator.wikimedia.org/T314664>: I object to some of these subtasks being assigned to me as this is against https://www.mediawiki.org/wiki/Bug_management/Phabricator_etiquette : "Only manually assign a task to someone if they have given their prior agreement. It is up to developers (or their product managers) what they plan to work on." I asked in the Cloud Telegram channel @komla to unassign all these tasks. That was just before the weekend so I guess @komla hasn't done something yet. TASK DETAIL https://phabricator.wikimedia.org/T319981 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Dvorapa, pywikibot-bugs-list, nskaggs, komla, valhallasw, Xqt, jayvdb, Ladsgroup, Multichill, russblau, Dalba, zhuyifei1999, Legoktm, Aklapper, Framawiki, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Altostratus, Avicennasis, mys_721tx, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T249787: Create Docker image for Toolforge that is purpose built to run pywikibot scripts
Multichill added a comment. We discussed this a bit on Telegram/IRC (wikimedia-cloud) triggered by the grid to Kubernetes migration (as pasted above). I'll try to describe my use case a bit. I have all sorts of jobs running. - All are based on Pywikibot, most of them are in https://github.com/multichill/toollabs/tree/master/bot - Jobs are in multiple accounts - I use pywikibot current (master) which I rarely update (more about that later) - I use a venv because at some point direct usage stopped working - Jobs all use jsub from a crontab. Hourly, daily, weekly jobs somewhat evenly distributed over time - Development is done on my local laptop(s) and when deemed stable enough, moved to a job So my basic workflow is pretty straightforward: Write or update some tool locally. Test it. Commit it. Git pull on Toolforge and create a jsub job if it isn't there yet. I'm using the current (master) branch because that's the one I'm also using locally. Updating pywikibot usually causes breakage. I don't like tools breaking, but I really hate it when tools break at some random time because someone else did a software change, so that's why I'm controlling that part myself. I doubt pinning to pywikibot7.x and pywikibot8.x will provide enough stability (based on past experience), so we might have to go for python39-pwb77 and python39-pwb78 TASK DETAIL https://phabricator.wikimedia.org/T249787 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Multichill, Raymond_Ndibe, YFdyh000, Galobtter, taavi, aborrero, Bstorm, Framawiki, zhuyifei1999, Xqt, Legoktm, Aklapper, bd808, Liuxinyu970226, pywikibot-bugs-list, JJMC89, Ramtin2021, PotsdamLamb, dcaro, Devnull, Slst2020, GeminiAgaloos, Jyoo1011, nskaggs, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Nintendofan885, Zkhalido, Phamhi, Viztor, Wenyi, Namenlos314, skpuneethumar, sietec, Zylc, 1978Gage2001, Operator873, Bsandipan, DSquirrelGM, Chicocvenancio, Allthingsgo, Tbscho, MayS, Freddy2001, Mdupont, Dvorapa, Altostratus, Avicennasis, Luke081515, mys_721tx, Jitrixis, Gryllida, jayvdb, Masti, scfc, Alchimista, coren, Krenair ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T291771: Latest Pywikibot git version doesn't work on Toolforge
Multichill added a comment. In T291771#7591567 <https://phabricator.wikimedia.org/T291771#7591567>, @Xqt wrote: > The //"AttributeError: module 'pywikibot' has no attribute 'Site'// error is fixed with T298384 <https://phabricator.wikimedia.org/T298384>. Is anything left to do here? Did you try a blank install on Toolforge without virtualenv? As long as that doesn't work, this problem isn't solved. A work-around exists so you can lower the priority. To really fix this two options exist: - Toolforge should do the (bit overdue) update of Debian so that all dependencies are installed by default - Pywikibot should strip out some of the dependencies so it runs on the current Toolforge TASK DETAIL https://phabricator.wikimedia.org/T291771 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Majavah, JJMC89, Legoktm, Xqt, Aklapper, pywikibot-bugs-list, Multichill, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Updated] T291771: Latest Pywikibot git version doesn't work on Toolforge
Multichill added a parent task: T280806: Remove old action api token parameters. TASK DETAIL https://phabricator.wikimedia.org/T291771 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: JJMC89, Legoktm, Xqt, Aklapper, pywikibot-bugs-list, Multichill, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Reopened] T291771: Latest Pywikibot git version doesn't work on Toolforge
Multichill reopened this task as "Open". Multichill added a comment. In T291771#7378841 <https://phabricator.wikimedia.org/T291771#7378841>, @JJMC89 wrote: > If you are not using the shared install <https://wikitech.wikimedia.org/wiki/Help:Toolforge/Pywikibot#Using_the_shared_Pywikibot_files_(recommended_setup)>, then you are required to install the dependencies in a virtual environment <https://wikitech.wikimedia.org/wiki/Help:Toolforge/Pywikibot#Setup_a_Python_virtual_environment_for_library_dependencies>. > > (#Toolforge <https://phabricator.wikimedia.org/tag/toolforge/> is not an appropriate tag. See its description.) Really? You're being extremely unhelpful here. 1. The virtual environment has always been a recommendation. It was never a requirement. It shouldn't be a hard requirement so either the package should be installed in a central location or the hard dependency should be removed. 2. We also have the "AttributeError: module 'pywikibot' has no attribute 'Site'" TASK DETAIL https://phabricator.wikimedia.org/T291771 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: JJMC89, Legoktm, Xqt, Aklapper, pywikibot-bugs-list, Multichill, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Updated] T291771: Latest Pywikibot git version doesn't work on Toolforge
Multichill added a project: Toolforge. Multichill added a subscriber: JJMC89. Multichill added a comment. Not sure why the Toolforge project was removed by @JJMC89 . A package is missing on the generic infrastructure affecting multiple tools. Also no mention of this on https://wikitech.wikimedia.org/wiki/Help:Toolforge/Pywikibot#Clone_pywikibot_git_repo TASK DETAIL https://phabricator.wikimedia.org/T291771 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: JJMC89, Legoktm, Xqt, Aklapper, pywikibot-bugs-list, Multichill, Devnull, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Nintendofan885, Zkhalido, Viztor, Wenyi, skpuneethumar, Zylc, Bstorm, 1978Gage2001, Operator873, Bsandipan, DSquirrelGM, Chicocvenancio, Tbscho, MayS, Freddy2001, Mdupont, Dvorapa, Altostratus, Avicennasis, Luke081515, mys_721tx, Jitrixis, Gryllida, jayvdb, Masti, scfc, Alchimista, coren, Krenair ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T291771: Latest Pywikibot git version doesn't work on Toolforge
Multichill created this task. Multichill added projects: Pywikibot, Toolforge. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION I have been running the git version of Pywikibot on several accounts for Toolforge for years. This way I have an easy way to control upgrades. Due to T280806 <https://phabricator.wikimedia.org/T280806> I upgraded one of the accounts. I'm on the latest version now $ git pull origin master From https://gerrit.wikimedia.org/r/pywikibot/core - branchmaster -> FETCH_HEAD Already up to date. $git rev-parse HEAD 2cf5b090d79cd8a27ad8c446286bc89a7f1083ff <https://phabricator.wikimedia.org/rPWBC2cf5b090d79cd8a27ad8c446286bc89a7f1083ff> $ git submodule update --recursive --remote Submodule path 'scripts/i18n': checked out '184a0978948d3b0a59b3c133024a87ade720a4f9 <https://phabricator.wikimedia.org/rPWIN184a0978948d3b0a59b3c133024a87ade720a4f9>' git submodule update --recursive --remote But it crashes hard $ python3 pwb.py version.py Pywikibot is missing a MediaWiki markup parser which is necessary. Please update the required module with either pip install "mwparserfromhell>=0.5.0" or pip install "wikitextparser>=0.47.5" Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/mnt/nfs/labstore-secondary-tools-project/geograph/pywikibot/pywikibot/comms/http.py", line 88, in flush log('Closing network session.') File "/mnt/nfs/labstore-secondary-tools-project/geograph/pywikibot/pywikibot/logging.py", line 193, in log logoutput(text, decoder, newline, VERBOSE, **kwargs) File "/mnt/nfs/labstore-secondary-tools-project/geograph/pywikibot/pywikibot/logging.py", line 79, in logoutput _init() File "/mnt/nfs/labstore-secondary-tools-project/geograph/pywikibot/pywikibot/logging.py", line 38, in _init init_routine() File "/mnt/nfs/labstore-secondary-tools-project/geograph/pywikibot/pywikibot/tools/_deprecate.py", line 487, in wrapper return obj(*new_args, **new_kwargs) File "/mnt/nfs/labstore-secondary-tools-project/geograph/pywikibot/pywikibot/bot.py", line 398, in init_handlers if pywikibot.Site.__doc__ != 'TEST': # set by aspects.DisableSiteMixin AttributeError: module 'pywikibot' has no attribute 'Site' Two parts (probably introduced in T106763 <https://phabricator.wikimedia.org/T106763>) - If this such an important dependency, why isn't it in Toolforge? - AttributeError should be resolved TASK DETAIL https://phabricator.wikimedia.org/T291771 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Legoktm, Xqt, Aklapper, pywikibot-bugs-list, Multichill, Devnull, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Nintendofan885, Zkhalido, Viztor, Wenyi, skpuneethumar, Zylc, Bstorm, 1978Gage2001, Operator873, Bsandipan, DSquirrelGM, Chicocvenancio, Tbscho, MayS, Freddy2001, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, Luke081515, mys_721tx, Jitrixis, Gryllida, jayvdb, Masti, scfc, Alchimista, coren, Krenair ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T268645: Pywikibot crashing on ratelimit after the ratelimit removal from bot group in 2020
Multichill added a comment. In T268645#6645735 <https://phabricator.wikimedia.org/T268645#6645735>, @Xqt wrote: > Looks like it is the same as T192912 <https://phabricator.wikimedia.org/T192912> > > Due to > > if code == 'failed-save' and \ > self.action == 'wbeditentity' and \ > self._is_wikibase_error_retryable(result['error']): > self.wait() > continue > > it seems that action is not `'wbeditentity'`; any idea what it was? Either https://www.wikidata.org/w/api.php?action=help&recursivesubmodules=1#wbcreateclaim or https://www.wikidata.org/w/api.php?action=help&recursivesubmodules=1#wbsetqualifier I think. We have a whole list of possible Wikibase actions that trigger a write. If I look at self.write = self.action in {] that seems to be quite complete. Maybe in the start of the init define a list of normal write actions and a list of wbwrite actions and update both checks to use these lists? First check would use both lists and the code you pasted the wikibase list. TASK DETAIL https://phabricator.wikimedia.org/T268645 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Aklapper, pywikibot-bugs-list, Multichill, Xqt, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Akuckartz, Zkhalido, Viztor, Nandana, Wenyi, Lahi, Gq86, GoranSMilovanovic, QZanden, Tbscho, MayS, LawExplorer, Mdupont, JJMC89, Dvorapa, _jensen, rosalieper, Altostratus, Avicennasis, Scott_WUaS, mys_721tx, Wikidata-bugs, aude, jayvdb, Masti, Alchimista, Mbch331, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T268645: Pywikibot crashing on ratelimit after the ratelimit removal from bot group in 2020
Multichill created this task. Multichill added projects: Pywikibot, Wikidata. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION I noticed I got: pywikibot.data.api.APIError: failed-save: The save has failed. [help: See https://www.wikidata.org/w/api.php for API usage. 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.; messages: [{'name': 'wikibase-api-failed-save', 'html': {'*': 'The save has failed.'}, 'parameters': []}, {'name': 'actionthrottledtext', 'html': {'*': 'As an anti-abuse measure, you are limited from performing this action too many times in a short space of time, and you have exceeded this limit.\nPlease try again in a few minutes.'}, 'parameters': []}]] CRITICAL: Exiting due to uncaught exception I just assume this is because of T258354 <https://phabricator.wikimedia.org/T258354> I run the latest version Pywikibot: [ssh] pywikibot-core.git (fed71d9 <https://phabricator.wikimedia.org/rPWBCfed71d918c54905f31adc0582e2c20e6967e4c70>, g13736, 2020/11/23, 11:03:20, master) Release version: 5.2.0.dev0 I assumed that this was already handled based on T192912 <https://phabricator.wikimedia.org/T192912> and T253180 <https://phabricator.wikimedia.org/T253180> where @Xqt patched up Pywikibot to handle these cases TASK DETAIL https://phabricator.wikimedia.org/T268645 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Aklapper, pywikibot-bugs-list, Multichill, Xqt, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Akuckartz, Zkhalido, Viztor, Nandana, Wenyi, Lahi, Gq86, GoranSMilovanovic, QZanden, Tbscho, MayS, LawExplorer, Mdupont, JJMC89, Dvorapa, _jensen, rosalieper, Altostratus, Avicennasis, Scott_WUaS, mys_721tx, Wikidata-bugs, aude, jayvdb, Masti, Alchimista, Mbch331, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T192733: Remove old symlinks to trunk/rewrite/compat/pywikipedia in /shared
Multichill added a comment. In T192733#6518924 <https://phabricator.wikimedia.org/T192733#6518924>, @Xqt wrote: > In T192733#6518857 <https://phabricator.wikimedia.org/T192733#6518857>, @Multichill wrote: > >> In T192733#6516471 <https://phabricator.wikimedia.org/T192733#6516471>, @Xqt wrote: >> >>> Don't see that this is related to Pywikibot framework. >> >> pywikipedia is the old name for Pywikbot so this is related to the framework, we even have a special swimlane for this on the workboard > > Sure but it is related to toolforge. I don’t see anything what can be done on framework side: > https://codesearch.wmcloud.org/pywikibot/?q=trunk%7Crewrite%7Ccompat%20%7Cpywikipedia&i=nope&files=&repos= Nothing that's why it's in the "Wikimedia prod/Cloud Services issues" swimlane together with some other Toolforge issues. TASK DETAIL https://phabricator.wikimedia.org/T192733 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Urbanecm, matej_suchanek, valhallasw, Multichill, Xqt, zhuyifei1999, Framawiki, Aklapper, pywikibot-bugs-list, Dvorapa, GeminiAgaloos, nskaggs, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Nintendofan885, Zkhalido, Phamhi, Viztor, Wenyi, skpuneethumar, sietec, Zylc, Bstorm, 1978Gage2001, DSquirrelGM, Chicocvenancio, Allthingsgo, Tbscho, MayS, Freddy2001, Mdupont, JJMC89, Altostratus, Avicennasis, Luke081515, mys_721tx, Jitrixis, Gryllida, jayvdb, Masti, scfc, Alchimista, coren, Rxy, bd808, Krenair ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T192733: Remove old symlinks to trunk/rewrite/compat/pywikipedia in /shared
Multichill added a project: Pywikibot. Multichill added a comment. In T192733#6516471 <https://phabricator.wikimedia.org/T192733#6516471>, @Xqt wrote: > Don't see that this is related to Pywikibot framework. pywikipedia is the old name for Pywikbot so this is related to the framework, we even have a special swimlane for this on the workboard TASK DETAIL https://phabricator.wikimedia.org/T192733 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Urbanecm, matej_suchanek, valhallasw, Multichill, Xqt, zhuyifei1999, Framawiki, Aklapper, pywikibot-bugs-list, Dvorapa, GeminiAgaloos, nskaggs, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Nintendofan885, Zkhalido, Phamhi, Viztor, Wenyi, skpuneethumar, sietec, Zylc, Bstorm, 1978Gage2001, DSquirrelGM, Chicocvenancio, Allthingsgo, Tbscho, MayS, Freddy2001, Mdupont, JJMC89, Altostratus, Avicennasis, Luke081515, mys_721tx, Jitrixis, Gryllida, jayvdb, Masti, scfc, Alchimista, coren, Rxy, bd808, Krenair ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T258354: create new rate-limited bot group for Wikidata
Multichill added a comment. Ok, I see, we only put misbehaving bots in this group. TASK DETAIL https://phabricator.wikimedia.org/T258354 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: MarcoAurelio, Urbanecm, ItamarWMDE, Lucas_Werkmeister_WMDE, Hazard-SJ, pywikibot-bugs-list, Multichill, Rschen7754, Pasleim, matej_suchanek, tfmorris, Ladsgroup, Mike_Peel, Mohammed_Sadat_WMDE, Dipsacus_fullonum, Bugreporter, MisterSynergy, Lea_Lacroix_WMDE, Aklapper, Lydia_Pintscher, JohnsonLee01, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Akuckartz, Zkhalido, Hook696, Iflorez, darthmon_wmde, Kent7301, alaa_wmde, joker88john, Viztor, CucyNoiD, Nandana, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, GoranSMilovanovic, QZanden, Tbscho, MayS, LawExplorer, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, _jensen, rosalieper, Altostratus, Avicennasis, Scott_WUaS, Jonas, mys_721tx, Wikidata-bugs, aude, jayvdb, Ricordisamoa, Masti, Alchimista, Mbch331, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Raised Priority] T261050: Frequent "Invalid CSRF token" errors on Wikimedia projects using Pywikibot since August 2020
Multichill raised the priority of this task from "Medium" to "High". Multichill added a subscriber: Schlurcher. Multichill added a comment. Bumping this to high because this makes longer pywikibot bot runs crash. TASK DETAIL https://phabricator.wikimedia.org/T261050 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Schlurcher, Count_Count, JJMC89, matej_suchanek, daniel, eprodromou, Tgr, Dvorapa, Xqt, Aklapper, Reedy, pywikibot-bugs-list, Multichill, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, WDoranWMF, holger.knust, EvanProdromou, Viztor, DannyS712, Wenyi, Amorymeltzer, Tbscho, MayS, Sethakill, Mdupont, dg711, Agabi10, Altostratus, Avicennasis, Pchelolo, mys_721tx, Bawolff, jayvdb, Anomie, Masti, Alchimista, Rxy, Legoktm ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T261050: Frequent "Invalid CSRF token" errors on Wikimedia Commons using Pywikibot since August 2020
Multichill added a comment. I think this happens: - Bot fires up and gets some tokens - Bot does a lot of edits all with the same token - For some reason after a long time the token is not valid anymore - The bot continues to try to edit with the old invalid token instead of getting a new one How long is a token supposed to be valid? Forever? The Pywikibot code seems to assume that it can use the same token for all edits in a one run. One run can take days or weeks. As a work around I now force the site to get a new token when I run into a problem. That seems to be stable. So I think Pywikibot needs to be updated in the framework itself that if it runs into a token error, the a new token gets retrieved, updated in the token cache and the edit should be retried. Agree @Xqt ? Most relevant code is in https://github.com/wikimedia/pywikibot/blob/master/pywikibot/site/__init__.py btw. TASK DETAIL https://phabricator.wikimedia.org/T261050 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: matej_suchanek, daniel, Krinkle, eprodromou, Tgr, Dvorapa, Xqt, Aklapper, Reedy, pywikibot-bugs-list, Multichill, JohnsonLee01, SHEKH, Naike, Dijkstra, CBogen, Khutuck, Zkhalido, WDoranWMF, Viztor, DannyS712, Wenyi, Amorymeltzer, Ramsey-WMF, Tbscho, MayS, Sethakill, Mdupont, JJMC89, dg711, Poyekhali, Agabi10, Altostratus, Taiwania_Justo, Avicennasis, Pchelolo, Ixocactus, Wong128hk, mys_721tx, Bawolff, El_Grafo, Dinoguy1000, jayvdb, Anomie, Masti, Alchimista, Steinsplitter, Rxy, Keegan, Legoktm ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T261050: Frequent "Invalid CSRF token" errors on Wikimedia Commons using Pywikibot since August 2020
Multichill added a comment. I think I found what is going wrong. site.get_tokens(['csrf']) gets you a new token, but doesn't update the internal token state: >>> import pywikibot >>> site = pywikibot.Site(u'commons', u'commons') >>> print (site.tokens['csrf']) 1ade99bef6b895e188692438b12cbd9e5f4aacac+\ >>> site.get_tokens(['csrf']) {'csrf': '113400e3b87ae1d1d53ec4ebee9bde105f4aacb8+\\'} >>> print (site.tokens['csrf']) 1ade99bef6b895e188692438b12cbd9e5f4aacac+\ Looks like a site.tokens.load_tokens(['csrf']) does refresh the token, all quite confusing. TASK DETAIL https://phabricator.wikimedia.org/T261050 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: matej_suchanek, daniel, Krinkle, eprodromou, Tgr, Dvorapa, Xqt, Aklapper, Reedy, pywikibot-bugs-list, Multichill, JohnsonLee01, SHEKH, Naike, Dijkstra, CBogen, Khutuck, Zkhalido, WDoranWMF, Viztor, DannyS712, Wenyi, Amorymeltzer, Ramsey-WMF, Tbscho, MayS, Sethakill, Mdupont, JJMC89, dg711, Poyekhali, Agabi10, Altostratus, Taiwania_Justo, Avicennasis, Pchelolo, Ixocactus, Wong128hk, mys_721tx, Bawolff, El_Grafo, Dinoguy1000, jayvdb, Anomie, Masti, Alchimista, Steinsplitter, Rxy, Keegan, Legoktm ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T261050: Frequent "Invalid CSRF token" errors on Wikimedia Commons using Pywikibot since August 2020
Multichill added a comment. In T261050#6414369 <https://phabricator.wikimedia.org/T261050#6414369>, @Tgr wrote: > If the error is easy enough to reproduce, you could try setting the X-Wikimedia-Debug <https://wikitech.wikimedia.org/wiki/WikimediaDebug> header to get some pretty detailed logs. No, it's not, it seems to be intermittent. I added a bit more debugging code to my bot. When it hits the exception, it will print the current token, grab a new one and print the new one. The new and old tokens are the same so either the bot is not actually getting a new token or the api is returning the same one. I'll investigate a bit more. TASK DETAIL https://phabricator.wikimedia.org/T261050 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: matej_suchanek, daniel, Krinkle, eprodromou, Tgr, Dvorapa, Xqt, Aklapper, Reedy, pywikibot-bugs-list, Multichill, JohnsonLee01, SHEKH, Naike, Dijkstra, CBogen, Khutuck, Zkhalido, WDoranWMF, Viztor, DannyS712, Wenyi, Amorymeltzer, Ramsey-WMF, Tbscho, MayS, Sethakill, Mdupont, JJMC89, dg711, Poyekhali, Agabi10, Altostratus, Taiwania_Justo, Avicennasis, Pchelolo, Ixocactus, Wong128hk, mys_721tx, Bawolff, El_Grafo, Dinoguy1000, jayvdb, Anomie, Masti, Alchimista, Steinsplitter, Rxy, Keegan, Legoktm ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T261050: Frequent "Invalid CSRF token" errors on Wikimedia Commons using Pywikibot since August 2020
Multichill added a comment. In T261050#6410732 <https://phabricator.wikimedia.org/T261050#6410732>, @Tgr wrote: > What login method are you using? Classic login > In T261050#6410502 <https://phabricator.wikimedia.org/T261050#6410502>, @daniel wrote: > >> Pinging @krinkle in case it's a main stash thing. > > The main stash is not involved with CSRF tokens, it's either a SessionManager thing or a Kask thing (assuming it's on our side). I was unable to find any relevant logging in logstash. TASK DETAIL https://phabricator.wikimedia.org/T261050 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: daniel, Krinkle, eprodromou, Tgr, Dvorapa, Xqt, Aklapper, Reedy, pywikibot-bugs-list, Multichill, JohnsonLee01, SHEKH, Naike, Dijkstra, CBogen, Khutuck, Zkhalido, WDoranWMF, Viztor, DannyS712, Wenyi, Amorymeltzer, Ramsey-WMF, Tbscho, MayS, Sethakill, Mdupont, JJMC89, dg711, Poyekhali, Agabi10, Altostratus, Taiwania_Justo, Avicennasis, Pchelolo, Ixocactus, Wong128hk, mys_721tx, Bawolff, El_Grafo, Dinoguy1000, jayvdb, Anomie, Masti, Alchimista, Steinsplitter, Rxy, Keegan, Legoktm ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T261050: Frequent "Invalid CSRF token" errors on Wikimedia Commons using Pywikibot since August 2020
Multichill added a comment. @Xqt what is the correct way to force the bot to get a new token? Just site.get_tokens() or something else? I noticed some of my bots now stuck with 100s of errors in a row. TASK DETAIL https://phabricator.wikimedia.org/T261050 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Dvorapa, Xqt, Aklapper, Reedy, pywikibot-bugs-list, Multichill, JohnsonLee01, SHEKH, Dijkstra, CBogen, Khutuck, Zkhalido, WDoranWMF, holger.knust, EvanProdromou, Viztor, DannyS712, Wenyi, Amorymeltzer, Ramsey-WMF, Tbscho, MayS, Sethakill, Mdupont, JJMC89, dg711, Poyekhali, Agabi10, Altostratus, Taiwania_Justo, Avicennasis, Pchelolo, Ixocactus, Wong128hk, mys_721tx, Bawolff, El_Grafo, Dinoguy1000, jayvdb, Anomie, Masti, Alchimista, Steinsplitter, Rxy, Keegan, Legoktm ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T261050: Frequent "Invalid CSRF token" errors on Wikimedia Commons using Pywikibot since August 2020
Multichill created this task. Multichill added projects: Commons, Security, Pywikibot, MediaWiki-API. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. Restricted Application added a project: Platform Engineering. TASK DESCRIPTION Since August 2020 I often seem to be getting "Invalid CSRF token" errors in Pywikibot. At first I thought I messed something up in my own code, but I get a whole bunch of them using touch.py. I've only seen this error on Commons, but that might be because I've not run a lot of stuff on Wikidata. I'm using the latest git version from this month. I'm pretty sure I haven't seen this error before or at least not as often as now. It seems to be coming in waves (intermittent problem). It's unclear to me if this is caused by the Mediawiki-api, Pywikibot or the two of them not properly communicating. I wonder if it's visible in logstash.wikimedia.org/ if a user is hitting this error and if so, if an increase is visible. TASK DETAIL https://phabricator.wikimedia.org/T261050 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Dvorapa, Xqt, Aklapper, Reedy, pywikibot-bugs-list, Multichill, JohnsonLee01, SHEKH, Dijkstra, CBogen, Khutuck, Zkhalido, WDoranWMF, holger.knust, EvanProdromou, Viztor, DannyS712, Wenyi, Amorymeltzer, Ramsey-WMF, Tbscho, MayS, Sethakill, Mdupont, JJMC89, dg711, Poyekhali, Agabi10, Altostratus, Taiwania_Justo, Avicennasis, Pchelolo, Ixocactus, Wong128hk, mys_721tx, Bawolff, El_Grafo, Dinoguy1000, jayvdb, Anomie, Masti, Alchimista, Steinsplitter, Rxy, Keegan, Legoktm ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T258354: create new rate-limited bot group for Wikidata
Multichill added a comment. In T258354#6387030 <https://phabricator.wikimedia.org/T258354#6387030>, @Ladsgroup wrote: > In T258354#6365838 <https://phabricator.wikimedia.org/T258354#6365838>, @Multichill wrote: > >> Just add a sane (relatively high) ratelimit to the current bots group or keep it as is. The current proposed solution is to try to work around the problem. > > Well, that was exactly what we did in T184948: limit page creation and edit rate on Wikidata <https://phabricator.wikimedia.org/T184948> and you disagreed with it (T184948#4145480 <https://phabricator.wikimedia.org/T184948#4145480>) No, that's not what you did. You added a ratelimit to a group which had the "noratelimit" right assigned to it causing all sorts of breakage. TASK DETAIL https://phabricator.wikimedia.org/T258354 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Lucas_Werkmeister_WMDE, Hazard-SJ, pywikibot-bugs-list, Multichill, Rschen7754, Pasleim, matej_suchanek, tfmorris, Ladsgroup, Mike_Peel, Mohammed_Sadat_WMDE, Dipsacus_fullonum, Bugreporter, MisterSynergy, Lea_Lacroix_WMDE, Aklapper, Lydia_Pintscher, JohnsonLee01, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Akuckartz, Zkhalido, Hook696, Iflorez, darthmon_wmde, Kent7301, alaa_wmde, joker88john, Viztor, CucyNoiD, Nandana, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, GoranSMilovanovic, QZanden, Tbscho, MayS, LawExplorer, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, _jensen, rosalieper, Altostratus, Avicennasis, Scott_WUaS, Jonas, mys_721tx, Wikidata-bugs, aude, jayvdb, Ricordisamoa, Masti, Alchimista, Mbch331, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T258354: create new rate-limited bot group for Wikidata
Multichill added projects: Pywikibot-Wikidata, Pywikibot. Restricted Application added a subscriber: pywikibot-bugs-list. TASK DETAIL https://phabricator.wikimedia.org/T258354 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: pywikibot-bugs-list, Multichill, Rschen7754, Pasleim, matej_suchanek, tfmorris, Ladsgroup, Mike_Peel, Mohammed_Sadat_WMDE, Dipsacus_fullonum, Bugreporter, MisterSynergy, Lea_Lacroix_WMDE, Aklapper, Lydia_Pintscher, JohnsonLee01, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Akuckartz, Zkhalido, Hook696, Iflorez, darthmon_wmde, Kent7301, alaa_wmde, joker88john, Viztor, CucyNoiD, Nandana, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, GoranSMilovanovic, QZanden, Tbscho, MayS, LawExplorer, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, _jensen, rosalieper, Altostratus, Avicennasis, Scott_WUaS, Jonas, mys_721tx, Wikidata-bugs, aude, jayvdb, Ricordisamoa, Masti, Alchimista, Mbch331, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T259100: test_content_format paraminfo_tests fail at test-wiki
Multichill added subscribers: daniel, Legoktm. Multichill added a comment. Isn't this something new being rolled out? Would expect, beta, test, group1/2/3. So on https://test.wikipedia.org/w/api.php?action=help&modules=edit I currently see: contentformat Content serialization format used for the input text. One of the following values: application/json, application/octet-stream, application/unknown, application/x-binary, text/css, text/javascript, text/plain, text/unknown, text/x-wiki, unknown/unknown And on https://en.wikipedia.org/w/api.php?action=help&modules=edit I see contentformat Content serialization format used for the input text. One of the following values: application/json, text/css, text/javascript, text/plain, text/x-wiki On ar and zh wikipedia I see the same as English Wikipedia. Looks like the wiki's running MediaWiki 1.36.0-wmf.1 don't have it and it got introduced in MediaWiki 1.36.0-wmf.2 , see https://www.mediawiki.org/wiki/MediaWiki_1.36/wmf.2#Core_changes Looking for contentformat I found https://gerrit.wikimedia.org/r/c/mediawiki/extensions/JsonConfig/+/561439 ? @Legoktm seems to be working on this as part of T176526 <https://phabricator.wikimedia.org/T176526> . Not sure if this is related https://gerrit.wikimedia.org/r/c/mediawiki/core/+/614592 by @daniel looks more promising. TASK DETAIL https://phabricator.wikimedia.org/T259100 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Legoktm, daniel, Dvorapa, matej_suchanek, Multichill, Huji, Aklapper, Xqt, pywikibot-bugs-list, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Closed] T252292: Make depicts class to instance bot for structured data on Commons
Multichill closed this task as "Resolved". Multichill added a comment. Also discussed at https://commons.wikimedia.org/wiki/Commons_talk:Depicts#Replacing_a_class_with_a_specific_instance . Cleaned up the code. Done for now. TASK DETAIL https://phabricator.wikimedia.org/T252292 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Xqt, Aklapper, pywikibot-bugs-list, Multichill, Kroger4, JohnsonLee01, Dijkstra, CBogen, Zkhalido, Demian, Viztor, JKSTNK, Wenyi, Jinoytommanjaly, Tbscho, MayS, Mdupont, JJMC89, StuartPrior, Dvorapa, Altostratus, Avicennasis, Volker_E, SBisson, mys_721tx, Jane023, Xelgen, jayvdb, Lydia_Pintscher, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T252292: Make depicts class to instance bot for structured data on Commons
Multichill added a comment. Works, see https://commons.wikimedia.org/w/index.php?title=File:Delfzijl,_Nederlands_Hervormde_Kerk_1422.jpg&diff=prev&oldid=418156340 and code at https://github.com/multichill/toollabs/blob/master/bot/commons/depicts_instance.py TASK DETAIL https://phabricator.wikimedia.org/T252292 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Xqt, Aklapper, pywikibot-bugs-list, Multichill, Kroger4, JohnsonLee01, Dijkstra, CBogen, Zkhalido, Demian, Viztor, JKSTNK, Wenyi, Jinoytommanjaly, Tbscho, MayS, Mdupont, JJMC89, StuartPrior, Dvorapa, Altostratus, Avicennasis, Volker_E, SBisson, mys_721tx, Jane023, Xelgen, jayvdb, Lydia_Pintscher, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T252292: Make depicts class to instance bot for structured data on Commons
Multichill created this task. Multichill added projects: Wikimedia-Hackathon-2020, Pywikibot, StructuredDataOnCommons. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION For quite a few images on Commons we have depicts -> church building, see https://commons.wikimedia.org/w/index.php?sort=relevance&search=haswbstatement%3AP180%3DQ16970+nearcoord%3A200km%2C52.38105%2C4.63657 for some examples. In this context "church building" is a class that we would like to replace it with the instance of the specific church. This can be done fully automatic based on the category the file is in. From the category we can find the relevant Wikidata item on which we can check if it's an instance of church building. If that's the case, we can replace the statement ( https://commons.wikimedia.org/w/api.php?action=help&modules=wbsetclaimvalue ). TASK DETAIL https://phabricator.wikimedia.org/T252292 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Aklapper, pywikibot-bugs-list, Multichill, JohnsonLee01, Dijkstra, CBogen, Zkhalido, Demian, Viztor, JKSTNK, Wenyi, Jinoytommanjaly, Tbscho, MayS, Mdupont, JJMC89, StuartPrior, Dvorapa, Altostratus, Avicennasis, Volker_E, SBisson, mys_721tx, Jane023, Xelgen, jayvdb, Lydia_Pintscher, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T252290: Update Pywikibot to the most recent version
Multichill added a project: Wikimedia-Hackathon-2020. TASK DETAIL https://phabricator.wikimedia.org/T252290 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Chicocvenancio, Xqt, pywikibot-bugs-list, Abbe98, JohnsonLee01, Dijkstra, Zkhalido, Demian, AshokChakra, Viztor, 94rain, DannyS712, Wenyi, Jinoytommanjaly, R96340, Allthingsgo, Tbscho, MayS, Framawiki, Mdupont, JJMC89, StuartPrior, Dvorapa, Altostratus, Avicennasis, Volker_E, SBisson, mys_721tx, Jane023, Xelgen, yuvipanda, Capt_Swing, jayvdb, zhuyifei1999, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T252290: Update Pywikibot to the most recent version
Multichill added a subscriber: Xqt. Multichill added a project: Pywikibot. Restricted Application added a subscriber: pywikibot-bugs-list. TASK DETAIL https://phabricator.wikimedia.org/T252290 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Xqt, pywikibot-bugs-list, Abbe98, JohnsonLee01, Dijkstra, Zkhalido, AshokChakra, Viztor, 94rain, DannyS712, Wenyi, R96340, Chicocvenancio, Allthingsgo, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Jane023, yuvipanda, Capt_Swing, jayvdb, zhuyifei1999, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T249427: Using imagefile.touch() with pwb.py will throw pywikibot.i18n.TranslationError
Multichill created this task. Multichill added projects: Pywikibot, Pywikibot-i18n, Regression. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION I use pwb.py as wrapper to run scripts. If I do an imagefile.touch() . Since recently this throws a : File "/home/me/pywikibot/pywikibot/page/__init__.py", line 1459, in touch summary = i18n.twtranslate(self.site, 'pywikibot-touch') File "/home/me/pywikibot/pywikibot/tools/__init__.py", line 1790, in wrapper return obj(*__args, **__kw) File "/home/me/pywikibot/pywikibot/i18n.py", line 721, in twtranslate % (_messages_package_name, twtitle, __url__)) pywikibot.i18n.TranslationError: Unable to load messages package scripts.i18n for bundle pywikibot-touch It can happen due to lack of i18n submodule or files. See https://www.mediawiki.org/wiki/Manual:Pywikibot/i18n CRITICAL: Exiting due to uncaught exception This used to work until quite recently. Just python directly is no problem >>> import pywikibot >>> site = pywikibot.Site('commons', 'commons') >>> imagefile = pywikibot.FilePage(site, title='File:Jan_Steen_-_The_Drawing_Lesson_-_83.PB.388_-_J._Paul_Getty_Museum.jpg') >>> imagefile.touch() Page [[commons:File:Jan Steen - The Drawing Lesson - 83.PB.388 - J. Paul Getty Museum.jpg]] saved >>> If I throw these 4 lines in a file and run it: $ python3 pwb.py ~/temp/touch_i18n.problem.py I get the exception. Using the latest git version of pywikibot and the i18n part: Pywikibot: [ssh] pywikibot-core.git (0a544a2 <https://phabricator.wikimedia.org/rPWBC0a544a2f3acbbf755ca81fd84acba7d7907b7179>, g12235, 2020/04/04, 15:23:52, ok) Probably recenlty the logic of pwb.py got altered a bit? TASK DETAIL https://phabricator.wikimedia.org/T249427 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Aklapper, pywikibot-bugs-list, Dvorapa, Xqt, Multichill, Zkhalido, Viztor, Wenyi, Jayprakash12345, Tbscho, MayS, Mdupont, JJMC89, Altostratus, Avicennasis, Wong128hk, mys_721tx, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T112140: Provide a wrapper function in pywikibot around wbparsevalue
Multichill added a comment. I might pick this up if nobody else beats me to it (go ahead). I actually have been using this a lot in my bots and it works quite well. TASK DETAIL https://phabricator.wikimedia.org/T112140 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: gerritbot, Louperivois, PokestarFan, Lokal_Profil, Tobias1984, ArthurPSmith, Aklapper, pywikibot-bugs-list, Multichill, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Ricordisamoa, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T242157: Provide some Pywikibot usage statistics for Python2.7 and Python3.x
Multichill added a comment. In T242157#5789026 <https://phabricator.wikimedia.org/T242157#5789026>, @Urbanecm wrote: > Bot usernames are (mostly) connected with exactly one operator. As said in previous comment, I'm happy to contact the bot owners on your behalf, I'm also happy to give them your contact info if you want me to do so, so they can contact you directly with question. That would be totally okay. I'm not going to release the data unless approved by Legal. I can contact them, but approval can take weeks to months :-). Coming back to this. See T240369 <https://phabricator.wikimedia.org/T240369> . That seems to be a good way to follow up on this. Maybe create tasks like that for the top bots still running Python2? That way we can help these operators to do the move. TASK DETAIL https://phabricator.wikimedia.org/T242157 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Urbanecm, Multichill Cc: Lokal_Profil, Dvorapa, Urbanecm, Xqt, Aklapper, pywikibot-bugs-list, Multichill, Zkhalido, 4748kitoko, CptViraj, Dibya, Viztor, 94rain, DannyS712, Wenyi, Akovalyov, Guilhermebm, Jayprakash12345, Tbscho, MayS, Zoranzoki21, Mdupont, JJMC89, DatGuy, Devwaker, Niklitov, Altostratus, Avicennasis, JEumerus, Ananthsubray, Tulsi_Bhagat, Wong128hk, Luke081515, JAllemandou, SimmeD, mys_721tx, terrrydactyl, Snowolf, Dcljr, jayvdb, Dalba, Masti, Alchimista, Jdforrester-WMF, Matanya, Rxy, Jay8g, Krenair, jeremyb ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T242157: Provide some Pywikibot usage statistics for Python2.7 and Python3.x
Multichill added a comment. @Urbanecm thanks for looking into this. Appreciated. Not sure if bot usernames are a privacy issue, I think not because these are role accounts. I recall in the past we had a list of top bots using an old version so we could contact the operator. Maybe double check with the legal privacy guru's? TASK DETAIL https://phabricator.wikimedia.org/T242157 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Urbanecm, Multichill Cc: Dvorapa, Urbanecm, Xqt, Aklapper, pywikibot-bugs-list, Multichill, Zkhalido, 4748kitoko, Dibya, Viztor, 94rain, DannyS712, Wenyi, Akovalyov, Guilhermebm, Jayprakash12345, Tbscho, MayS, Zoranzoki21, Mdupont, JJMC89, DatGuy, Devwaker, Niklitov, Altostratus, Avicennasis, JEumerus, Ananthsubray, Tulsi_Bhagat, Wong128hk, Luke081515, JAllemandou, SimmeD, mys_721tx, terrrydactyl, Snowolf, Dcljr, jayvdb, Dalba, Masti, Alchimista, Jdforrester-WMF, Matanya, Rxy, Jay8g, Krenair, jeremyb ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T213287: Drop support of python 2.7
Multichill added a subtask: T242157: Provide some Pywikibot usage statistics for Python2.7 and Python3.x. TASK DETAIL https://phabricator.wikimedia.org/T213287 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Framawiki, Legoktm, Ricordisamoa, Multichill, zhuyifei1999, Dalba, Eatcha, KTC, Lokal_Profil, Dvorapa, Aklapper, pywikibot-bugs-list, Xqt, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T242157: Provide some Pywikibot usage statistics for Python2.7 and Python3.x
Multichill added a parent task: T213287: Drop support of python 2.7. TASK DETAIL https://phabricator.wikimedia.org/T242157 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Aklapper, pywikibot-bugs-list, Multichill, Zkhalido, 4748kitoko, Viztor, Wenyi, Akovalyov, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, JAllemandou, mys_721tx, terrrydactyl, jayvdb, Dalba, Masti, Alchimista, Rxy, jeremyb ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T242157: Provide some Pywikibot usage statistics for Python2.7 and Python3.x
Multichill created this task. Multichill added projects: Pywikibot, Analytics. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Some people are extremely eager to get rid of python 2.7, but we have no clue what the impact will be on our user base. Fortunately Pywikibot provides user agent data. Please gather some statistics to get an idea of Python2.x usage vs Python3.x usage so we can get an idea about the impact. Possible things to gather: - Number of unique users per version - Number of edits per version - Top bots still using Python 2.x - We had similar tasks in the switch from pywikibot-compat -> core, maybe some re-use possibilities. TASK DETAIL https://phabricator.wikimedia.org/T242157 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Aklapper, pywikibot-bugs-list, Multichill, Zkhalido, 4748kitoko, Viztor, Wenyi, Akovalyov, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, JAllemandou, mys_721tx, terrrydactyl, jayvdb, Dalba, Masti, Alchimista, Rxy, jeremyb ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T233479: Check/Update Pywikibot for Reporting of edit failures due to AbuseFilter and SpamBlacklist
Multichill created this task. Multichill added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Another one to check. I recall we had issues with this. Original email: When saving an edit is prevented by the AbuseFilter or SpamBlacklist extensions, the error is currently reported as a successful API response with a 'failure' code in the body.[1][2] In the future, these will be reported as standard API errors.[3][4] This change should be deployed to Wikimedia wikis with 1.34.0-wmf.23. See https://www.mediawiki.org/wiki/MediaWiki_1.34/Roadmap for a schedule. Clients that do not need to specially handle failures due to AbuseFilter or SpamBlacklist will likely need no changes, as they probably already include code to generically handle API error responses. Clients that do handle AbuseFilter or SpamBlacklist failures specially will need to be updated to check for error codes 'abusefilter-warning', 'abusefilter-disallowed', and/or 'spamblacklist' and handle them as they do the current AbuseFilter and SpamBlacklist failures, if they want to preserve their current special handling. Note that edit failures due to CAPTCHAs from ConfirmEdit are not being changed at this time. They will continue to be reported as before.[5] [1]: AbuseFilter: https://phabricator.wikimedia.org/P8988 [2]: SpamBlacklist: https://phabricator.wikimedia.org/P8990 [3]: AbuseFilter: https://phabricator.wikimedia.org/P8989 [4]: SpamBlacklist: https://phabricator.wikimedia.org/P8991 [5]: ConfirmEdit: https://phabricator.wikimedia.org/P9076 - Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation TASK DETAIL https://phabricator.wikimedia.org/T233479 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Anomie, Aklapper, pywikibot-bugs-list, Multichill, Viztor, DannyS712, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T233477: Check/Update Pywikibot for blockexpiry timestamps from list=users and list=allusers
Multichill created this task. Multichill added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Brad send this email. Not sure what phab task contains the details. Might affect Pywikibot. Maybe we can rip out some work around code? The format of block expiry timestamps returned from list=users and list=allusers has long been inconsistent. It was being returned in an internal format (e.g. "20190918201053"), rather than the ISO 8601 format used by the rest of the API (e.g. "2019-09-18T20:10:53Z"). The 'blockexpiry' property from these two modules will be changing to the standard ISO 8601 format with 1.34.0-wmf.24. See https://www.mediawiki.org/wiki/MediaWiki_1.34/Roadmap for a schedule of deployment to Wikimedia wikis. This change also brings the block information returned by list=users and list=allusers fully in line with that already used for meta=userinfo and 'blocked' errors from various actions. - Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation TASK DETAIL https://phabricator.wikimedia.org/T233477 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Aklapper, pywikibot-bugs-list, Anomie, Multichill, Viztor, DannyS712, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T230196: Implement filearchive in Pywikibot Site
Multichill added a comment. Some example code (currently commented out but probably enabled soon): https://github.com/multichill/toollabs/blob/master/bot/commons/wikidata_uploader.py#L229 TASK DETAIL https://phabricator.wikimedia.org/T230196 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Xqt, Aklapper, pywikibot-bugs-list, Multichill, Viztor, DannyS712, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T230196: Implement filearchive in Pywikibot Site
Multichill added a comment. T60993 <https://phabricator.wikimedia.org/T60993> got implemented, probably now this is possible. TASK DETAIL https://phabricator.wikimedia.org/T230196 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Aklapper, pywikibot-bugs-list, Multichill, Viztor, DannyS712, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T230196: Implement filearchive in Pywikibot Site
Multichill added a subtask: T60993: Make limited information from filearchive available to everyone. TASK DETAIL https://phabricator.wikimedia.org/T230196 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Aklapper, pywikibot-bugs-list, Multichill, Viztor, DannyS712, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Declined] T229859: Pywikibot meetup Wikimania hackathon 2019
Multichill closed this task as "Declined". Multichill added a comment. Didn't happen AFAIK. Maybe next time. TASK DETAIL https://phabricator.wikimedia.org/T229859 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: RonnieV, Dvorapa, Xqt, Aklapper, pywikibot-bugs-list, Lokal_Profil, JeanFred, Multichill, Ferenczy, Viztor, DannyS712, Wenyi, SandraF_WMF, Tbscho, MayS, Mdupont, JJMC89, Altostratus, Avicennasis, Omar_sansi, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T229859: Pywikibot meetup Wikimania hackathon 2019
Multichill added a comment. Still possible, but not sure how many people are actually interested in this. TASK DETAIL https://phabricator.wikimedia.org/T229859 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: RonnieV, Dvorapa, Xqt, Aklapper, pywikibot-bugs-list, Lokal_Profil, JeanFred, Multichill, Ferenczy, Viztor, DannyS712, Wenyi, SandraF_WMF, Tbscho, MayS, Mdupont, JJMC89, Altostratus, Avicennasis, Omar_sansi, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Triaged] T230196: Implement filearchive in Pywikibot Site
Multichill triaged this task as "Low" priority. Multichill added a comment. When I hit the api I'm logged into my own (sysop) account so I get something back. Bot account can't see deleted stuff so doesn't work. Looking at https://commons.wikimedia.org/wiki/Special:ListGroupRights the rights are either see everything deleted or see nothing. A more fine grained right would be needed to be able to search by sha1, but not see the actual file content and maybe intentionally hidden metadata. Sounds complicated, dropping this one to low. TASK DETAIL https://phabricator.wikimedia.org/T230196 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Aklapper, pywikibot-bugs-list, Multichill, Viztor, DannyS712, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Edited] T230196: Implement filearchive in Pywikibot Site
Multichill updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T230196 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Aklapper, pywikibot-bugs-list, Multichill, Viztor, DannyS712, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T230196: Implement filearchive in Pywikibot Site
Multichill created this task. Multichill added projects: Pywikibot, Pywikibot-Commons. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION The very old task T23345 <https://phabricator.wikimedia.org/T23345> got implemented. We can now search the filearchive in the api by hash, see https://commons.wikimedia.org/w/api.php?action=query&list=filearchive&faprop=sha1&fasha1=c0f895d6a4973ef711d9749fb9b83ce65ac0c53f . That means we can finally add the site function to access this in pywikibot. Function in API is described at https://www.mediawiki.org/wiki/API:Filearchive and https://commons.wikimedia.org/w/api.php?action=help&recursivesubmodules=1#query+filearchive . Implementation could be done the same way as the allimages, see https://github.com/wikimedia/pywikibot/blob/master/pywikibot/site.py#L4434 TASK DETAIL https://phabricator.wikimedia.org/T230196 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Aklapper, pywikibot-bugs-list, Multichill, Viztor, DannyS712, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T229859: Pywikibot meetup Wikimania hackathon 2019
Multichill created this task. Multichill added projects: Wikimania-Hackathon-2019, Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Would be nice to have a meet up of Pyikibot developers at the Wikimania hackathon 2019 like we had on the hackathon in Prague (see T221801 <https://phabricator.wikimedia.org/T221801>). TASK DETAIL https://phabricator.wikimedia.org/T229859 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Aklapper, pywikibot-bugs-list, Lokal_Profil, JeanFred, Multichill, Ferenczy, Viztor, DannyS712, Wenyi, SandraF_WMF, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Retitled] T221801: Pywikibot meetup wikimedia hackathon 2019 (usage and/or development workshop, issues and future discussion, other stuff to talk about)
Multichill renamed this task from "Pywikibot meetup (usage and/or development workshop, issues and future discussion, other stuff to talk about)" to "Pywikibot meetup wikimedia hackathon 2019 (usage and/or development workshop, issues and future discussion, other stuff to talk about)". TASK DETAIL https://phabricator.wikimedia.org/T221801 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa, Multichill Cc: Tobias1984, Urbanecm, Andrawaag, Geertivp, Frettie, Jayprakash12345, valhallasw, Ladsgroup, Chicocvenancio, Multichill, zhuyifei1999, Xqt, Aklapper, pywikibot-bugs-list, Dvorapa, darthmon_wmde, Ferenczy, sarhan.alaa, Samuditha24, IM3847, Viztor, DannyS712, Wenyi, kostajh, MichaelSchoenitzer_WMDE, Tbscho, MayS, Mdupont, JJMC89, Jogi_don, D3r1ck01, Altostratus, Avicennasis, mys_721tx, Jdlrobson, jayvdb, Dalba, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T223820: Properly implement structured data access on Commons in Pywikibot
Multichill added a comment. Maybe make this one an epic or tracker task so we can group things under it? - Revision to -> multi content revision - FilePage -> Mediainfo enabled filepage - Site -> federated mediainfo enabled site etc. TASK DETAIL https://phabricator.wikimedia.org/T223820 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: matej_suchanek, Fuzheado, Lokal_Profil, Dvorapa, Aklapper, pywikibot-bugs-list, Multichill, Viztor, DannyS712, JKSTNK, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Poyekhali, Altostratus, Taiwania_Justo, Avicennasis, Wong128hk, mys_721tx, El_Grafo, Dinoguy1000, jayvdb, Ricordisamoa, Lydia_Pintscher, Masti, Alchimista, Steinsplitter, Rxy, Keegan ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T213287: Drop support of python 2.7
Multichill added a comment. Do we have a clear overview of the advantages and disadvantages of dropping 2.7 support? The EOL part is really unimportant to me in this case. It's not like we have a support contract. We have to fix stuff ourselves anyway. I think we can sum it up as: - Keeping 2.7 support means more work for the developers of Pywikibot - Dropping 2.7 support means more work and breakage for the developers who use Pywikibot as a library This is like core/compat all over again. We need to balance these groups. Phabricator is mostly populated by developers from the first group. Please take it slow to not alienate the second group. The second group generally builds on top of the core part of Pywikibot. As long as we keep that somewhat functioning, these users will be happy. Scripts on the other hand, you could probably go full Python3 on some point in time. TASK DETAIL https://phabricator.wikimedia.org/T213287 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Multichill, zhuyifei1999, Dalba, Eatcha, KTC, Lokal_Profil, Dvorapa, Aklapper, pywikibot-bugs-list, Xqt, Viztor, DannyS712, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T226507: Port pywikibot-core to new pywikibot IV repository (tracking)
Multichill added a comment. In T226507#5284014 <https://phabricator.wikimedia.org/T226507#5284014>, @valhallasw wrote: > In T226507#5283832 <https://phabricator.wikimedia.org/T226507#5283832>, @Dvorapa wrote: > > > @valhallasw We are trying to break as little as possible. So if anyone's cron automatically updates git and it still runs under py2 (per my experience and per our //Wikimedia Hackathon meetup// a dominant group of users), this would break their cron scripts. That's why we are trying to freeze the current master (I like the idea of final v3 release anyway) and start a new branch from it. > > > Ok, if this has been discussed in depth during that meetup and this option was discussed then there's no reason to go back on the choices made. I was at that meeting, we didn't. I complete agree with valhallasw. Bad plan, waste of effort, don't do it. TASK DETAIL https://phabricator.wikimedia.org/T226507 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: matej_suchanek, Frettie, Geertivp, Tobias1984, Chicocvenancio, Ladsgroup, Aklapper, pywikibot-bugs-list, zhuyifei1999, hashar, D3r1ck01, Lokal_Profil, Framawiki, valhallasw, Multichill, Mpaa, Dvorapa, Dalba, Xqt, Viztor, DannyS712, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Closed] T223796: Add some first statements to files on Commons using Pywikibot
Multichill closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T223796 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Chicocvenancio, Aklapper, pywikibot-bugs-list, SandraF_WMF, Multichill, darthmon_wmde, Ferenczy, sarhan.alaa, Samuditha24, IM3847, Viztor, DannyS712, JKSTNK, Wenyi, kostajh, Jayprakash12345, MichaelSchoenitzer_WMDE, Tbscho, MayS, Mdupont, JJMC89, Jogi_don, Dvorapa, Poyekhali, D3r1ck01, Avicennasis, Wong128hk, mys_721tx, Jdlrobson, El_Grafo, Dinoguy1000, jayvdb, Lydia_Pintscher, Masti, Alchimista, Steinsplitter, Rxy, Keegan ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Closed] T223746: Import POTD descriptions on Commons to captions
Multichill closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T223746 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: schoenbaechler, Fuzheado, SandraF_WMF, Aklapper, pywikibot-bugs-list, Multichill, darthmon_wmde, Ferenczy, sarhan.alaa, Samuditha24, IM3847, Viztor, DannyS712, JKSTNK, Wenyi, kostajh, Jayprakash12345, Chicocvenancio, MichaelSchoenitzer_WMDE, Tbscho, MayS, Mdupont, JJMC89, Jogi_don, Dvorapa, Poyekhali, D3r1ck01, Avicennasis, Wong128hk, mys_721tx, Jdlrobson, El_Grafo, Dinoguy1000, jayvdb, Lydia_Pintscher, Masti, Alchimista, Steinsplitter, Rxy, Keegan ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T221801: Pywikibot meetup (usage and/or development workshop, issues and future discussion, other stuff to talk about)
Multichill added a comment. @Dvorapa : Etherpads are far from permanent. When you're done, you should put the contents in this ticket, see for example T216260 <https://phabricator.wikimedia.org/T216260> TASK DETAIL https://phabricator.wikimedia.org/T221801 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Tobias1984, Urbanecm, Andrawaag, Geertivp, Frettie, Jayprakash12345, valhallasw, Ladsgroup, Chicocvenancio, Multichill, zhuyifei1999, Xqt, Aklapper, pywikibot-bugs-list, Dvorapa, darthmon_wmde, Ferenczy, sarhan.alaa, Samuditha24, IM3847, Viztor, DannyS712, Wenyi, kostajh, MichaelSchoenitzer_WMDE, Tbscho, MayS, Mdupont, JJMC89, Jogi_don, D3r1ck01, Avicennasis, mys_721tx, Jdlrobson, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Edited] T223826: Create archive procedure for scripts
Multichill updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T223826 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: JJMC89, Xqt, Aklapper, pywikibot-bugs-list, Multichill, Dvorapa, Viztor, DannyS712, Wenyi, Tbscho, MayS, Framawiki, Mdupont, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Edited] T223826: Create archive procedure for scripts
Multichill updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T223826 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: JJMC89, Xqt, Aklapper, pywikibot-bugs-list, Multichill, Dvorapa, Viztor, DannyS712, Wenyi, Tbscho, MayS, Framawiki, Mdupont, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T223820: Properly implement structured data access on Commons in Pywikibot
Multichill created this task. Multichill added projects: Pywikibot-Commons, Pywikibot-Wikidata, Pywikibot, StructuredDataOnCommons, Commons. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION In T223746 <https://phabricator.wikimedia.org/T223746> and T223796 <https://phabricator.wikimedia.org/T223796> I build some proof of concepts to edit the structured data on Commons. These proof of concepts are hacks bypassing the site object. We should properly implement it so we can start building scripts on top of it. Wikidata uses the Wikibase extension. The Wikibase extension is providing the api functions starting with "wb". The same extension is now also installed on Commons. So all the same api functions are available, see for example https://commons.wikimedia.org/w/api.php?action=wbgetentities&format=json&ids=M7902 . Instead of Q123, M is used (media info). The integer is actually the pageid. Commons is a federated Wikibase instance which uses the properties and entities from Wikidata, see for example https://commons.wikimedia.org/w/index.php?title=File:Christoph_Unterberger_-_Der_heilige_Johannes_von_Nepomuk_empf%C3%A4ngt_von_Maria_den_Sternenkranz_-_2173_-_%C3%96sterreichische_Galerie_Belvedere.jpg&diff=prev&oldid=351075792 . The media info objects get created on the fly when a user does an edit. I guess we have to implement a new site class which implements two parts (so maybe two classes): - Federation: We're using the remote P and Q's - Media info: We have local structured data with the M id's, which are tied to files TASK DETAIL https://phabricator.wikimedia.org/T223820 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Aklapper, pywikibot-bugs-list, Multichill, Viztor, DannyS712, JKSTNK, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Poyekhali, Avicennasis, Wong128hk, mys_721tx, El_Grafo, Dinoguy1000, jayvdb, Ricordisamoa, Dalba, Lydia_Pintscher, Masti, Alchimista, Steinsplitter, Rxy, Keegan ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T223746: Import POTD descriptions on Commons to captions
Multichill added a comment. https://commons.wikimedia.org/w/api.php?action=wbgetentities&format=json&ids=M7902 TASK DETAIL https://phabricator.wikimedia.org/T223746 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: SandraF_WMF, Aklapper, pywikibot-bugs-list, Multichill, darthmon_wmde, Ferenczy, sarhan.alaa, Samuditha24, IM3847, Viztor, DannyS712, JKSTNK, Wenyi, kostajh, Jayprakash12345, Chicocvenancio, MichaelSchoenitzer_WMDE, Tbscho, MayS, Mdupont, JJMC89, Jogi_don, Dvorapa, Poyekhali, D3r1ck01, Avicennasis, Wong128hk, mys_721tx, Jdlrobson, El_Grafo, Dinoguy1000, jayvdb, Dalba, Lydia_Pintscher, Masti, Alchimista, Steinsplitter, Rxy, Keegan ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T223796: Add some first statements to files on Commons using Pywikibot
Multichill added a comment. Also did one for another property, https://github.com/multichill/toollabs/blob/master/bot/commons/digital_representation_paintings.py https://commons.wikimedia.org/w/index.php?title=File:Christoph_Unterberger_-_Der_heilige_Johannes_von_Nepomuk_empf%C3%A4ngt_von_Maria_den_Sternenkranz_-_2173_-_%C3%96sterreichische_Galerie_Belvedere.jpg&diff=prev&oldid=351075792 TASK DETAIL https://phabricator.wikimedia.org/T223796 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Chicocvenancio, Aklapper, pywikibot-bugs-list, SandraF_WMF, Multichill, darthmon_wmde, Ferenczy, sarhan.alaa, Samuditha24, IM3847, Viztor, DannyS712, JKSTNK, Wenyi, kostajh, Jayprakash12345, MichaelSchoenitzer_WMDE, Tbscho, MayS, Mdupont, JJMC89, Jogi_don, Dvorapa, Poyekhali, D3r1ck01, Avicennasis, Wong128hk, mys_721tx, Jdlrobson, El_Grafo, Dinoguy1000, jayvdb, Dalba, Lydia_Pintscher, Masti, Alchimista, Steinsplitter, Rxy, Keegan ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T223796: Add some first statements to files on Commons using Pywikibot
Multichill added a comment. https://commons.wikimedia.org/w/index.php?title=File:European_Common_Frog_Rana_temporaria.jpg&diff=prev&oldid=351072054 https://github.com/multichill/toollabs/blob/master/bot/commons/depicts_species.py TASK DETAIL https://phabricator.wikimedia.org/T223796 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Chicocvenancio, Aklapper, pywikibot-bugs-list, SandraF_WMF, Multichill, darthmon_wmde, Ferenczy, sarhan.alaa, Samuditha24, IM3847, Viztor, DannyS712, JKSTNK, Wenyi, kostajh, Jayprakash12345, MichaelSchoenitzer_WMDE, Tbscho, MayS, Mdupont, JJMC89, Jogi_don, Dvorapa, Poyekhali, D3r1ck01, Avicennasis, Wong128hk, mys_721tx, Jdlrobson, El_Grafo, Dinoguy1000, jayvdb, Dalba, Lydia_Pintscher, Masti, Alchimista, Steinsplitter, Rxy, Keegan ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T223746: Import POTD descriptions on Commons to captions
Multichill added a comment. https://github.com/multichill/toollabs/blob/master/bot/commons/potd_to_caption.py TASK DETAIL https://phabricator.wikimedia.org/T223746 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: SandraF_WMF, Aklapper, pywikibot-bugs-list, Multichill, darthmon_wmde, Ferenczy, sarhan.alaa, Samuditha24, IM3847, Viztor, DannyS712, JKSTNK, Wenyi, kostajh, Jayprakash12345, Chicocvenancio, MichaelSchoenitzer_WMDE, Tbscho, MayS, Mdupont, JJMC89, Jogi_don, Dvorapa, Poyekhali, D3r1ck01, Avicennasis, Wong128hk, mys_721tx, Jdlrobson, El_Grafo, Dinoguy1000, jayvdb, Dalba, Lydia_Pintscher, Masti, Alchimista, Steinsplitter, Rxy, Keegan ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T223796: Add some first statements to files on Commons using Pywikibot
Multichill created this task. Multichill added projects: Commons, StructuredDataOnCommons, Pywikibot, Wikimedia-Hackathon-2019. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Make a proof of concept for importing statements using a bot. TASK DETAIL https://phabricator.wikimedia.org/T223796 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Aklapper, pywikibot-bugs-list, SandraF_WMF, Multichill, darthmon_wmde, Ferenczy, sarhan.alaa, Samuditha24, IM3847, Viztor, DannyS712, JKSTNK, Wenyi, kostajh, Jayprakash12345, Chicocvenancio, MichaelSchoenitzer_WMDE, Tbscho, MayS, Mdupont, JJMC89, Jogi_don, Dvorapa, Poyekhali, D3r1ck01, Avicennasis, Wong128hk, mys_721tx, Jdlrobson, El_Grafo, Dinoguy1000, jayvdb, Dalba, Lydia_Pintscher, Masti, Alchimista, Steinsplitter, Rxy, Keegan ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T223746: Import POTD descriptions on Commons to captions
Multichill created this task. Multichill added projects: Commons, StructuredDataOnCommons, Pywikibot, Wikimedia-Hackathon-2019. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION We have over 5500 POTD's over the years, see https://commons.wikimedia.org/wiki/Category:Potd_filename_templates . All of these have multiple translations. Let's import these to Commons captions. TASK DETAIL https://phabricator.wikimedia.org/T223746 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Aklapper, pywikibot-bugs-list, Multichill, darthmon_wmde, Ferenczy, sarhan.alaa, Samuditha24, IM3847, Viztor, DannyS712, JKSTNK, Wenyi, kostajh, Jayprakash12345, Chicocvenancio, MichaelSchoenitzer_WMDE, Tbscho, MayS, Mdupont, JJMC89, Jogi_don, Dvorapa, Poyekhali, D3r1ck01, Avicennasis, Wong128hk, mys_721tx, Jdlrobson, El_Grafo, Dinoguy1000, jayvdb, Dalba, Lydia_Pintscher, Masti, Alchimista, Steinsplitter, Rxy, Keegan ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T223746: Import POTD descriptions on Commons to captions
Multichill added a comment. Got first very rough version working, see https://commons.wikimedia.org/w/index.php?title=File%3AVanGogh-Irises_3.jpg&type=revision&diff=351005775&oldid=188104223 TASK DETAIL https://phabricator.wikimedia.org/T223746 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Aklapper, pywikibot-bugs-list, Multichill, darthmon_wmde, Ferenczy, sarhan.alaa, Samuditha24, IM3847, Viztor, DannyS712, JKSTNK, Wenyi, kostajh, Jayprakash12345, Chicocvenancio, MichaelSchoenitzer_WMDE, Tbscho, MayS, Mdupont, JJMC89, Jogi_don, Dvorapa, Poyekhali, D3r1ck01, Avicennasis, Wong128hk, mys_721tx, Jdlrobson, El_Grafo, Dinoguy1000, jayvdb, Dalba, Lydia_Pintscher, Masti, Alchimista, Steinsplitter, Rxy, Keegan ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Changed Subscribers] T221801: Pywikibot usage and/or development workshop
Multichill added subscribers: Ladsgroup, valhallasw. Multichill added a comment. I will be at the Prague hackathon and I'm quite sure @Ladsgroup too. Not sure if @valhallasw is coming this year. At minimum we should do a meet up with people interested in Pywikibot. TASK DETAIL https://phabricator.wikimedia.org/T221801 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: valhallasw, Ladsgroup, Chicocvenancio, Multichill, zhuyifei1999, Xqt, Aklapper, pywikibot-bugs-list, Dvorapa, Ferenczy, sarhan.alaa, Samuditha24, IM3847, Viztor, DannyS712, Wenyi, kostajh, Jayprakash12345, Tbscho, MayS, Mdupont, JJMC89, Jogi_don, D3r1ck01, Avicennasis, Samwilson, SBisson, mys_721tx, Jdlrobson, jayvdb, Dalba, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T112156: WbQuantity should require an explicit error margin
Multichill added a comment. Why was this task re-opened? What is the goal? Please update the task to make it clear what needs to be done or just close it again as invalid. TASK DETAIL https://phabricator.wikimedia.org/T112156 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Lydia_Pintscher, Lokal_Profil, jayvdb, Ladsgroup, Multichill, Aklapper, pywikibot-bugs-list, daniel, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, Ricordisamoa, Dalba, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T219891: Check Pywikibot for new Wikibase empty container format
Multichill created this task. Multichill added projects: Pywikibot-Wikidata, Wikidata, Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION The output format in the Wikibase api will change for empty containers, see T138104 <https://phabricator.wikimedia.org/T138104> . Used to be [] and it's going to be {}. Check if Pywikibot doesn't horribly choke and burn because of this. New item: https://www.wikidata.org/wiki/Special:EntityData/Q24075199.json . On the live site you can find empty items on https://www.wikidata.org/wiki/Special:ShortPages . TASK DETAIL https://phabricator.wikimedia.org/T219891 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Aklapper, pywikibot-bugs-list, Ladsgroup, Multichill, alaa_wmde, Nandana, Wenyi, Lahi, Gq86, GoranSMilovanovic, QZanden, Tbscho, MayS, LawExplorer, Mdupont, JJMC89, _jensen, rosalieper, Avicennasis, mys_721tx, Wikidata-bugs, aude, jayvdb, Ricordisamoa, Dalba, Masti, Alchimista, Mbch331, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T210606: retry-after value retrieved from http header looks wrong
Multichill added a comment. I wonder if @Anomie has any input on this.TASK DETAILhttps://phabricator.wikimedia.org/T210606EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MultichillCc: gerritbot, Aklapper, pywikibot-bugs-list, Anomie, Multichill, valhallasw, Xqt, CucyNoiD, NebulousIris, Wenyi, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Baloch007, Darkminds3113, Bsandipan, Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T210657: Handle different Action API uncaught exception error codes in Pywikibot
Multichill created this task.Multichill added a project: Pywikibot.Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONIn https://lists.wikimedia.org/pipermail/mediawiki-api-announce/2018-November/000143.html @Anomie announced a change in the way the error codes will be handled. We need to update Pywikibot to handle that. Current function is at https://github.com/wikimedia/pywikibot/blob/master/pywikibot/data/api.py#L2072 Full email for reference: Currently the codes for uncaught exceptions include the class name, for example "internal_api_error_ReadOnlyError", or "internal_api_error_DBQueryError", or possibly something like "internal_api_error_MediaWiki\Namespace\FooBarException". As you can see in that last example, that can get rather ugly and complicates recent attempts to verify that all error codes use a restricted character set. Thus, we are deprecating these error codes. In the future all such errors will use the code "internal_api_error". The date for that change has not yet been set. If a client for some reason needs to see the class of the uncaught exception, this is available in a new 'errorclass' data property in the API error. This will be returned beginning in 1.33.0-wmf.8 or later, see https://www.mediawiki.org/wiki/MediaWiki_1.33/Roadmap for a schedule. Note that database errors will report the actual class, such as "MediaWiki\rdbms\DBQueryError", rather than the old unprefixed name that had been being maintained for backwards compatibility. Clients relying on specific internal error codes or detecting internal errors by looking for a "internal_api_error_" prefix should be updated to recognize "internal_api_error" and to use 'errorclass' in preference to using any class name that might be present in the error code. In JSON format with errorformat=bc, an internal error might look something like this: { "error": { "code": "internal_api_error_InvalidArgumentException", "info": "[61e9f71eedbe401f17d41dd2] Exception caught: Testing", "errorclass": "InvalidArgumentException", "trace": "InvalidArgumentException at ..." }, "servedby": "hostname" } With modern errorformats, it might look like this: { "errors": [ { "code": "internal_api_error_InvalidArgumentException", "text": "[61e9f71eedbe401f17d41dd2] Exception caught: Testing", "data": { "errorclass": "InvalidArgumentException" } } ], "trace": "InvalidArgumentException at ...", "servedby": "hostname" }TASK DETAILhttps://phabricator.wikimedia.org/T210657EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MultichillCc: Aklapper, pywikibot-bugs-list, Multichill, Anomie, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T151351: Fresh clone of pywikibot from gerrit fails with error: RPC failed; result=56, HTTP code = 200 on Toollabs (NFS)
Multichill added a comment. In T151351#4735577, @Paladox wrote: I don't think so? Closing as declined as it seems to have resolved it's self (no progress in a year and a bit) You used the wrong closing code. Declined is for requests that we're not going to implement. In this case it seems to have resolved itself.TASK DETAILhttps://phabricator.wikimedia.org/T151351EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MultichillCc: Dvorapa, demon, Multichill, AlexMonk-WMF, Stashbot, chasemp, Paladox, Aklapper, pywikibot-bugs-list, Wenyi, AndyTan, A.S.Kochergin, Zylc, 1978Gage2001, Chicocvenancio, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, srodlund, Luke081515, mys_721tx, Gryllida, jayvdb, Dalba, Masti, scfc, Alchimista, Rxy, Jay8g, Krenair, hashar, QChris, greg___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Changed Status] T151351: Fresh clone of pywikibot from gerrit fails with error: RPC failed; result=56, HTTP code = 200 on Toollabs (NFS)
Multichill changed the task status from "Declined" to "Resolved".Multichill removed a project: Toolforge. TASK DETAILhttps://phabricator.wikimedia.org/T151351EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MultichillCc: Dvorapa, demon, Multichill, AlexMonk-WMF, Stashbot, chasemp, Paladox, Aklapper, pywikibot-bugs-list, Wenyi, AndyTan, A.S.Kochergin, Zylc, 1978Gage2001, Chicocvenancio, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, srodlund, Luke081515, mys_721tx, Gryllida, jayvdb, Dalba, Masti, scfc, Alchimista, Rxy, Jay8g, Krenair, hashar, QChris, greg, aborrero, Freddy2001, coren___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T208292: imagecopy fails for a given sample
Multichill added a comment. In T208292#4705393, @Xqt wrote: Hm, this script never worked. Do we need it ;) It worked, but someone broke it. Tons of things have changed in the library part, but I don't think impact on the scripts that are using it is noticed enough.TASK DETAILhttps://phabricator.wikimedia.org/T208292EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MultichillCc: gerritbot, Aklapper, pywikibot-bugs-list, Multichill, Xqt, CucyNoiD, NebulousIris, Wenyi, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Baloch007, Darkminds3113, Bsandipan, Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T207582: templatesWithParams() doesn't seem to get all templates in Hebrew
Multichill created this task.Multichill added a project: Pywikibot.Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONI'm using templatesWithParams() in Pywikibot to extract some data from https://he.wikipedia.org/wiki/%D7%95%D7%99%D7%A7%D7%99%D7%A4%D7%93%D7%99%D7%94:%D7%9E%D7%99%D7%96%D7%9E%D7%99_%D7%95%D7%99%D7%A7%D7%99%D7%A4%D7%93%D7%99%D7%94/Wiki_Loves_Monuments/%D7%99%D7%A6%D7%99%D7%A8%D7%95%D7%AA_%D7%90%D7%9E%D7%A0%D7%95%D7%AA_%D7%91%D7%9E%D7%A8%D7%97%D7%91_%D7%94%D7%A6%D7%99%D7%91%D7%95%D7%A8%D7%99 I noticed I only got a fraction. So I wrote this simple script to try: import pywikibot site = pywikibot.Site('he', 'wikipedia') page = pywikibot.Page(site, u'ויקיפדיה:מיזמי_ויקיפדיה/Wiki_Loves_Monuments/יצירות_אמנות_במרחב_הציבורי') templates = page.templatesWithParams() for (template, params) in templates: print (template) This only outputs: ... [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל כותרת]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:ש]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:אתר מורשת בישראל תחתית]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:-]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] [[he:תבנית:יצירת אמנות במרחב הציבורי בישראל בשורה]] >>> So a small fraction of what I would expect to get. I don't understand any Hebrew (it's gibberish to me) so it might be me doing something wrong. It's also possible that the wikitext on that page isn't completely sane, making the code trip. Could of course also be a bug. I tagged some Hebrew speakers on this task. Can you help rule out the first two options? The monuments database is using the same feature and looking at https://commons.wikimedia.org/wiki/Commons:Monuments_database/Statistics it picks up plenty of Hebrew. Tried it in both python2 as python3 : $ python pwb.py version Pywikibot: [https] r-pywikibot-core.git (a351efc, g10348, 2018/10/20, 20:28:15, ok) Release version: 3.1.dev0 requests version: 2.2.1 cacerts: /etc/ssl/certs/ca-certificates.crt certificate test: ok Python: 2.7.6 (default, Nov 23 2017, 15:49:48) $ python3 pwb.py version Pywikibot: [https] r-pywikibot-core.git (a351efc, g10348, 2018/10/20, 20:28:15, ok) Release version: 3.1.dev0 requests version: 2.2.1 cacerts: /etc/ssl/certs/ca-certificates.crt certificate test: ok Python: 3.4.3 (default, Nov 28 2017, 16:41:13)TASK DETAILhttps://phabricator.wikimedia.org/T207582EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MultichillCc: Aklapper, pywikibot-bugs-list, Ynhockey, Ijon, Multichill, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T205155: unconnected_pages generator doesn't seem to return all pages
Multichill added a comment. If all the generators listed on https://www.mediawiki.org/wiki/API:Querypage follow the same logic in Pywikibot as the unconnected pages one, than probably all of them have the same issue. Maybe make a new subclass QueryPageGenerator that wraps around https://www.mediawiki.org/wiki/API:Querypage ?TASK DETAILhttps://phabricator.wikimedia.org/T205155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MultichillCc: JAnD, Dalba, pywikibot-bugs-list, Pywikibot-Wikidata, Aklapper, Multichill, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Ricordisamoa, Masti, Alchimista, Rxy___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Triaged] T203471: Drop support for Python 2.7.6 and lower
Multichill triaged this task as "Lowest" priority. TASK DETAILhttps://phabricator.wikimedia.org/T203471EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MultichillCc: JeanFred, Xqt, Dalba, pywikibot-bugs-list, Aklapper, MarcoAurelio, gerritbot, Multichill, Superzerocool, He7d3r, Dvorapa, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T203471: Drop support for Python 2.7.6 and lower
Multichill added a comment. I checked several systems and both run 2.7.6. . This task is way too soon. Come back in a couple of years. You're going way too fast on this dropping campaign.TASK DETAILhttps://phabricator.wikimedia.org/T203471EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MultichillCc: JeanFred, Xqt, Dalba, pywikibot-bugs-list, Aklapper, MarcoAurelio, gerritbot, Multichill, Superzerocool, He7d3r, Dvorapa, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T60973: Implement globalusage in site
Multichill added a comment. https://gerrit.wikimedia.org/r/#/c/pywikibot/core/+/371659/6/pywikibot/site.py sure looks like it. Good to see it implemented!TASK DETAILhttps://phabricator.wikimedia.org/T60973EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MultichillCc: Framawiki, pywikibot-bugs-list, Multichill, Ladsgroup, zhuyifei1999, Kieubinhtb, Asad_Ali_Palijo, Lahi, Soteriaspace, RazeSoldier, Jayprakash12345, JakeTheDeveloper, Tbscho, MayS, Zoranzoki21, Mdupont, JJMC89, TerraCodes, D3r1ck01, Avicennasis, MuhammadShuaib, SimmeD, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Edited] T192912: Unexpected ratelimit makes Pywikibot crash
Multichill updated the task description. (Show Details) CHANGES TO TASK DESCRIPTIONDue to the hack done in T184948 Pywikibot now crashesd with this nice errorSame hack also broke massmessage, see T192690. The hack was removed so the chance of someone running into this is much lower. Pywikibot should be updated so that a throttle error is a recoverable error. So the usual logic should kick in: Wait a bit, try again.TASK DETAILhttps://phabricator.wikimedia.org/T192912EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MultichillCc: Framawiki, Xqt, Aklapper, MisterSynergy, Edgars2007, pywikibot-bugs-list, Legoktm, Ladsgroup, Lydia_Pintscher, Multichill, Lahi, Gq86, GoranSMilovanovic, QZanden, Tbscho, MayS, LawExplorer, Mdupont, JJMC89, Avicennasis, mys_721tx, Wikidata-bugs, aude, jayvdb, Ricordisamoa, Dalba, Masti, Alchimista, Mbch331, Rxy___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Lowered Priority] T192912: Unexpected ratelimit makes Pywikibot crash
Multichill lowered the priority of this task from "High" to "Low".Multichill added a comment. In T192912#4551136, @Framawiki wrote: @Multichill is the error still given ? I've read somewhere that this hacky limitation was removed from wd.org Yes and no. The ratelimit was removed again I think so we won't run into it. I changed the prio from high to low. Pywikibot should be updated that if the bot for whatever reason runs into a ratelimit error, it should be handled as a recoverable error. I'll update the task @Xqt flagged bots on Wikidata usually edit a bit faster than one edits every six seconds, most of my bots are one edit every two seconds.TASK DETAILhttps://phabricator.wikimedia.org/T192912EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MultichillCc: Framawiki, Xqt, Aklapper, MisterSynergy, Edgars2007, pywikibot-bugs-list, Legoktm, Ladsgroup, Lydia_Pintscher, Multichill, Lahi, Gq86, GoranSMilovanovic, QZanden, Tbscho, MayS, LawExplorer, Mdupont, JJMC89, Avicennasis, mys_721tx, Wikidata-bugs, aude, jayvdb, Ricordisamoa, Dalba, Masti, Alchimista, Mbch331, Rxy___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T194950: Include Wikibase dispatch lag in API "maxlag" enforcing
Multichill added a comment. In T194950#4420642, @Addshore wrote: There are still some bots and tools that are not setting appropriate maxlag values for their requests but we can follow up elsewhere with that. Please list them on https://www.wikidata.org/wiki/Wikidata:Administrators%27_noticeboard and the accounts will be blocked.TASK DETAILhttps://phabricator.wikimedia.org/T194950EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Ladsgroup, MultichillCc: Stashbot, Aklapper, gerritbot, pywikibot-bugs-list, ValterVB, Lea_Lacroix_WMDE, Legoktm, Addshore, MisterSynergy, Magnus, Anomie, Sjoerddebruin, Lydia_Pintscher, Multichill, hoo, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, lisong, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, LawExplorer, Lewizho99, Maathavan, Jonas, Wikidata-bugs, aude, Ricordisamoa, Mbch331___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T198849: Argument processing chokes on python 2 when an argument contains non-ascii
Multichill added a comment. Looks like @Dalba introduced it in https://gerrit.wikimedia.org/r/#/c/pywikibot/core/+/440096/TASK DETAILhttps://phabricator.wikimedia.org/T198849EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: zhuyifei1999, MultichillCc: gerritbot, Dalba, zhuyifei1999, Aklapper, Multichill, pywikibot-bugs-list, .avgas, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Baloch007, Darkminds3113, Bsandipan, Lordiis, Adik2382, Jrbranaa, Th3d3v1ls, Ramalepe, Liugev6, Magul, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Avicennasis, Wong128hk, mys_721tx, jayvdb, Masti, Alchimista, Rxy___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T198839: Update Pywikibot class WikidataBot to include Wikimedia import URL (P4656)
Multichill created this task.Multichill added projects: Pywikibot-core, Pywikibot-Wikidata, Wikidata.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONTo improve the traceability of data imported from Wikimedia projects Wikimedia import URL (https://www.wikidata.org/wiki/Property:P4656) was introduced. We should update the WikidataBot at https://phabricator.wikimedia.org/diffusion/PWBC/browse/master/pywikibot/bot.py$2027 to also accept a page as source. Other scripts like https://phabricator.wikimedia.org/diffusion/PWBC/browse/master/scripts/harvest_template.py$306 are currently passing a site object. Modify the WikidataBot bot that: If site object gets passed, just add the imported from (same as now) If a page object gets passed, extract the site (check if it's a valid site) and permalink to latest revision. Add both Related conversation on Wikidata at https://www.wikidata.org/wiki/Property_talk:P143#Making_the_usage_of_this_property_clearerTASK DETAILhttps://phabricator.wikimedia.org/T198839EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MultichillCc: Aklapper, pywikibot-bugs-list, Multichill, Andrewjhill, Lahi, Gq86, GoranSMilovanovic, Magul, QZanden, Tbscho, MayS, LawExplorer, Mdupont, JJMC89, Avicennasis, mys_721tx, Wikidata-bugs, aude, jayvdb, Ricordisamoa, Dalba, Masti, Alchimista, Mbch331, Rxy___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T194950: Include Wikibase dispatch lag in API "maxlag" enforcing
Multichill added a project: Pywikibot-Wikidata.Herald added a subscriber: pywikibot-bugs-list. TASK DETAILhttps://phabricator.wikimedia.org/T194950EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Ladsgroup, MultichillCc: pywikibot-bugs-list, ValterVB, Lea_Lacroix_WMDE, Legoktm, Addshore, gerritbot, MisterSynergy, Magnus, Aklapper, daniel, Anomie, Sjoerddebruin, Lydia_Pintscher, Multichill, hoo, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, lisong, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, LawExplorer, Lewizho99, Maathavan, Jonas, Wikidata-bugs, aude, Ricordisamoa, Mbch331___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs