[Pywikipedia-bugs] [Maniphest] [Commented On] T344327: pywikibot Site.upload repeats "Invalid CSRF token" and "Sleeping for" infinitely without exiting

2024-05-21 Thread Xqt
Xqt added a comment. In T344327#9819408 <https://phabricator.wikimedia.org/T344327#9819408>, @Hoi wrote: > In the last a few days, I experienced infinite sleep several times. No invalid CSRF token, just `Sleeping for ...` kept repeating for at least several hours until I t

[Pywikipedia-bugs] [Maniphest] [Closed] T364689: Giving an empty string as second replacement argument in replace.py fails if Powershell is used as command prompt

2024-05-21 Thread Xqt
Xqt closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T364689 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: binbot, Xqt, Aklapper, pywikibot-bugs-list, Aram, mevo, Isabelladantes1983, Themindcode

[Pywikipedia-bugs] [Maniphest] [Retitled] T364689: Giving an empty string as second replacement argument in replace.py fails if Powershell is used as command prompt

2024-05-21 Thread Xqt
Xqt renamed this task from "In pywikibot, replace.py script using -regex can't handle null replacements" to "Giving an empty string as second replacement argument in replace.py fails if Powershell is used as command prompt". Xqt triaged this task as "High" priority

[Pywikipedia-bugs] [Maniphest] [Commented On] T364689: In pywikibot, replace.py script using -regex can't handle null replacements

2024-05-21 Thread Xqt
Xqt added a comment. In T364689#9817154 <https://phabricator.wikimedia.org/T364689#9817154>, @Aram wrote: > @Xqt, I don't know how you found out I was using PS ... The preleading PS gave me that hint {icon smile-o spin} **`PS`**`C:\Pywikibot> ...` TASK DE

[Pywikipedia-bugs] [Maniphest] [Commented On] T364689: In pywikibot, replace.py script using -regex can't handle null replacements

2024-05-21 Thread Xqt
Xqt added a comment. Using empty strings with PS --- Try the follwing example invoking the Python command shell. With cmd you can use en empty string like `pwb shell foo "" bar -noimport` For PS you have to escape the empty string in this

[Pywikipedia-bugs] [Maniphest] [Commented On] T364689: In pywikibot, replace.py script using -regex can't handle null replacements

2024-05-21 Thread Xqt
Xqt added a comment. @Aram: I see, you are using Powershell to invoke the python command. I was able to reproduce the reported behavior with Powershell and it seems that PS ignores empty strings. Please use the `cmd` comand propt and it will work as expected. TASK DETAIL https

[Pywikipedia-bugs] [Maniphest] [Commented On] T364689: In pywikibot, replace.py script using -regex can't handle null replacements

2024-05-21 Thread Xqt
Xqt added a comment. OK, another try: `pwb shell foo "" bar` The result should be (two comas after foo) `Unknown arguments: foo, , bar` TASK DETAIL https://phabricator.wikimedia.org/T364689 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences

[Pywikipedia-bugs] [Maniphest] [Commented On] T364689: In pywikibot, replace.py script using -regex can't handle null replacements

2024-05-21 Thread Xqt
Xqt added a comment. What is the behaviour and the log with Python 3.12 without escaping? TASK DETAIL https://phabricator.wikimedia.org/T364689 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: binbot, Xqt, Aklapper, pywikibot-bugs-list

[Pywikipedia-bugs] [Maniphest] [Commented On] T364689: In pywikibot, replace.py script using -regex can't handle null replacements

2024-05-21 Thread Xqt
Xqt added a comment. Just an idea to circumvent this sys.argv problem is to use a preleading linespace but does not work if the template is in the first line on the page: python pwb.py -simulate replace -page:ئانیشک -site:wiktionary:ckb -regex "\r?\n{{wikipedia}}\n?" &qu

[Pywikipedia-bugs] [Maniphest] [Commented On] T364689: In pywikibot, replace.py script using -regex can't handle null replacements

2024-05-21 Thread Xqt
Xqt added a comment. Does an escaping work: `python pwb.py -simulate replace -page:ئانیشک -site:wiktionary:ckb -regex "{{wikipedia}}\n?" \"\" -summary:"Replace test"` Are you able to install another python like Python 3.11 or 3.12? You may run di

[Pywikipedia-bugs] [Maniphest] [Commented On] T364689: In pywikibot, replace.py script using -regex can't handle null replacements

2024-05-20 Thread Xqt
Xqt added a comment. Really strange, the empty string is lost in sys.args. What is your Windows version? TASK DETAIL https://phabricator.wikimedia.org/T364689 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, Aklapper, pywikibot-bugs

[Pywikipedia-bugs] [Maniphest] [Commented On] T364689: In pywikibot, replace.py script using -regex can't handle null replacements

2024-05-20 Thread Xqt
Xqt added a comment. @Aram: could you please run `pwb version` to get your version information. Are you able to adopt this <https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1030595> patch? The replacement pairs should be printed then. TASK DETAIL https://phabricator.wikimed

[Pywikipedia-bugs] [Maniphest] [Triaged] T365340: extra new line added by noreferences.py

2024-05-20 Thread Xqt
Xqt triaged this task as "Low" priority. TASK DETAIL https://phabricator.wikimedia.org/T365340 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, Aklapper, pywikibot-bugs-list, Rubin, mevo, PotsdamLamb, Jyoo1011, JohnsonLe

[Pywikipedia-bugs] [Maniphest] [Commented On] T365340: extra new line added by noreferences.py

2024-05-20 Thread Xqt
Xqt added a comment. In T365340#9812718 <https://phabricator.wikimedia.org/T365340#9812718>, @Rubin wrote: > does the template make a difference here? It is not substituted (like `{{subst:примечания}}`), we just add `{{примечания}}` itself, its substance shouldn't affect the e

[Pywikipedia-bugs] [Maniphest] [Commented On] T365340: extra new line added by noreferences.py

2024-05-20 Thread Xqt
Xqt added a comment. @Rubin: I guess this is made by the `{{примечания}}` template wich adds this additional line; could you pleas check it? TASK DETAIL https://phabricator.wikimedia.org/T365340 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences

[Pywikipedia-bugs] [Maniphest] [Commented On] T364689: In pywikibot, replace.py script using -regex can't handle null replacements

2024-05-20 Thread Xqt
Xqt added a comment. @Aram: please run the following command for tests: `pwb.py -simulate replace -page:ئانیشک -site:wiktionary:ckb -regex "{{wikipedia}}\n?" "" -summary:"Replace test"` You should get the following: Retrievi

[Pywikipedia-bugs] [Maniphest] [Claimed] T348925: preload_sites.py script is too slow

2024-05-20 Thread Xqt
Xqt claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T348925 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: ericpien, Aklapper, pywikibot-bugs-list, Xqt, mevo, Isabelladantes1983, Themindcoder, Adamm71, Jersione, Hellket777

[Pywikipedia-bugs] [Maniphest] [Commented On] T348925: preload_sites.py script is too slow

2024-05-20 Thread Xqt
Xqt added a comment. The regression was introduced with Pywikibot 8.1 (see above). Previous runs were 30 times faster for the first time and 300 times for the second. The patch above fastens up the second call but the api calls seems sequentiell instead of simultaneously which would

[Pywikipedia-bugs] [Maniphest] [Commented On] T348925: preload_sites.py script is too slow

2024-05-20 Thread Xqt
Xqt added a comment. Hi @ericpien: I think `preload_sites` script is a good measurement. After collecting the `siteinfo` (and after Pywikibot 8.1 `userinfo`) the second call must much more faster. Thank you for your patch but I would suggest to use the already implemented CachedRequest

[Pywikipedia-bugs] [Maniphest] [Unassigned] T365312: remove tools.add_full_name decorator and add_decorated_full_name function

2024-05-19 Thread Xqt
Xqt removed Xqt as the assignee of this task. TASK DETAIL https://phabricator.wikimedia.org/T365312 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, pywikibot-bugs-list, Xqt, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH

[Pywikipedia-bugs] [Maniphest] [Edited] T365312: remove tools.add_full_name decorator and add_decorated_full_name function

2024-05-18 Thread Xqt
Xqt updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T365312 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, pywikibot-bugs-list, Xqt, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck

[Pywikipedia-bugs] [Maniphest] [Closed] T365286: Documentation of tools.deprecated is missing

2024-05-18 Thread Xqt
Xqt closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T365286 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, pywikibot-bugs-list, Xqt, mevo, Isabelladantes1983, Themindcoder, Adamm71

[Pywikipedia-bugs] [Maniphest] [Claimed] T365286: Documentation of tools.deprecated is missing

2024-05-18 Thread Xqt
Xqt claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T365286 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, pywikibot-bugs-list, Xqt, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido

[Pywikipedia-bugs] [Maniphest] [Claimed] T365312: remove tools.add_full_name decorator and add_decorated_full_name function

2024-05-18 Thread Xqt
Xqt triaged this task as "Low" priority. Xqt claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T365312 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, pywikibot-bugs-list, Xqt, mevo, PotsdamLamb

[Pywikipedia-bugs] [Maniphest] [Changed Status] T365232: Add support for dtpwiki to Pywikibot

2024-05-17 Thread Xqt
Xqt changed the task status from "Open" to "Stalled". Xqt added a comment. @JJMC89: better remove the other because T365230 <https://phabricator.wikimedia.org/T365230> is the blocker for the current task. Stalled until T365230 <https://phabricator.wikimedia.

[Pywikipedia-bugs] [Maniphest] [Triaged] T365286: Documentation of tools.deprecated is missing

2024-05-17 Thread Xqt
Xqt triaged this task as "Medium" priority. TASK DETAIL https://phabricator.wikimedia.org/T365286 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, pywikibot-bugs-list, Xqt, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH

[Pywikipedia-bugs] [Maniphest] [Created] T365286: Documentation of tools.deprecated is missing

2024-05-17 Thread Xqt
Xqt created this task. Xqt added projects: Pywikibot, Pywikibot-Documentation. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION documentation of tools.deprecation is missing. Instead of it the following is shown: tools.deprecated(*outer_args

[Pywikipedia-bugs] [Maniphest] [Closed] T364640: common_information fails if there are multiple language templates

2024-05-17 Thread Xqt
Xqt closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T364640 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Ricordisamoa, Aklapper, Xqt, pywikibot-bugs-list, mevo, PotsdamLamb, Jyoo1011, JohnsonLe

[Pywikipedia-bugs] [Maniphest] [Claimed] T365199: botMayEdit() raises UnsupportedPageError for Page('Talk:Israeli invasion of the Gaza Strip (2023–present)') on the English Wikipedia

2024-05-17 Thread Xqt
Xqt claimed this task. Xqt added a comment. The design of Page.templates() <https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.page.html#page.BasePage.templates> as well as Page.itertemplates() <https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.

[Pywikipedia-bugs] [Maniphest] [Triaged] T365199: botMayEdit() raises UnsupportedPageError for Page('Talk:Israeli invasion of the Gaza Strip (2023–present)') on the English Wikipedia

2024-05-17 Thread Xqt
Xqt triaged this task as "High" priority. TASK DETAIL https://phabricator.wikimedia.org/T365199 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, Qwerfjkl, JJMC89, Aklapper, pywikibot-bugs-list, coldchrist, mevo, PotsdamLamb

[Pywikipedia-bugs] [Maniphest] [Updated] T365232: Add support for dtpwiki to Pywikibot

2024-05-17 Thread Xqt
Xqt added a subtask: T365220: Create Wikipedia Central Dusun. TASK DETAIL https://phabricator.wikimedia.org/T365232 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, Maintenance_bot, pywikibot-bugs-list, mevo, PotsdamLamb, Jyoo1011

[Pywikipedia-bugs] [Maniphest] [Closed] T365247: pep8-naming release 0.14.0 fails with Python 3.7

2024-05-17 Thread Xqt
Xqt closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T365247 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, Xqt, pywikibot-bugs-list, mevo, Isabelladantes1983, Themindcoder, Adamm71

[Pywikipedia-bugs] [Maniphest] [Claimed] T365247: pep8-naming release 0.14.0 fails with Python 3.7

2024-05-17 Thread Xqt
Xqt claimed this task. Xqt triaged this task as "High" priority. Xqt moved this task from Backlog to CI test failures on the Pywikibot-tests board. TASK DETAIL https://phabricator.wikimedia.org/T365247 WORKBOARD https://phabricator.wikimedia.org/project/board/107/ EMAIL PREFERENC

[Pywikipedia-bugs] [Maniphest] [Created] T365247: pep8-naming release 0.14.0 fails with Python 3.7

2024-05-17 Thread Xqt
Xqt created this task. Xqt added projects: Pywikibot, Pywikibot-tests. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION pep8-naming release 0.14.0 is installed withPython 3.7 even though 0.13.3 is supposed to be used. flake8 fails then due

[Pywikipedia-bugs] [Maniphest] [Closed] T107141: SectionError exception nowhere raised

2024-05-16 Thread Xqt
Xqt closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T107141 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, Aklapper, pywikibot-bugs-list, XZise, mevo, Isabelladantes1983, Themindcoder, Adamm71

[Pywikipedia-bugs] [Maniphest] [Edited] T364841: Pywikibot tests sometimes hangs on deletionbot_tests.TestDeletionBot.test_dry()

2024-05-14 Thread Xqt
Xqt updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T364841 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, pywikibot-bugs-list, Xqt, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck

[Pywikipedia-bugs] [Maniphest] [Triaged] T364841: Pywikibot tests sometimes hangs on deletionbot_tests.TestDeletionBot.test_dry()

2024-05-14 Thread Xqt
Xqt triaged this task as "High" priority. TASK DETAIL https://phabricator.wikimedia.org/T364841 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, pywikibot-bugs-list, Xqt, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH

[Pywikipedia-bugs] [Maniphest] [Created] T364841: Pywikibot tests sometimes hangs on deletionbot_tests.TestDeletionBot.test_dry()

2024-05-14 Thread Xqt
Xqt created this task. Xqt added projects: Pywikibot, Pywikibot-tests. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION TASK DETAIL https://phabricator.wikimedia.org/T364841 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel

[Pywikipedia-bugs] [Maniphest] [Created] T364840: Installing Pillow fails for Python 3.13 and 3.14

2024-05-14 Thread Xqt
Xqt created this task. Xqt added projects: Pywikibot, Pywikibot-tests, Upstream. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Pillow 8.1 -- D:\>py -3.13 -m pip install "Pillow==8.1" Collecting Pillow==8.1 Downl

[Pywikipedia-bugs] [Maniphest] [Triaged] T364840: Installing Pillow fails for Python 3.13 and 3.14

2024-05-14 Thread Xqt
Xqt triaged this task as "High" priority. TASK DETAIL https://phabricator.wikimedia.org/T364840 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, Xqt, pywikibot-bugs-list, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH

[Pywikipedia-bugs] [Maniphest] [Closed] T364812: Add Python 3.14 to GitHub action test matrix

2024-05-14 Thread Xqt
Xqt claimed this task. Xqt closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T364812 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, pywikibot-bugs-list, Xqt, mevo, Isabelladantes1983, Th

[Pywikipedia-bugs] [Maniphest] [Closed] T364692: github doctest action fails for MacOS with Python 3.7 and pypi3.7

2024-05-14 Thread Xqt
Xqt closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T364692 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, pywikibot-bugs-list, Xqt, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstr

[Pywikipedia-bugs] [Maniphest] [Triaged] T364812: Add Python 3.14 to GitHub action test matrix

2024-05-13 Thread Xqt
Xqt triaged this task as "Low" priority. TASK DETAIL https://phabricator.wikimedia.org/T364812 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, pywikibot-bugs-list, Xqt, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH

[Pywikipedia-bugs] [Maniphest] [Created] T364812: Add Python 3.14 to GitHub action test matrix

2024-05-13 Thread Xqt
Xqt created this task. Xqt added projects: Pywikibot, Pywikibot-tests. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Python 3.14 is under development, see https://docs.python.org/3.14/; add it to our GitHub action test matrix. TASK DETAIL https

[Pywikipedia-bugs] [Maniphest] [Updated] T87014: Generator returns the same pages multiple times each time data is in the requests

2024-05-13 Thread Xqt
Xqt added a project: TestMe. TASK DETAIL https://phabricator.wikimedia.org/T87014 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Dvorapa, Xqt, gerritbot, jayvdb, pywikibot-bugs-list, Mpaa, Aklapper, XZise, mevo, PotsdamLamb, Jyoo1011

[Pywikipedia-bugs] [Maniphest] [Closed] T128981: -logevents command line argument syntax allows specifying limit, however -limit exists for that purpose

2024-05-13 Thread Xqt
Xqt closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T128981 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, jayvdb, pywikibot-bugs-list, mevo, Isabelladantes1983, Themindcoder, Adamm71

[Pywikipedia-bugs] [Maniphest] [Closed] T364689: In pywikibot, replace.py script using -regex can't handle null replacements

2024-05-13 Thread Xqt
Xqt closed this task as "Invalid". TASK DETAIL https://phabricator.wikimedia.org/T364689 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, Aklapper, pywikibot-bugs-list, Aram, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH

[Pywikipedia-bugs] [Maniphest] [Retitled] T364692: github doctest action fails for MacOS with Python 3.7 and pypi3.7

2024-05-12 Thread Xqt
Xqt renamed this task from "github doctest action fails for MacOS with Pxthon 3.7 and pypi3.7" to "github doctest action fails for MacOS with Python 3.7 and pypi3.7". TASK DETAIL https://phabricator.wikimedia.org/T364692 EMAIL PREFERENCES https://phabricator.wikimedi

[Pywikipedia-bugs] [Maniphest] [Updated] T364689: In pywikibot, replace.py script using -regex can't handle null replacements

2024-05-12 Thread Xqt
Xqt removed a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T364689 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, Aklapper, pywikibot-bugs-list, Aram, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH

[Pywikipedia-bugs] [Maniphest] [Claimed] T364692: github doctest action fails for MacOS with Pxthon 3.7 and pypi3.7

2024-05-12 Thread Xqt
Xqt claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T364692 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, pywikibot-bugs-list, Xqt, mevo, Isabelladantes1983, Themindcoder, Adamm71, Jersione, Hellket777

[Pywikipedia-bugs] [Maniphest] [Triaged] T364692: github doctest action fails for MacOS with Pxthon 3.7 and pypi3.7

2024-05-12 Thread Xqt
Xqt triaged this task as "High" priority. TASK DETAIL https://phabricator.wikimedia.org/T364692 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, pywikibot-bugs-list, Xqt, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH

[Pywikipedia-bugs] [Maniphest] [Created] T364692: github doctest action fails for MacOS with Pxthon 3.7 and pypi3.7

2024-05-12 Thread Xqt
Xqt created this task. Xqt added projects: Pywikibot, Pywikibot-tests. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION The Python installation fails lately: Version 3.7 was not found in the local cache Error: The version '3.7

[Pywikipedia-bugs] [Maniphest] [Commented On] T364689: In pywikibot, replace.py script using -regex can't handle null replacements

2024-05-12 Thread Xqt
Xqt added a comment. > I just noticed that replace.py script of pywikibot can't replace your pattern with null. No it works with empty pattern like this but I guess there is somethin wrong with the generator. For example tr the following command pwb -simulate repl

[Pywikipedia-bugs] [Maniphest] [Claimed] T364640: common_information fails if there are multiple language templates

2024-05-11 Thread Xqt
Xqt claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T364640 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Ricordisamoa, Aklapper, Xqt, pywikibot-bugs-list, mevo, Isabelladantes1983, Themindcoder, Adamm71, Jersione

[Pywikipedia-bugs] [Maniphest] [Triaged] T364640: common_information fails if there are multiple language templates

2024-05-10 Thread Xqt
Xqt triaged this task as "Medium" priority. Xqt changed the subtype of this task from "Task" to "Bug Report". TASK DETAIL https://phabricator.wikimedia.org/T364640 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt C

[Pywikipedia-bugs] [Maniphest] [Created] T364640: common_information fails if there are multiple language templates

2024-05-10 Thread Xqt
Xqt created this task. Xqt added projects: Pywikibot, Pywikibot-Scripts. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION run commons_template: `pwb -simulate -site:commons commons_information -page:"File:!!полковник Киборт Л Л вик

[Pywikipedia-bugs] [Maniphest] [Commented On] T364630: excluding categories from the pagegenerators

2024-05-10 Thread Xqt
Xqt added a comment. @Rubin: We have PetScanPageGenerator <https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.pagegenerators.html#pagegenerators.PetScanPageGenerator> implemented but without the "Negative categories" and not as pagegenerators option <https:

[Pywikipedia-bugs] [Maniphest] [Updated] T364630: excluding categories from the pagegenerators

2024-05-10 Thread Xqt
Xqt added a comment. We haven't such filter yet but there is already a feature request to implement it for all filters in T103779 <https://phabricator.wikimedia.org/T103779>. TASK DETAIL https://phabricator.wikimedia.org/T364630 EMAIL PREFERENCES https://phabricator.wikimed

[Pywikipedia-bugs] [Maniphest] [Commented On] T349269: commons_information.py Help Message Does not Contain Enough Information

2024-05-10 Thread Xqt
Xqt added a comment. Great! Thank you Rubin. TASK DETAIL https://phabricator.wikimedia.org/T349269 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin, Xqt Cc: Rubin, Xqt, Rubin16, Ricordisamoa, Aklapper, pywikibot-bugs-list, Enag2000, mevo

[Pywikipedia-bugs] [Maniphest] [Closed] T364393: pywikibot does not handle properly 502 Server Error reading pages

2024-05-10 Thread Xqt
Xqt closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T364393 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: JJMC89, matej_suchanek, Xqt, Aklapper, Masti, pywikibot-bugs-list, mevo, PotsdamLamb

[Pywikipedia-bugs] [Maniphest] [Closed] T364275: Pywikibot does not continue after timeout

2024-05-10 Thread Xqt
Xqt closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T364275 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, Aklapper, pywikibot-bugs-list, JAnD, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH

[Pywikipedia-bugs] [Maniphest] [Claimed] T107141: SectionError exception nowhere raised

2024-05-10 Thread Xqt
Xqt claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T107141 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, Aklapper, pywikibot-bugs-list, XZise, mevo, Isabelladantes1983, Themindcoder, Adamm71, Jersione, Hellket777

[Pywikipedia-bugs] [Maniphest] [Commented On] T107141: SectionError exception nowhere raised

2024-05-09 Thread Xqt
Xqt added a comment. I guess this should be done in ‘loadrevisions‘ where NoPageError is raised too. TASK DETAIL https://phabricator.wikimedia.org/T107141 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, Aklapper, pywikibot-bugs-list

[Pywikipedia-bugs] [Maniphest] [Triaged] T364275: Pywikibot does not continue after timeout

2024-05-09 Thread Xqt
Xqt triaged this task as "High" priority. TASK DETAIL https://phabricator.wikimedia.org/T364275 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, Aklapper, pywikibot-bugs-list, JAnD, mevo, Isabelladantes1983, Themindcode

[Pywikipedia-bugs] [Maniphest] [Claimed] T364275: Pywikibot does not continue after timeout

2024-05-09 Thread Xqt
Xqt claimed this task. Xqt added a comment. The problem is similar to T364393 <https://phabricator.wikimedia.org/T364393>. TASK DETAIL https://phabricator.wikimedia.org/T364275 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, Ak

[Pywikipedia-bugs] [Maniphest] [Commented On] T364393: pywikibot does not handle properly 502 Server Error reading pages

2024-05-09 Thread Xqt
Xqt added a comment. > I think so. But can we handle the timeouts in pw? As the other erros from API are handled with incremental delays and retry. We can only increase the socket_timeout value for real timeout exceptions. [1] Maybe within exception handling callback in http module.

[Pywikipedia-bugs] [Maniphest] [Commented On] T364393: pywikibot does not handle properly 502 Server Error reading pages

2024-05-09 Thread Xqt
Xqt added a comment. @Masti: I assumed the -start:! tested it on several wikis but didn’t run into this issue. I made a patch and both server errors should lead to retry loops. I still think this has something to do with the database conversion of MW 1.43: some api requests are very

[Pywikipedia-bugs] [Maniphest] [Triaged] T349269: commons_information.py Help Message Does not Contain Enough Information

2024-05-09 Thread Xqt
Xqt triaged this task as "High" priority. TASK DETAIL https://phabricator.wikimedia.org/T349269 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, Rubin16, Ricordisamoa, Aklapper, pywikibot-bugs-list, Enag2000, mevo, PotsdamLamb

[Pywikipedia-bugs] [Maniphest] [Commented On] T349269: commons_information.py Help Message Does not Contain Enough Information

2024-05-09 Thread Xqt
Xqt added a comment. @Ricordisamoa: can you update the bot's documentation? TASK DETAIL https://phabricator.wikimedia.org/T349269 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, Rubin16, Ricordisamoa, Aklapper, pywikibot-bugs-list

[Pywikipedia-bugs] [Maniphest] [Claimed] T364393: pywikibot does not handle properly 502 Server Error reading pages

2024-05-09 Thread Xqt
Xqt claimed this task. Xqt triaged this task as "High" priority. TASK DETAIL https://phabricator.wikimedia.org/T364393 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: JJMC89, matej_suchanek, Xqt, Aklapper, Masti, pywikibot-bugs-

[Pywikipedia-bugs] [Maniphest] [Commented On] T364393: pywikibot does not handle properly 502 Server Error reading pages

2024-05-09 Thread Xqt
Xqt added a comment. @Masti: What was your pagegenerator option when running your script? TASK DETAIL https://phabricator.wikimedia.org/T364393 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: JJMC89, matej_suchanek, Xqt, Aklapper, Masti

[Pywikipedia-bugs] [Maniphest] [Updated] T364393: pywikibot does not handle properly 502 Server Error reading pages

2024-05-08 Thread Xqt
Xqt added a project: Upstream. TASK DETAIL https://phabricator.wikimedia.org/T364393 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: matej_suchanek, Xqt, Aklapper, Masti, pywikibot-bugs-list, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH

[Pywikipedia-bugs] [Maniphest] [Updated] T364393: pywikibot does not handle properly 502 Server Error reading pages

2024-05-08 Thread Xqt
Xqt added a comment. Pretty sure this is an upstream issue. 502 indicates a connection problems. Timeout problems were found few weeks ago on MW 1.43 starting with T359427 <https://phabricator.wikimedia.org/T359427> and I made some local work-arounds to circumvent some server call

[Pywikipedia-bugs] [Maniphest] [Commented On] T364393: pywikibot does not handle properly 502 Server Error reading pages

2024-05-07 Thread Xqt
Xqt added a comment. Thank you for this investigation. TASK DETAIL https://phabricator.wikimedia.org/T364393 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, Aklapper, Masti, pywikibot-bugs-list, mevo, PotsdamLamb, Jyoo1011

[Pywikipedia-bugs] [Maniphest] [Commented On] T364393: pywikibot does not handle properly 502 Server Error reading pages

2024-05-07 Thread Xqt
Xqt added a comment. Does it helps to increase the socket timeout (read timeout i.e. the second value of that tuple)? https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.config.html#http-settings TASK DETAIL https://phabricator.wikimedia.org/T364393 EMAIL PREFERENCES https

[Pywikipedia-bugs] [Maniphest] [Claimed] T128981: -logevents command line argument syntax allows specifying limit, however -limit exists for that purpose

2024-05-06 Thread Xqt
Xqt triaged this task as "Low" priority. Xqt claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T128981 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, jayvdb, pywikibot-bugs-list, mevo, Isabella

[Pywikipedia-bugs] [Maniphest] [Declined] T78777: register_family_file() does not work on user-config.py

2024-05-06 Thread Xqt
Xqt closed this task as "Declined". Xqt added a comment. register_family_file was dropped in Pywikibot 9. Possible solutions are - families can be registered directly to the `config.family_files` - register_families_folder() <https://doc.wikimedia.org/pywikibot/m

[Pywikipedia-bugs] [Maniphest] [Updated] T192733: Remove old symlinks to trunk/rewrite/compat/pywikipedia in /shared

2024-05-06 Thread Xqt
Xqt removed a project: Pywikibot. Xqt added a comment. Not related to Pywikibot: https://codesearch.wmcloud.org/pywikibot/?q=trunk%7Crewrite%7Ccompat%7Cpywikipedia=== TASK DETAIL https://phabricator.wikimedia.org/T192733 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings

[Pywikipedia-bugs] [Maniphest] [Updated] T364275: Pywikibot does not continue after timeout

2024-05-05 Thread Xqt
Xqt added a comment. @JAnD: What is the command line you are using? Maybe this issue was introduced upstream with MW 1.43; there are knowns timeouts with wikidata since there, see T359427 <https://phabricator.wikimedia.org/T359427> for example and this patch for tests:

[Pywikipedia-bugs] [Maniphest] [Updated] T145971: ItemPage.exists() throws pywikibot.exceptions.IsRedirectPage

2024-05-05 Thread Xqt
Xqt changed the subtype of this task from "Task" to "Bug Report". TASK DETAIL https://phabricator.wikimedia.org/T145971 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: RPI2026F1, matej_suchanek, Legoktm, Dalba, ja

[Pywikipedia-bugs] [Maniphest] [Updated] T145971: ItemPage.exists() throws pywikibot.exceptions.IsRedirectPage

2024-05-05 Thread Xqt
Xqt removed a project: TestMe. TASK DETAIL https://phabricator.wikimedia.org/T145971 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: RPI2026F1, matej_suchanek, Legoktm, Dalba, jayvdb, Magul, Pasleim, gerritbot, Xqt, Aklapper, TerraCodes

[Pywikipedia-bugs] [Maniphest] [Claimed] T145971: ItemPage.exists() throws pywikibot.exceptions.IsRedirectPage

2024-05-05 Thread Xqt
Xqt claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T145971 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: RPI2026F1, matej_suchanek, Legoktm, Dalba, jayvdb, Magul, Pasleim, gerritbot, Xqt, Aklapper, TerraCodes, pywikibot

[Pywikipedia-bugs] [Maniphest] [Commented On] T184712: Page.title(as_url=True) should encode also slashes

2024-05-05 Thread Xqt
Xqt added a comment. @Yurik: Could you pleas describe the upcoming problems with that patch. You spoke about osm. Please make some samples to reproduse this issue. TASK DETAIL https://phabricator.wikimedia.org/T184712 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel

[Pywikipedia-bugs] [Maniphest] [Closed] T363943: pywikibot.exceptions.FatalServerError due to \n in User-Agent value

2024-05-02 Thread Xqt
Xqt closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T363943 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: zhuyifei1999, Xqt Cc: Aklapper, Framawiki, Xqt, pywikibot-bugs-list, mevo, Isabelladantes1983, Th

[Pywikipedia-bugs] [Maniphest] [Updated] T363943: pywikibot.exceptions.FatalServerError due to \n in User-Agent value

2024-05-02 Thread Xqt
Xqt added a comment. Hi there. I adjusted the nightly version file path in rPWBC77ecbd1a7 <https://phabricator.wikimedia.org/rPWBC77ecbd1a753a2b518d5be89c8627265caae92564> that Pywikibot could find the version information from https://pywikibot.org nightly dumps. Unfortu

[Pywikipedia-bugs] [Maniphest] [Triaged] T363943: pywikibot.exceptions.FatalServerError due to \n in User-Agent value

2024-05-02 Thread Xqt
Xqt triaged this task as "High" priority. TASK DETAIL https://phabricator.wikimedia.org/T363943 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: zhuyifei1999, Xqt Cc: Aklapper, Framawiki, Xqt, pywikibot-bugs-list, mevo, PotsdamLamb

[Pywikipedia-bugs] [Maniphest] [Assigned] T363943: pywikibot.exceptions.FatalServerError due to \n in User-Agent value

2024-05-02 Thread Xqt
Xqt assigned this task to zhuyifei1999. TASK DETAIL https://phabricator.wikimedia.org/T363943 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: zhuyifei1999, Xqt Cc: Aklapper, Framawiki, Xqt, pywikibot-bugs-list, mevo, PotsdamLamb, Jyoo1011

[Pywikipedia-bugs] [Maniphest] [Commented On] T363724: cosmetic_changes should not add line between __NOTOC__ and header

2024-04-30 Thread Xqt
Xqt added a comment. Where should be in general the right place and is it common? https://cs.wiktionary.org/w/index.php?title=%E2%98%BE=next=1301822 TASK DETAIL https://phabricator.wikimedia.org/T363724 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences

[Pywikipedia-bugs] [Maniphest] [Commented On] T363190: Most CI sysop/write tests fails with UserRightsError

2024-04-29 Thread Xqt
Xqt added a comment. https://test.wikipedia.org/wiki/Wikipedia:Requests/Permissions/Pywikibot-test TASK DETAIL https://phabricator.wikimedia.org/T363190 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: JJMC89, Legoktm, Aklapper, pywikibot

[Pywikipedia-bugs] [Maniphest] [Commented On] T363190: Most CI sysop/write tests fails with UserRightsError

2024-04-29 Thread Xqt
Xqt added a comment. Thank you @JJMC89. Seems the best is to revoke sysop group from this account and grant it to the other test account. TASK DETAIL https://phabricator.wikimedia.org/T363190 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt

[Pywikipedia-bugs] [Maniphest] [Triaged] T363651: codecov upload fails on Appveyor for Python 3.7.0

2024-04-28 Thread Xqt
Xqt triaged this task as "High" priority. TASK DETAIL https://phabricator.wikimedia.org/T363651 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, pywikibot-bugs-list, Xqt, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH

[Pywikipedia-bugs] [Maniphest] [Created] T363651: codecov upload fails on Appveyor for Python 3.7.0

2024-04-28 Thread Xqt
Xqt created this task. Xqt added projects: Pywikibot, Pywikibot-tests. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION codecov upload fails on Appveyor for Python 3.7.0: https://ci.appveyor.com/project/pywikibot-core/pywikibot/builds/49706354/job

[Pywikipedia-bugs] [Maniphest] [Updated] T363190: Most CI sysop/write tests fails with UserRightsError

2024-04-28 Thread Xqt
Xqt added a project: Upstream. Xqt added a subscriber: Legoktm. Xqt added a comment. Pywikibot-oauth is in sysop group on wikipedia:test but obviously does not have sysop rights: https://github.com/wikimedia/pywikibot/actions/runs/8860795896/job/24331964261 For tests we currently need

[Pywikipedia-bugs] [Maniphest] [Updated] T359427: site_generators_tests -v TestSiteGenerators.test_all_links fails on several wikis

2024-04-23 Thread Xqt
Xqt removed a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T359427 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, pywikibot-bugs-list, Xqt, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra

[Pywikipedia-bugs] [Maniphest] [Updated] T194138: generate_family_file test fails on Travis and AppVeyor

2024-04-23 Thread Xqt
Xqt removed a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T194138 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, gerritbot, Xqt, Framawiki, pywikibot-bugs-list, Dvorapa, mevo, PotsdamLamb, Jyoo1011

[Pywikipedia-bugs] [Maniphest] [Triaged] T363190: Most CI sysop/write tests fails with UserRightsError

2024-04-23 Thread Xqt
Xqt triaged this task as "High" priority. TASK DETAIL https://phabricator.wikimedia.org/T363190 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, pywikibot-bugs-list, Xqt, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH

[Pywikipedia-bugs] [Maniphest] [Created] T363190: Most CI sysop/write tests fails with UserRightsError

2024-04-23 Thread Xqt
Xqt created this task. Xqt added projects: Pywikibot, Pywikibot-tests. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION elif right is not None and not self.has_right(right): raise UserRightsError('User "{}" doe

[Pywikipedia-bugs] [Maniphest] [Commented On] T363163: Support "test.wikidata.org" in pywikibot

2024-04-23 Thread Xqt
Xqt added a comment. I am not able to reproduce it. Please run `pwb version` and file the result here. You can run `pwb cache -delete` to delete the api cache. TASK DETAIL https://phabricator.wikimedia.org/T363163 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel

[Pywikipedia-bugs] [Maniphest] [Reopened] T363163: Support "test.wikidata.org" in pywikibot

2024-04-23 Thread Xqt
Xqt reopened this task as "Open". Xqt added a project: TestMe. TASK DETAIL https://phabricator.wikimedia.org/T363163 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, Wargo, Aklapper, pywikibot-bugs-list, Aram, mevo, PotsdamLamb,

[Pywikipedia-bugs] [Maniphest] [Closed] T363163: Support "test.wikidata.org" in pywikibot

2024-04-23 Thread Xqt
Xqt closed this task as "Invalid". Xqt added a comment. @Aram: What was your user-config.py entry? You can create the site by `pywikibot.Site('wikidata:test')` and can use test.wikidata.org as the default site via pwb wrapper: `pwb -site:wikidata:test ` TASK DETA

  1   2   3   4   5   6   7   8   9   10   >