[Pywikipedia-bugs] [Maniphest] [Updated] T192912: Unexpected ratelimit makes Pywikibot crash

2020-05-19 Thread Maintenance_bot
Maintenance_bot removed a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T192912 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Maintenance_bot Cc: Liuxinyu970226, Framawiki, Xqt, Aklapper, MisterSynergy, Edgars2007,

[Pywikipedia-bugs] [Maniphest] [Triaged] T253180: touch.py does not throttle for rate limits correctly

2020-05-19 Thread Xqt
Xqt triaged this task as "Medium" priority. TASK DETAIL https://phabricator.wikimedia.org/T253180 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, Aklapper, pywikibot-bugs-list, Dominicbm, JohnsonLee01, Dijkstra, Zkhalido, Viztor, Wenyi,

[Pywikipedia-bugs] [Maniphest] [Updated] T253180: touch.py does not throttle for rate limits correctly

2020-05-19 Thread Xqt
Xqt added a comment. See also T192912 TASK DETAIL https://phabricator.wikimedia.org/T253180 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, Aklapper, pywikibot-bugs-list, Dominicbm,

[Pywikipedia-bugs] [Maniphest] [Created] T253180: touch.py does not throttle for rate limits correctly

2020-05-19 Thread Dominicbm
Dominicbm created this task. Dominicbm added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Using touch.py with my non-bot (non-admin, just autopatroller) account on Wikimedia Commons, I quickly started getting the following

[Pywikipedia-bugs] [Maniphest] [Updated] T253127: several scripts fails with RuntimeError('dictionary changed size during iteration')

2020-05-19 Thread Xqt
Xqt removed a project: Patch-For-Review. Xqt changed the subtype of this task from "Task" to "Bug Report". TASK DETAIL https://phabricator.wikimedia.org/T253127 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Dvorapa, Aklapper,

[Pywikipedia-bugs] [Maniphest] [Closed] T253127: several scripts fails with RuntimeError('dictionary changed size during iteration')

2020-05-19 Thread Xqt
Xqt closed this task as "Resolved". Xqt added a comment. Thanks for review TASK DETAIL https://phabricator.wikimedia.org/T253127 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Dvorapa, Aklapper, pywikibot-bugs-list, D3r1ck01, Xqt,

[Pywikipedia-bugs] [Maniphest] [Lowered Priority] T253127: several scripts fails with RuntimeError('dictionary changed size during iteration')

2020-05-19 Thread D3r1ck01
D3r1ck01 lowered the priority of this task from "High" to "Low". D3r1ck01 added a comment. I'll leave this for @Xqt to close but I do confirm that the solution does fixes the problem. Thank you! TASK DETAIL https://phabricator.wikimedia.org/T253127 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Commented On] T253127: several scripts fails with RuntimeError('dictionary changed size during iteration')

2020-05-19 Thread gerritbot
gerritbot added a comment. Change 597313 **merged** by jenkins-bot: [pywikibot/core@master] [bugfix] Do not change usernames when creating a Site https://gerrit.wikimedia.org/r/597313 TASK DETAIL https://phabricator.wikimedia.org/T253127 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Commented On] T253127: several scripts fails with RuntimeError('dictionary changed size during iteration')

2020-05-19 Thread D3r1ck01
D3r1ck01 added a comment. In T253127#6149098 , @Xqt wrote: > The Problem is in line `1246 `inside `pywikibot.__init__.py`: > > `code_to_user = config.usernames['*'].copy()` > > usernames is a defaultdict. If '*' key is not in

[Pywikipedia-bugs] [Maniphest] [Commented On] T253127: several scripts fails with RuntimeError('dictionary changed size during iteration')

2020-05-19 Thread gerritbot
gerritbot added a comment. Change 597313 had a related patch set uploaded (by Xqt; owner: Xqt): [pywikibot/core@master] [bugfix] Do not change usernames when creating a Site https://gerrit.wikimedia.org/r/597313 TASK DETAIL https://phabricator.wikimedia.org/T253127 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Updated] T253127: several scripts fails with RuntimeError('dictionary changed size during iteration')

2020-05-19 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T253127 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, gerritbot Cc: Dvorapa, Aklapper, pywikibot-bugs-list, D3r1ck01, Xqt, JohnsonLee01, Blissjay007,

[Pywikipedia-bugs] [Maniphest] [Claimed] T253127: several scripts fails with RuntimeError('dictionary changed size during iteration')

2020-05-19 Thread Xqt
Xqt claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T253127 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Dvorapa, Aklapper, pywikibot-bugs-list, D3r1ck01, Xqt, JohnsonLee01, Dijkstra, Zkhalido, Viztor, Wenyi, Tbscho,

[Pywikipedia-bugs] [Maniphest] [Commented On] T253127: several scripts fails with RuntimeError('dictionary changed size during iteration')

2020-05-19 Thread Xqt
Xqt added a comment. The Problem is in line `1246 `inside `pywikibot.__init__.py`: `code_to_user = config.usernames['*'].copy()` usernames is a defaultdict. If '*' key is not in that dict this statement creates it and changes the usernames before the copy will be done. TASK

[Pywikipedia-bugs] [Maniphest] [Commented On] T253127: several scripts fails with RuntimeError('dictionary changed size during iteration')

2020-05-19 Thread Xqt
Xqt added a comment. This has to do with instantiating a Site: >>> import pwb, pywikibot >>> from pywikibot.config2 import usernames >>> for fam in usernames: for lang in usernames[fam]: pywikibot.Site(lang, fam)

[Pywikipedia-bugs] [Maniphest] [Edited] T253127: several scripts fails with RuntimeError('dictionary changed size during iteration')

2020-05-19 Thread Xqt
Xqt updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T253127 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Dvorapa, Aklapper, pywikibot-bugs-list, D3r1ck01, Xqt, JohnsonLee01, Dijkstra, Zkhalido, Viztor, Wenyi,

[Pywikipedia-bugs] [Maniphest] [Retitled] T253127: several scripts fails with RuntimeError('dictionary changed size during iteration')

2020-05-19 Thread Xqt
Xqt renamed this task from "login -all fails with RuntimeError('dictionary changed size during iteration')" to "several scripts fails with RuntimeError('dictionary changed size during iteration')". Xqt updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T253127 EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T253127: login -all fails with RuntimeError('dictionary changed size during iteration')

2020-05-19 Thread D3r1ck01
D3r1ck01 added a comment. Exactly! This also happens. Cloning keys with `list()` will solve the issue for both PY2 and PY3. TASK DETAIL https://phabricator.wikimedia.org/T253127 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: D3r1ck01 Cc:

[Pywikipedia-bugs] [Maniphest] [Triaged] T253127: login -all fails with RuntimeError('dictionary changed size during iteration')

2020-05-19 Thread Xqt
Xqt triaged this task as "High" priority. TASK DETAIL https://phabricator.wikimedia.org/T253127 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, pywikibot-bugs-list, D3r1ck01, Xqt, JohnsonLee01, Dijkstra, Zkhalido, Viztor, Wenyi,

[Pywikipedia-bugs] [Maniphest] [Created] T253127: login -all fails with RuntimeError('dictionary changed size during iteration')

2020-05-19 Thread Xqt
Xqt created this task. Xqt added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION C:\pwb\GIT\core>py -3 pwb.py login -all WARNING: No user is logged in on site commons:commons Password for user Xqbot on commons:commons (no

[Pywikipedia-bugs] [Maniphest] [Changed Status] T154313: Add support for importing labels of existing claims in harvest_template.py

2020-05-19 Thread Aklapper
Aklapper changed the task status from "Stalled" to "Open". Aklapper added a subscriber: matej_suchanek. Aklapper added a comment. @matej_suchanek: The previous comments don't explain what/who exactly this task is stalled on ("If a report is waiting for further input (e.g. from its reporter

[Pywikipedia-bugs] [Maniphest] [Closed] T253115: wikimedia_sites.py wrongly gives "awa" as a new site

2020-05-19 Thread Xqt
Xqt closed this task as "Resolved". Xqt added a project: Upstream. Xqt claimed this task. Xqt added a comment. @Dzahn: thanks. TASK DETAIL https://phabricator.wikimedia.org/T253115 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt,

[Pywikipedia-bugs] [Maniphest] [Commented On] T253115: wikimedia_sites.py wrongly gives "awa" as a new site

2020-05-19 Thread Dzahn
Dzahn added a comment. @Xqt I have deleted "awa" from the wikistats db again. I will reopen the task to re-add it once it has actually been created. TASK DETAIL https://phabricator.wikimedia.org/T253115 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/

[Pywikipedia-bugs] [Maniphest] [Commented On] T253115: wikimedia_sites.py wrongly gives "awa" as a new site

2020-05-19 Thread Dzahn
Dzahn added a comment. I think the best solution is probably that i don't add sites before they are created and simply delete it for now. TASK DETAIL https://phabricator.wikimedia.org/T253115 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dzahn

[Pywikipedia-bugs] [Maniphest] [Changed Status] T57654: Recursive clone over ssh uses https for submodules

2020-05-19 Thread Aklapper
Aklapper changed the task status from "Stalled" to "Open". Aklapper added a comment. Nothing stalled in this task as questoin has been answered, hence setting status to open TASK DETAIL https://phabricator.wikimedia.org/T57654 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Triaged] T253115: wikimedia_sites.py wrongly gives "awa" as a new site

2020-05-19 Thread Xqt
Xqt triaged this task as "Low" priority. TASK DETAIL https://phabricator.wikimedia.org/T253115 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, Aklapper, pywikibot-bugs-list, Dzahn, JohnsonLee01, Dijkstra, Zkhalido, Viztor,

[Pywikipedia-bugs] [Maniphest] [Created] T253115: wikimedia_sites.py wrongly gives "awa" as a new site

2020-05-19 Thread Xqt
Xqt created this task. Xqt added projects: Pywikibot-Scripts, VPS-project-Wikistats. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. Restricted Application added a project: Pywikibot. TASK DESCRIPTION WikiStats as an

[Pywikipedia-bugs] [Maniphest] [Reassigned] T253097: wikistats_tests fails

2020-05-19 Thread Xqt
Xqt reassigned this task from Xqt to Dzahn. TASK DETAIL https://phabricator.wikimedia.org/T253097 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dzahn, Xqt Cc: Dzahn, Aklapper, pywikibot-bugs-list, Xqt, JohnsonLee01, Dijkstra, Zkhalido, Viztor,

[Pywikipedia-bugs] [Maniphest] [Closed] T253097: wikistats_tests fails

2020-05-19 Thread Xqt
Xqt closed this task as "Resolved". Xqt edited projects, added Upstream; removed Patch-For-Review. Xqt added a comment. Solved upstream TASK DETAIL https://phabricator.wikimedia.org/T253097 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc:

[Pywikipedia-bugs] [Maniphest] [Commented On] T253097: wikistats_tests fails

2020-05-19 Thread Xqt
Xqt added a comment. @Dzahn: The tests works again. Thanks for this quick patch. TASK DETAIL https://phabricator.wikimedia.org/T253097 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Dzahn, Aklapper, pywikibot-bugs-list, Xqt,

[Pywikipedia-bugs] [Maniphest] [Updated] T253097: wikistats_tests fails

2020-05-19 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T253097 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, gerritbot Cc: Dzahn, Aklapper, pywikibot-bugs-list, Xqt, JohnsonLee01, Blissjay007, Dijkstra,

[Pywikipedia-bugs] [Maniphest] [Commented On] T253097: wikistats_tests fails

2020-05-19 Thread gerritbot
gerritbot added a comment. Change 597226 had a related patch set uploaded (by Xqt; owner: Xqt): [pywikibot/core@master] [bugfix] Assume 0 for empty table contents https://gerrit.wikimedia.org/r/597226 TASK DETAIL https://phabricator.wikimedia.org/T253097 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Commented On] T253097: wikistats_tests fails

2020-05-19 Thread Dzahn
Dzahn added a comment. I did the latter and set total= and good= to 0 in the db. Did that fix it, @Xqt? TASK DETAIL https://phabricator.wikimedia.org/T253097 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Dzahn Cc: Dzahn, Aklapper,

[Pywikipedia-bugs] [Maniphest] [Updated] T253097: wikistats_tests fails

2020-05-19 Thread Dzahn
Dzahn added a comment. I did not even know "wikistats_tests" is a thing. Though i can guess the reason for this is that the first time i added a wiki to the stats table before it was actually created. See T252869#6140154 and the

[Pywikipedia-bugs] [Maniphest] [Commented On] T253097: wikistats_tests fails

2020-05-19 Thread Dzahn
Dzahn added a comment. I could also just set "total" to 0 manually for now so that it has a number. TASK DETAIL https://phabricator.wikimedia.org/T253097 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Dzahn Cc: Dzahn, Aklapper,

[Pywikipedia-bugs] [Maniphest] [Claimed] T253097: wikistats_tests fails

2020-05-19 Thread Xqt
Xqt claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T253097 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Dzahn, Aklapper, pywikibot-bugs-list, Xqt, JohnsonLee01, Dijkstra, Zkhalido, Viztor, Legado_Shulgin, 94rain, Wenyi,

[Pywikipedia-bugs] [Maniphest] [Updated] T253097: wikistats_tests fails

2020-05-19 Thread Xqt
Xqt added a project: VPS-project-Wikistats. TASK DETAIL https://phabricator.wikimedia.org/T253097 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Dzahn, Aklapper, pywikibot-bugs-list, Xqt, JohnsonLee01, Dijkstra, Zkhalido, Viztor,

[Pywikipedia-bugs] [Maniphest] [Commented On] T253097: wikistats_tests fails

2020-05-19 Thread Xqt
Xqt added a comment. The reason of that failure is the follwing wikipedia table entry: {'activeusers': '', 'admins': '', 'edits': '', 'good': '', 'http': '302', 'id': '332', 'images': '', 'lang': 'Awadhi', 'loclang': '', 'loclanglink': '',

[Pywikipedia-bugs] [Maniphest] [Created] T253097: wikistats_tests fails

2020-05-19 Thread Xqt
Xqt created this task. Xqt added a project: Pywikibot-tests. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. Restricted Application added a project: Pywikibot. TASK DESCRIPTION since few days C:\>cd pwb/git/core C:\pwb\GIT\core>py -3 pwb.py

[Pywikipedia-bugs] [Maniphest] [Triaged] T253097: wikistats_tests fails

2020-05-19 Thread Xqt
Xqt triaged this task as "High" priority. TASK DETAIL https://phabricator.wikimedia.org/T253097 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, pywikibot-bugs-list, Xqt, JohnsonLee01, Dijkstra, Zkhalido, Viztor, Wenyi, Tbscho,