[Pywikipedia-bugs] [Maniphest] [Commented On] T134640: site_tests.py fails for TestUserContribsWithoutUser with TimeoutError
Dalba added a comment. @Magul Well, I think it would be better if we increased the timeouts as low as necessary. Especially that in multi-threaded environments these timeouts make the application completely unresponsive. When there is actually a problem with the connection somewhere an early timeout could be a bless. Users could actually depend on these timeouts, trying to catch and skip them or just using the built-in retry mechanism. Increasing the timeouts could greatly increase the overall retry times. An early timeout when there is actually no more hope can be a blessing... On the other hand I'm not sure that increasing the timeout will resolve the problem here. I tried to reproduce the issue (many times) and only a few of my attempts where successful. All of which ended up with a 503 error instead of finishing the request: WARNING: Http response status 503 WARNING: Non-JSON response received from server wikipedia:en; the server may be down. Set uclimit = ['2'] WARNING: Waiting 5 seconds before retrying. WARNING: Http response status 503 WARNING: Non-JSON response received from server wikipedia:en; the server may be down. Set uclimit = ['1'] 246.508s Error Traceback (most recent call last): File "G:\programming\python\wiki\pywikibot-core\pywikibot\data\api.py", line 1987, in submit result = json.loads(rawdata) File "C:\Users\a\AppData\Local\Programs\Python\Python35\lib\json\__init__.py", line 319, in loads return _default_decoder.decode(s) File "C:\Users\a\AppData\Local\Programs\Python\Python35\lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\a\AppData\Local\Programs\Python\Python35\lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "G:\programming\python\wiki\pywikibot-core\tests\site_tests.py", line 1493, in test_user_prefix_range total=5): File "G:\programming\python\wiki\pywikibot-core\pywikibot\data\api.py", line 2753, in __iter__ self.data = self.request.submit() File "G:\programming\python\wiki\pywikibot-core\pywikibot\data\api.py", line 2005, in submit self.wait() File "G:\programming\python\wiki\pywikibot-core\pywikibot\data\api.py", line 2197, in wait raise TimeoutError("Maximum retries attempted without success.") pywikibot.data.api.TimeoutError: Maximum retries attempted without success. WARNING: Http response status 503 WARNING: Non-JSON response received from server wikipedia:en; the server may be down. Set uclimit = ['2'] WARNING: Waiting 5 seconds before retrying. 190.370s Process finished with exit code 0 (It seems that some caching mechanism is involved and you can only get these errors in the first attempt, then you'll have to wait a while, otherwise all subsequent retries will end up passing without error.) tests: max_retries reduced from 25 to 1 WARNING: Http response status 503 WARNING: Non-JSON response received from server wikipedia:en; the server may be down. Set uclimit = ['2'] WARNING: Waiting 5 seconds before retrying. WARNING: Http response status 503 WARNING: Non-JSON response received from server wikipedia:en; the server may be down. Set uclimit = ['1'] 250.990s Error Traceback (most recent call last): File "G:\programming\python\wiki\pywikibot-core\pywikibot\data\api.py", line 1987, in submit result = json.loads(rawdata) File "C:\Users\a\AppData\Local\Programs\Python\Python35\lib\json\__init__.py", line 319, in loads return _default_decoder.decode(s) File "C:\Users\a\AppData\Local\Programs\Python\Python35\lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\a\AppData\Local\Programs\Python\Python35\lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "G:\programming\python\wiki\pywikibot-core\tests\site_tests.py", line 1516, in test_user_prefix_reverse reverse=True, total=5): File "G:\programming\python\wiki\pywikibot-core\pywikibot\data\api.py", line 2753, in __iter__ self.data = self.request.submit() File "G:\programming\python\wiki\pywikibot-core\pywikibot\data\api.py", line 2005, in submit self.wait() File "G:\programming\python\wiki\pywikibot-core\pywikibot\data\api.py", line 2197, in wait raise TimeoutError("Maximum retries attempted without success.") pywikibot.data.api.TimeoutError: Maximum retries attempted without success. Process finished with exit code 0 (The timeout was set to 300 seconds in both cases)TASK DETAILhttps://phabricator.wikimedia.org/T134640EMAIL
[Pywikipedia-bugs] [Maniphest] [Changed Project Column] T148121: [CGI template easy task] Find and fix syntax errors in translated messages
Aklapper moved this task from Proposed tasks to Imported in GCI Site on the Google-Code-In-2016 board.Aklapper added a comment. Imported as https://codein.withgoogle.com/tasks/5695759668215808/TASK DETAILhttps://phabricator.wikimedia.org/T148121WORKBOARDhttps://phabricator.wikimedia.org/project/board/2304/EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: AklapperCc: Xqt, pywikibot-bugs-list, Psychoslave, Nikerabbit, Nemo_bis, jayvdb, Aklapper, Taquo, catalandres, D3r1ck01, MuhammadShuaib, Gryllida, Josve05a, Shizhao, Arrbee, KartikMistry, Jay8g___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Unassigned] T132158: Page title too long pages errors with nondescriptive message "has neither 'pageid' nor 'missing' attribute"
Magul removed Magul as the assignee of this task. TASK DETAILhttps://phabricator.wikimedia.org/T132158EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MagulCc: Magul, gerritbot, Mpaa, Xqt, jayvdb, Aklapper, Senapa, pywikibot-bugs-list, zhuyifei1999, MayS, Mdupont, JJMC89, Dalba, Masti, Alchimista, Rxy___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Closed] T132158: Page title too long pages errors with nondescriptive message "has neither 'pageid' nor 'missing' attribute"
Magul closed this task as "Resolved".Magul claimed this task. TASK DETAILhttps://phabricator.wikimedia.org/T132158EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MagulCc: gerritbot, Mpaa, Xqt, jayvdb, Aklapper, Senapa, pywikibot-bugs-list, zhuyifei1999, Magul, MayS, Mdupont, JJMC89, Dalba, Masti, Alchimista, Rxy___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Changed Project Column] T114574: Create an alias "mul" for -lang: syntax in pywikibot
Aklapper moved this task from Proposed tasks to Imported in GCI Site on the Google-Code-In-2016 board.Aklapper added a comment. Imported as https://codein.withgoogle.com/tasks/5727455453118464/TASK DETAILhttps://phabricator.wikimedia.org/T114574WORKBOARDhttps://phabricator.wikimedia.org/project/board/2304/EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: AklapperCc: TerraCodes, valhallasw, darthbhyrava, XZise, Mpaa, jayvdb, Aklapper, pywikibot-bugs-list, Magul, MayS, Mdupont, JJMC89, D3r1ck01, MuhammadShuaib, Dalba, Masti, Alchimista, Rxy, Jay8g___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Changed Project Column] T70797: script_wui hardcoded to use User:DrTrigon
Aklapper moved this task from Proposed tasks to Imported in GCI Site on the Google-Code-In-2016 board.Aklapper added a comment. In T70797#2758117, @DrTrigon wrote: I will mentor this in #GCI2016 @DrTrigon: Could you please reply to the mentor registration email you received, and register? :) If you missed it, please drop me an email. Thanks! Imported as https://codein.withgoogle.com/tasks/6219155388760064/TASK DETAILhttps://phabricator.wikimedia.org/T70797WORKBOARDhttps://phabricator.wikimedia.org/project/board/2304/EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Ladsgroup, AklapperCc: Aklapper, DrTrigon, TerraCodes, gerritbot, Sitic, jayvdb, Ricordisamoa, pywikibot-bugs-list, Ramalepe, Liugev6, Magul, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, D3r1ck01, MuhammadShuaib, Dalba, Masti, Alchimista, Rxy, Jay8g___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Changed Project Column] T90149: LDAP based login is broken in pywikibot because lgdomain is not set
Aklapper moved this task from Proposed tasks to Imported in GCI Site on the Google-Code-In-2016 board.Aklapper added a comment. Imported as https://codein.withgoogle.com/tasks/5099661157203968/TASK DETAILhttps://phabricator.wikimedia.org/T90149WORKBOARDhttps://phabricator.wikimedia.org/project/board/2304/EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: AklapperCc: David.august, AbdealiJK, TerraCodes, Riddlesj, darthbhyrava, jayvdb, XZise, pywikibot-bugs-list, Aklapper, Multichill, Magul, MayS, Mdupont, JJMC89, D3r1ck01, MuhammadShuaib, Dalba, droid, Masti, Alchimista, Rxy, Jay8g___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Changed Project Column] T130805: Create some tests for pywikibot.diff.PatchManager
Aklapper moved this task from Proposed tasks to Imported in GCI Site on the Google-Code-In-2016 board.Aklapper added a comment. Imported as https://codein.withgoogle.com/tasks/5757373792649216/TASK DETAILhttps://phabricator.wikimedia.org/T130805WORKBOARDhttps://phabricator.wikimedia.org/project/board/2304/EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: AklapperCc: Vennela0212, TerraCodes, Aklapper, pywikibot-bugs-list, Mpaa, jayvdb, Magul, MayS, Mdupont, JJMC89, D3r1ck01, MuhammadShuaib, Dalba, Masti, Alchimista, Rxy, Jay8g___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Retitled] T130805: Create some tests for pywikibot.diff.PatchManager
Aklapper changed the title from "pywikibot.diff.PatchManager has no tests" to "Create some tests for pywikibot.diff.PatchManager". TASK DETAILhttps://phabricator.wikimedia.org/T130805EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: AklapperCc: Vennela0212, TerraCodes, Aklapper, pywikibot-bugs-list, Mpaa, jayvdb, Magul, MayS, Mdupont, JJMC89, D3r1ck01, MuhammadShuaib, Dalba, Masti, Alchimista, Rxy, Jay8g___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Changed Project Column] T124005: Create tests for fake user agent
Aklapper moved this task from Proposed tasks to Imported in GCI Site on the Google-Code-In-2016 board.Aklapper added a comment. Imported as https://codein.withgoogle.com/tasks/5710305380270080/TASK DETAILhttps://phabricator.wikimedia.org/T124005WORKBOARDhttps://phabricator.wikimedia.org/project/board/2304/EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: AklapperCc: TerraCodes, darthbhyrava, Aklapper, pywikibot-bugs-list, jayvdb, Nemo_bis, MtDu, gerritbot, Magul, MayS, Mdupont, JJMC89, D3r1ck01, MuhammadShuaib, Dalba, Masti, Alchimista, Rxy, Jay8g___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Changed Subscribers] T92856: Assertion failure testing namespace restriction
Magul added subscribers: Xqt, XXN, Dalba, valhallasw.Magul added a comment. The reason that (I believe) cause failing tests here (and in few other tasks) is, that these tests aren't unittests. The work on live Mediawiki instances and they assume that there will be no change during test. As You can see in my previous comment it sometimes happend that change is made and it is failing. I was trying to build here bullet proof solution. The solution mock BasePage.init method and decorate it logic with 2 lines that were responsible for getting last rev id for every page that was created during test and if it failed it would check if any page that was created during test changed. The problem here is that time required to run one such test was increased by at least one order of magnitude. Previously test take 3-4 seconds to pass and after implementing bullet-proof solution it was going for few minutes and haven't end. So the question is what level of fragility is enough for us? I'm tending right now into: choping long tests that cuse problems to smaller ones on failure reruning test (that it will take 10 failures before test fails completely). What do You think about it? @Dalba @Xqt @jayvdb @valhallasw @XZise @XXNTASK DETAILhttps://phabricator.wikimedia.org/T92856EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MagulCc: valhallasw, Dalba, XXN, Xqt, Magul, gerritbot, jayvdb, pywikibot-bugs-list, Aklapper, XZise, MayS, Mdupont, JJMC89, GPHemsley, Darkdadaah, Masti, Alchimista, Rxy, Krenair___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Retitled] T151733: Compat deprecation message broke compat
Masti changed the title from "Compat deprecation message broke comat" to "Compat deprecation message broke compat". TASK DETAILhttps://phabricator.wikimedia.org/T151733EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MastiCc: Aklapper, Masti, pywikibot-bugs-list, Anshoe___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T151733: Compat deprecation message broke comat
Masti created this task.Masti added a project: Pywikibot-compat.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONwarning message in throttle.py introduced in https://gerrit.wikimedia.org/r/322502 crasshes with EOFError: EOF when reading a line example: Press to continue. Traceback (most recent call last): File "basicvotes.py", line 29, in import wikipedia as pywikibot File "/usr/home/masti/pw/compat/wikipedia.py", line 10466, in get_throttle = Throttle() File "/usr/home/masti/pw/compat/pywikibot/throttle.py", line 66, in __init__ self.checkMultiplicity() File "/usr/home/masti/pw/compat/pywikibot/throttle.py", line 140, in checkMultiplicity self._show_warning() File "/usr/home/masti/pw/compat/pywikibot/throttle.py", line 89, in _show_warning \03{default}""") File "/usr/home/masti/pw/compat/wikipedia.py", line 10329, in input data = "" password) File "/usr/home/masti/pw/compat/userinterfaces/terminal_interface_base.py", line 142, in input text = self._raw_input() File "/usr/home/masti/pw/compat/userinterfaces/terminal_interface_base.py", line 120, in _raw_input return raw_input() EOFError: EOF when reading a lineTASK DETAILhttps://phabricator.wikimedia.org/T151733EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MastiCc: Aklapper, Masti, pywikibot-bugs-list, Anshoe, jayvdb___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T134640: site_tests.py fails for TestUserContribsWithoutUser with TimeoutError
Magul added a comment. I have just pushed update to my patch that will change default timeout to 1 minute instead of 5 (and fixing commit message typo). @Dalba I'm not certain what kind of advantage we will get, if we will distinguish read timeout and connect timeout. @Xqt I get Your hesitation about increasing default timeout, but we should think about it as an abstract value, that we are willing to wait. I know that lot of bots doesn't do heavy requests but they will not be affected by this change, and if will, inecrease of default timeout value is the the least of their problems. .TASK DETAILhttps://phabricator.wikimedia.org/T134640EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MagulCc: MtDu, Lokal_Profil, Dalba, gerritbot, valhallasw, XZise, Aklapper, jayvdb, Zppix, Xqt, pywikibot-bugs-list, Ramalepe, Liugev6, Magul, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Masti, Alchimista, Rxy___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T151727: Port cache_output from compat
Xqt added a parent task: T151110: Regressions of core should be rethinked or solved. TASK DETAILhttps://phabricator.wikimedia.org/T151727EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: XqtCc: Aklapper, Xqt, pywikibot-bugs-list, Magul, MayS, Mdupont, JJMC89, jayvdb, Dalba, droid, Masti, Alchimista, Rxy, Jay8g___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T151110: Regressions of core should be rethinked or solved
Xqt added a subtask: T151727: Port cache_output from compat. TASK DETAILhttps://phabricator.wikimedia.org/T151110EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: XqtCc: zhuyifei1999, pywikibot-bugs-list, Aklapper, Magul, Xqt, MayS, Mdupont, JJMC89, jayvdb, Dalba, droid, Masti, Alchimista, Rxy, Jay8g___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T73646: replace.py: async output messages jumbled with user interaction on main thread
Xqt added a subtask: T151727: Port cache_output from compat. TASK DETAILhttps://phabricator.wikimedia.org/T73646EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Mpaa, XqtCc: Xqt, Aklapper, gerritbot, Mpaa, JAnD, jayvdb, valhallasw, pywikibot-bugs-list, Ramalepe, Liugev6, Magul, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dalba, droid, Masti, Alchimista, Rxy, Jay8g___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T151727: Port cache_output from compat
Xqt added parent tasks: T144698: Missing warning for the anti-spam filter error, T74942: replace.py display_edit_counter throws AttributeError: 'NoneType' object has no attribute 'output', T73646: replace.py: async output messages jumbled with user interaction on main thread, T132135: template.py does not show when a page is saved. TASK DETAILhttps://phabricator.wikimedia.org/T151727EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: XqtCc: Aklapper, Xqt, pywikibot-bugs-list, Magul, MayS, Mdupont, JJMC89, jayvdb, Dalba, droid, Masti, Alchimista, Rxy, Jay8g___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T74942: replace.py display_edit_counter throws AttributeError: 'NoneType' object has no attribute 'output'
Xqt added a subtask: T151727: Port cache_output from compat. TASK DETAILhttps://phabricator.wikimedia.org/T74942EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: XqtCc: gerritbot, Xqt, JAnD, pywikibot-bugs-list, Multichill, Mpaa, Ramalepe, Liugev6, Magul, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, 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] T132135: template.py does not show when a page is saved
Xqt added a subtask: T151727: Port cache_output from compat. TASK DETAILhttps://phabricator.wikimedia.org/T132135EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: XqtCc: jayvdb, gerritbot, Mpaa, Aklapper, pywikibot-bugs-list, Meno25, Xqt, Ramalepe, Liugev6, Magul, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, 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] T151727: Port cache_output from compat
Xqt removed a subtask: T73646: replace.py: async output messages jumbled with user interaction on main thread. TASK DETAILhttps://phabricator.wikimedia.org/T151727EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: XqtCc: Aklapper, Xqt, pywikibot-bugs-list, Magul, MayS, Mdupont, JJMC89, jayvdb, Dalba, droid, Masti, Alchimista, Rxy, Jay8g___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T73646: replace.py: async output messages jumbled with user interaction on main thread
Xqt removed a parent task: T151727: Port cache_output from compat. TASK DETAILhttps://phabricator.wikimedia.org/T73646EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Mpaa, XqtCc: Xqt, Aklapper, gerritbot, Mpaa, JAnD, jayvdb, valhallasw, pywikibot-bugs-list, Ramalepe, Liugev6, Magul, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dalba, droid, Masti, Alchimista, Rxy, Jay8g___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T73646: replace.py: async output messages jumbled with user interaction on main thread
Xqt added a parent task: T151727: Port cache_output from compat. TASK DETAILhttps://phabricator.wikimedia.org/T73646EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Mpaa, XqtCc: Xqt, Aklapper, gerritbot, Mpaa, JAnD, jayvdb, valhallasw, pywikibot-bugs-list, Ramalepe, Liugev6, Magul, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dalba, droid, Masti, Alchimista, Rxy, Jay8g___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T151727: Port cache_output from compat
Xqt added a subtask: T73646: replace.py: async output messages jumbled with user interaction on main thread. TASK DETAILhttps://phabricator.wikimedia.org/T151727EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: XqtCc: Aklapper, Xqt, pywikibot-bugs-list, Magul, MayS, Mdupont, JJMC89, jayvdb, Dalba, droid, Masti, Alchimista, Rxy, Jay8g___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T57880: Functionality existing in compat but missing from core (tracking)
Xqt added a subtask: T151727: Port cache_output from compat. TASK DETAILhttps://phabricator.wikimedia.org/T57880EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: XqtCc: binbot, Aklapper, APerson, Xqt, Nemo_bis, droid, Ricordisamoa, pywikibot-bugs-list, Multichill, Beta16, mschwarzer, Jay8g___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T151727: Port cache_output from compat
Xqt added a parent task: T57880: Functionality existing in compat but missing from core (tracking). TASK DETAILhttps://phabricator.wikimedia.org/T151727EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: XqtCc: Aklapper, Xqt, pywikibot-bugs-list, Magul, MayS, Mdupont, JJMC89, jayvdb, Dalba, droid, Masti, Alchimista, Rxy, Jay8g___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Triaged] T151727: Port cache_output from compat
Xqt triaged this task as "High" priority. TASK DETAILhttps://phabricator.wikimedia.org/T151727EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: XqtCc: Aklapper, Xqt, pywikibot-bugs-list, Magul, MayS, Mdupont, JJMC89, jayvdb, Dalba, droid, Masti, Alchimista, Rxy, Jay8g___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T151727: Port cache_output from compat
Xqt created this task.Xqt added projects: Pywikibot-core, Pywikibot-compat-to-core, Pywikibot-General.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONcompat has some code (cache_output dict, cache_output(), flush_output_cache() methods and some others) which enables caching of the output stream during asynchronous processes. This should be re-implemented to prevent mangling or hidden output.TASK DETAILhttps://phabricator.wikimedia.org/T151727EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: XqtCc: Aklapper, Xqt, pywikibot-bugs-list, Magul, MayS, Mdupont, JJMC89, jayvdb, Dalba, droid, Masti, Alchimista, Rxy, Jay8g___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T134640: site_tests.py fails for TestUserContribsWithoutUser with TimeoutError
Xqt added a comment. config.py setting is a default setting for all bot users. I guess most bot task does not exceed that given limit. For these problems while testing I think it would be better to use a changed value in the private user-config.py or set that config.py value for our tests. inside the test stuff.TASK DETAILhttps://phabricator.wikimedia.org/T134640EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Magul, XqtCc: MtDu, Lokal_Profil, Dalba, gerritbot, valhallasw, XZise, Aklapper, jayvdb, Zppix, Xqt, pywikibot-bugs-list, Ramalepe, Liugev6, Magul, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, 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] T151092: Change in quantities broke pywikibot
Lokal_Profil added a comment. In T151092#2822773, @Wesalius wrote: But this error was raised when trying to edit wikidata. So without the site object the function cannot determine which version of Wikibase is running. So it assumes the old version... which isn't what Wikidata runs. The followg-up patch changes it to assume the newer version as default making it work on Wikidata without the need for the site object. Still no review or merge (pywikibot has a problem with open patches) so you might want to just modify your code to pass it a site object when creating a WbQuantitiy claim.TASK DETAILhttps://phabricator.wikimedia.org/T151092EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Multichill, Lokal_ProfilCc: Wesalius, Lokal_Profil, aude, TerraCodes, Luke081515, Jay8g, hoo, Ladsgroup, Lydia_Pintscher, Aklapper, Multichill, pywikibot-bugs-list, daniel, D3r1ck01, Izno, Wikidata-bugs, Ricordisamoa, Mbch331___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Closed] T151712: Page.purge(forcelinkupdate=None) gives a wrong result
Magul closed this task as "Resolved". TASK DETAILhttps://phabricator.wikimedia.org/T151712EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Xqt, MagulCc: gerritbot, Ricordisamoa, Aklapper, Xqt, pywikibot-bugs-list, Ramalepe, Liugev6, Magul, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, 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] T151712: Page.purge(forcelinkupdate=None) gives a wrong result
gerritbot added a comment. Change 323686 merged by jenkins-bot: [bugfix] Fix purgepages() result https://gerrit.wikimedia.org/r/323686TASK DETAILhttps://phabricator.wikimedia.org/T151712EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Xqt, gerritbotCc: gerritbot, Ricordisamoa, Aklapper, Xqt, pywikibot-bugs-list, Ramalepe, Liugev6, Magul, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, 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] T151706: WbQuantity now expects a 'site' parameter
Magul added a comment. I believe there is other issue here. The WbQuantity now expects a 'site' parameter. This is needed to ensure correct handling of error bounds. is just a warning. After this warning code goes here: if error is None: self.upperBound = self.lowerBound = Decimal(0) elif isinstance(error, tuple): upperError = self._todecimal(error[0]) lowerError = self._todecimal(error[1]) else: upperError = lowerError = self._todecimal(error) self.upperBound = self.amount + upperError self.lowerBound = self.amount - lowerError as You can see at the end we have 2 assigments that use upperError and lowerError, but in 3-way if-stattement above we set these 2 variables only in elif, first if doesn't set any of these variables and else sets only upperError. I occurs that Your code @Wesalius went through if error is None: path so there is no local upperError defined.TASK DETAILhttps://phabricator.wikimedia.org/T151706EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MagulCc: Magul, Dalba, Aklapper, Wesalius, pywikibot-bugs-list, MayS, Mdupont, JJMC89, 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] T151677: FamilyMaintenanceWarning: Family name wikimediachapter does not match family module name wikimedia
Magul added a comment. Ok, I have digg into this issue and it looks, that You're mixing unicode with str here. I would assume that it happened here: rowi=unicode(str(row[0]),'UTF-8') but it's something that You need to check. I could only suggest that You're loosing decode('cp1256') somehere. I'm closing it as invalid, cause it's not an issue in #pywikibot-core .TASK DETAILhttps://phabricator.wikimedia.org/T151677EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MagulCc: Magul, Aklapper, pywikibot-bugs-list, Jar, MayS, Mdupont, JJMC89, 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] [Closed] T151677: FamilyMaintenanceWarning: Family name wikimediachapter does not match family module name wikimedia
Magul closed this task as "Invalid". TASK DETAILhttps://phabricator.wikimedia.org/T151677EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MagulCc: Magul, Aklapper, pywikibot-bugs-list, Jar, MayS, Mdupont, JJMC89, 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] T151712: Page.purge(forcelinkupdate=None) gives a wrong result
gerritbot added a project: Patch-For-Review. TASK DETAILhttps://phabricator.wikimedia.org/T151712EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Xqt, gerritbotCc: gerritbot, Ricordisamoa, Aklapper, Xqt, pywikibot-bugs-list, Ramalepe, Liugev6, Magul, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, 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] T151712: Page.purge(forcelinkupdate=None) gives a wrong result
gerritbot added a comment. Change 323686 had a related patch set uploaded (by Xqt): [bugfix] Fix purgepages() result https://gerrit.wikimedia.org/r/323686TASK DETAILhttps://phabricator.wikimedia.org/T151712EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Xqt, gerritbotCc: gerritbot, Ricordisamoa, Aklapper, Xqt, pywikibot-bugs-list, Magul, MayS, Mdupont, JJMC89, 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] T151712: Page.purge(forcelinkupdate=None) gives a wrong result
Xqt triaged this task as "High" priority. TASK DETAILhttps://phabricator.wikimedia.org/T151712EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: XqtCc: Ricordisamoa, Aklapper, Xqt, pywikibot-bugs-list, Magul, MayS, Mdupont, JJMC89, 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] T151712: Page.purge(forcelinkupdate=None) gives a wrong result
Xqt created this task.Xqt added projects: Pywikibot-core, Pywikibot-General.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONPage.purge(forcelinkupdate=None) returns always False because site.purgepages() wrongly assumes that forcelinkupdate is set but api.py removes parameters which have None or False as it value.TASK DETAILhttps://phabricator.wikimedia.org/T151712EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: XqtCc: Ricordisamoa, Aklapper, Xqt, pywikibot-bugs-list, Magul, MayS, Mdupont, JJMC89, 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] T151677: FamilyMaintenanceWarning: Family name wikimediachapter does not match family module name wikimedia
Magul added a comment. @Jar I just used some of Your edits and created simple script: # -*- coding: utf-8 -*- import pywikibot as pwb site = pwb.getSite("ar") address = u'مستخدم:MagulBot' message = u'مستخدم' text=u""" {{إحصاء}} تعرض هذه الصفحة قائمة الـ500 [[وب:ويكيبيديون|ويكيبيدي]] الأوائل حسب عدد التعديلات (بدون احتساب [[وب:بوت|البوتات]]). انظر أيضا: [[ويكيبيديا:قائمة الويكيبيديين حسب عدد التعديلات (متضمنة البوتات)|قائمة الويكيبيديين حسب عدد التعديلات (متضمنة البوتات)]] '''قام [[مستخدم:JarBot|JarBot]] بتحديث هذه القائمة في :' 00:29، 27 نوفمبر 2016 (ت ع م) ''' {| class="wikitable sortable" !style="background-color:#808080" align="center"|الرقم!!style="background-color:#808080" align="center"|المستخدم!!style="background-color:#808080" align="center"|عدد المساهمات |- |bgcolor="#808080"|1||bgcolor="#D3D3D3"|[[مستخدم:Meno25|Meno25]]||bgcolor="#DCDCDC"|[[خاص:مساهمات/Meno25|132,168]] |- |} [[تصنيف:إحصاءات ويكيبيديا]] [[تصنيف:ويكيبيديا قائمة الويكيبيديين حسب عدد التعديلات]] """ page = pwb.Page(site,address) page.put(text,message) And as You would see it saved page with unicode properly: https://ar.wikipedia.org/w/index.php?title=%D9%85%D8%B3%D8%AA%D8%AE%D8%AF%D9%85:MagulBot=21751610TASK DETAILhttps://phabricator.wikimedia.org/T151677EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MagulCc: Magul, Aklapper, pywikibot-bugs-list, Jar, MayS, Mdupont, JJMC89, 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] T151677: FamilyMaintenanceWarning: Family name wikimediachapter does not match family module name wikimedia
Magul added a comment. @Jar I still don't know how You installed it?TASK DETAILhttps://phabricator.wikimedia.org/T151677EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MagulCc: Magul, Aklapper, pywikibot-bugs-list, Jar, MayS, Mdupont, JJMC89, 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] T151677: FamilyMaintenanceWarning: Family name wikimediachapter does not match family module name wikimedia
Magul added a comment. @Jar I was trying to recreate Your issue with this warning and wasn't able to do so. I assume that it caused by import family at the top of Your script. I don't have such module in fresh #pywikibot-core code, so I was getting ImportError: No module named family. After removal of this line it start working without any warning. Can You confirm that I'm right here? What do this family.py contains? I'm trying to figure out unicode issue, but I'm not an expert here, so it could take me a moment.TASK DETAILhttps://phabricator.wikimedia.org/T151677EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MagulCc: Magul, Aklapper, pywikibot-bugs-list, Jar, MayS, Mdupont, JJMC89, 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] T151706: WbQuantity now expects a 'site' parameter
Dalba added a comment. @Wesalius Does the following change resolve your issue? https://gerrit.wikimedia.org/r/#/c/322672/3/tests/wikibase_tests.pyTASK DETAILhttps://phabricator.wikimedia.org/T151706EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: DalbaCc: Dalba, Aklapper, Wesalius, pywikibot-bugs-list, Magul, MayS, Mdupont, JJMC89, 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] T151706: WbQuantity now expects a 'site' parameter
Wesalius created this task.Wesalius added a project: Pywikibot-core.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONNow when writing statements to wd using pwb I get WbQuantity now expects a 'site' parameter. This is needed to ensure correct handling of error bounds. Unspecified exception raised. Waiting 1 minute. ^CTraceback (most recent call last): File "elobot.py", line 109, in bot elo_claim.setTarget(pwb.WbQuantity(rating)) File "/core/pywikibot/__init__.py", line 680, in __init__ self.upperBound = self.amount + upperError UnboundLocalError: local variable 'upperError' referenced before assignment Running Pywikibot: [ssh] pywikibot-core.git (f94a8e9, g7635, 2016/11/27, 02:42:43, n/a) Release version: 3.0-dev requests version: 2.12.1 Python 3.5.2TASK DETAILhttps://phabricator.wikimedia.org/T151706EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WesaliusCc: Aklapper, Wesalius, pywikibot-bugs-list, Magul, MayS, Mdupont, JJMC89, 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] [Closed] T98707: Replace.py does not catch exceptions when saving
Magul closed this task as "Resolved". TASK DETAILhttps://phabricator.wikimedia.org/T98707EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MagulCc: gerritbot, Xqt, binbot, jayvdb, pywikibot-bugs-list, Aklapper, Mpaa, Ramalepe, Liugev6, Magul, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dalba, Masti, Alchimista, Rxy___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs