Page MenuHomePhabricator

Xqt
Pywikibot developer

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Friday

  • Clear sailing ahead.

User Details

User Since
Nov 16 2014, 1:34 PM (497 w, 2 d)
Availability
Available
IRC Nick
xqt
LDAP User
Xqt
MediaWiki User
Xqt [ Global Accounts ]

Recent Activity

Today

Xqt added a comment to T366036: Deprecate and remove phetools OCR from pywikibot.

@Soda: I just removed phetools from proofreadPage because it is not functional anyway.

Wed, May 29, 7:25 AM · Patch-For-Review, Pywikibot

Yesterday

Xqt triaged T366100: Page.main_authors() method gives no results for months as Medium priority.
Tue, May 28, 6:27 PM · Regression, Upstream, Pywikibot
Xqt removed a project from T366100: Page.main_authors() method gives no results for months: Pywikibot-tests.
Tue, May 28, 6:26 PM · Regression, Upstream, Pywikibot
Xqt created T366100: Page.main_authors() method gives no results for months.
Tue, May 28, 6:24 PM · Regression, Upstream, Pywikibot
Xqt claimed T366036: Deprecate and remove phetools OCR from pywikibot.
Tue, May 28, 1:17 PM · Patch-For-Review, Pywikibot
Xqt closed T366050: hacking gives false positives H233 as Resolved.
Tue, May 28, 1:15 PM · Upstream, Pywikibot-tests, Pywikibot
Xqt added a comment to T366050: hacking gives false positives H233.

I propose to remove all H23 test because they are for Python 2 I guess.

Tue, May 28, 11:34 AM · Upstream, Pywikibot-tests, Pywikibot
Xqt triaged T366036: Deprecate and remove phetools OCR from pywikibot as Medium priority.
Tue, May 28, 10:45 AM · Patch-For-Review, Pywikibot
Xqt updated subscribers of T366036: Deprecate and remove phetools OCR from pywikibot.
Tue, May 28, 10:38 AM · Patch-For-Review, Pywikibot
Xqt renamed T366050: hacking gives false positives H233 from hacking gives fallse positives H233 to hacking gives false positives H233.
Tue, May 28, 10:37 AM · Upstream, Pywikibot-tests, Pywikibot
Xqt moved T366050: hacking gives false positives H233 from Backlog to To upstream/missing upstream link on the Upstream board.
Tue, May 28, 10:37 AM · Upstream, Pywikibot-tests, Pywikibot
Xqt moved T366050: hacking gives false positives H233 from Backlog to Upstream issues on the Pywikibot-tests board.
Tue, May 28, 10:37 AM · Upstream, Pywikibot-tests, Pywikibot
Xqt triaged T366050: hacking gives false positives H233 as Medium priority.
Tue, May 28, 10:37 AM · Upstream, Pywikibot-tests, Pywikibot
Xqt created T366050: hacking gives false positives H233.
Tue, May 28, 10:36 AM · Upstream, Pywikibot-tests, Pywikibot
Xqt closed T365232: Add support for dtpwiki to Pywikibot as Resolved.
Tue, May 28, 10:25 AM · Pywikibot
Xqt closed T365232: Add support for dtpwiki to Pywikibot, a subtask of T365230: Post-creation work for dtpwiki, as Resolved.
Tue, May 28, 10:24 AM · Countervandalism-Network, Content-Transform-Team, Wiki-Setup
Xqt triaged T365954: Pywikibot attempts to run API requests which fail before login on a private wiki as High priority.
Tue, May 28, 3:44 AM · Pywikibot-login.py, Pywikibot
Xqt moved T365954: Pywikibot attempts to run API requests which fail before login on a private wiki from Backlog to Login on the Pywikibot board.
Tue, May 28, 3:43 AM · Pywikibot-login.py, Pywikibot
Xqt added a comment to T365954: Pywikibot attempts to run API requests which fail before login on a private wiki.

I am setting up a private wiki for test purposes and will investigate deeper in this matter.

Tue, May 28, 3:41 AM · Pywikibot-login.py, Pywikibot
Xqt added a comment to T366033: listpages.py: -tofile option does not work.

I have a patch for this issue (and related problems I discovered after fixing the initial symptom to get -tofile working properly) which I intend to contribute (this is my first time so it may take me a minute to figure out how all this gerrit stuff works).

What a huge and great patch, thanks a lot. I'll try to review it soon.

Tue, May 28, 3:30 AM · Patch-For-Review, Pywikibot

Sun, May 26

Xqt renamed T365943: coverage upload fails on Appveyor for Python 3.11 from coverage uploade fails on Appveyor for Python 3.11 to coverage upload fails on Appveyor for Python 3.11.
Sun, May 26, 3:43 PM · Upstream, Pywikibot-tests, Pywikibot
Xqt changed the status of T365943: coverage upload fails on Appveyor for Python 3.11 from Open to Stalled.

Waiting for upstream.

Sun, May 26, 3:43 PM · Upstream, Pywikibot-tests, Pywikibot
Xqt moved T365943: coverage upload fails on Appveyor for Python 3.11 from Backlog to Reported Upstream on the Upstream board.
Sun, May 26, 1:37 PM · Upstream, Pywikibot-tests, Pywikibot
Xqt moved T365943: coverage upload fails on Appveyor for Python 3.11 from Backlog to Upstream issues on the Pywikibot-tests board.
Sun, May 26, 1:35 PM · Upstream, Pywikibot-tests, Pywikibot
Xqt triaged T365943: coverage upload fails on Appveyor for Python 3.11 as Medium priority.
Sun, May 26, 1:35 PM · Upstream, Pywikibot-tests, Pywikibot
Xqt created T365943: coverage upload fails on Appveyor for Python 3.11.
Sun, May 26, 1:34 PM · Upstream, Pywikibot-tests, Pywikibot
Xqt closed T361999: Appveyor tests fails for Python > 3.7.0 as Resolved.

The shell script is no longer used but the tests still fails. See the other issue T363651.

Sun, May 26, 1:21 PM · Pywikibot-tests, Pywikibot
Xqt added a project to T365920: welcome.py script: use "Mediawiki:Newusermessage-signatures" page for RANDOM_SIGN variable instead of different page per project: Pywikibot-Scripts.
Sun, May 26, 1:10 PM · Pywikibot-Scripts, Pywikibot
Xqt added a comment to T365920: welcome.py script: use "Mediawiki:Newusermessage-signatures" page for RANDOM_SIGN variable instead of different page per project.

@Aram: nice idea but isn't welcome.py obsolete if this extension is installed on a site?

Sun, May 26, 1:09 PM · Pywikibot-Scripts, Pywikibot
Xqt reopened T348925: preload_sites.py script is too slow as "Open".

Reopened after patch revert due to T365942

Sun, May 26, 12:19 PM · Regression, Performance Issue, Pywikibot-Scripts, Pywikibot
Xqt closed T365942: pywiibot-tests isn't able to login on wikipedia:tests recently as Resolved.
Sun, May 26, 12:16 PM · Regression, Pywikibot-tests, Pywikibot
Xqt claimed T365942: pywiibot-tests isn't able to login on wikipedia:tests recently.
Sun, May 26, 11:54 AM · Regression, Pywikibot-tests, Pywikibot
Xqt created T365942: pywiibot-tests isn't able to login on wikipedia:tests recently.
Sun, May 26, 11:53 AM · Regression, Pywikibot-tests, Pywikibot
Xqt changed the status of T364840: Installing Pillow fails for Python 3.13 and 3.14 from Open to Stalled.

Stalled until Pillow 10.4 is released in July.

Sun, May 26, 11:21 AM · Upstream, Pywikibot-tests, Pywikibot

Sat, May 25

Xqt moved T364840: Installing Pillow fails for Python 3.13 and 3.14 from Backlog to Patch merged upstream on the Upstream board.
Sat, May 25, 10:31 PM · Upstream, Pywikibot-tests, Pywikibot
Xqt triaged T365920: welcome.py script: use "Mediawiki:Newusermessage-signatures" page for RANDOM_SIGN variable instead of different page per project as Low priority.
Sat, May 25, 7:27 PM · Pywikibot-Scripts, Pywikibot
Xqt renamed T365920: welcome.py script: use "Mediawiki:Newusermessage-signatures" page for RANDOM_SIGN variable instead of different page per project from In pywikibot's welcom.py script use "Mediawiki:Newusermessage-signatures" page for RANDOM_SIGN variable instead of different page per project to welcome.py script: use "Mediawiki:Newusermessage-signatures" page for RANDOM_SIGN variable instead of different page per project.
Sat, May 25, 7:26 PM · Pywikibot-Scripts, Pywikibot
Xqt closed T348925: preload_sites.py script is too slow as Resolved.
Sat, May 25, 3:48 PM · Regression, Performance Issue, Pywikibot-Scripts, Pywikibot
Xqt added a comment to T353387: Suggest installing requests_oauthlib instead of throwing NoUsernameError .

Hi @Xqt I've made the required changes. Raising a PR for the same

Sat, May 25, 3:16 PM · Pywikibot, good first task, Pywikibot-login.py

Wed, May 22

Xqt added a comment to T344327: pywikibot Site.upload repeats "Invalid CSRF token" and "Sleeping for" infinitely without exiting.

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 terminated it.

Was ist for 15, 30, 45, 60, 120, 180, 240, 300 seconds or sth else?

Wed, May 22, 4:04 AM · Pywikibot

Tue, May 21

Xqt closed T364689: Giving an empty string as second replacement argument in replace.py fails if Powershell is used as command prompt as Resolved.
Tue, May 21, 5:08 PM · Pywikibot-replace.py, Pywikibot
Xqt renamed T364689: Giving an empty string as second replacement argument in replace.py fails if Powershell is used as command prompt 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.
Tue, May 21, 3:24 PM · Pywikibot-replace.py, Pywikibot
Xqt added a comment to T364689: Giving an empty string as second replacement argument in replace.py fails if Powershell is used as command prompt.

@Xqt, I don't know how you found out I was using PS ...

The preleading PS gave me that hint
PSC:\Pywikibot> ...

Tue, May 21, 3:18 PM · Pywikibot-replace.py, Pywikibot
Xqt added a comment to T364689: Giving an empty string as second replacement argument in replace.py fails if Powershell is used as command prompt.

Using empty strings with PS

Try the follwing example invoking the Python command shell.

Tue, May 21, 1:32 PM · Pywikibot-replace.py, Pywikibot
Xqt added a comment to T364689: Giving an empty string as second replacement argument in replace.py fails if Powershell is used as command prompt.

@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.

Tue, May 21, 1:05 PM · Pywikibot-replace.py, Pywikibot
Xqt added a comment to T364689: Giving an empty string as second replacement argument in replace.py fails if Powershell is used as command prompt.
Tue, May 21, 12:30 PM · Pywikibot-replace.py, Pywikibot
Xqt added a comment to T364689: Giving an empty string as second replacement argument in replace.py fails if Powershell is used as command prompt.

What is the behaviour and the log with Python 3.12 without escaping?

Tue, May 21, 10:05 AM · Pywikibot-replace.py, Pywikibot
Xqt updated subscribers of T364689: Giving an empty string as second replacement argument in replace.py fails if Powershell is used as command prompt.
Tue, May 21, 6:58 AM · Pywikibot-replace.py, Pywikibot
Xqt added a comment to T364689: Giving an empty string as second replacement argument in replace.py fails if Powershell is used as command prompt.

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:

Tue, May 21, 6:56 AM · Pywikibot-replace.py, Pywikibot
Xqt added a comment to T364689: Giving an empty string as second replacement argument in replace.py fails if Powershell is used as command prompt.

Does an escaping work:
python pwb.py -simulate replace -page:ئانیشک -site:wiktionary:ckb -regex "{{wikipedia}}\n?" \"\" -summary:"Replace test"

Tue, May 21, 6:40 AM · Pywikibot-replace.py, Pywikibot

Mon, May 20

Xqt added a comment to T364689: Giving an empty string as second replacement argument in replace.py fails if Powershell is used as command prompt.

Really strange, the empty string is lost in sys.args. What is your Windows version?

Mon, May 20, 7:07 PM · Pywikibot-replace.py, Pywikibot
Xqt added a comment to T364689: Giving an empty string as second replacement argument in replace.py fails if Powershell is used as command prompt.

@Aram: could you please run pwb version to get your version information. Are you able to adopt this patch? The replacement pairs should be printed then.

Mon, May 20, 4:07 PM · Pywikibot-replace.py, Pywikibot
Xqt triaged T365340: extra new line added by noreferences.py as Low priority.
Mon, May 20, 3:12 PM · Pywikibot, Pywikibot-Scripts
Xqt added a comment to T365340: extra new line added by noreferences.py.

does the template make a difference here? It is not substituted (like {{subst:примечания}}), we just add {{примечания}} itself, its substance shouldn't affect the edit, as I understand. Please, feel free to correct me if I don't understand

Mon, May 20, 3:11 PM · Pywikibot, Pywikibot-Scripts
Xqt added a comment to T365340: extra new line added by noreferences.py.

@Rubin: I guess this is made by the {{примечания}} template wich adds this additional line; could you pleas check it?

Mon, May 20, 2:48 PM · Pywikibot, Pywikibot-Scripts
Xqt added a comment to T364689: Giving an empty string as second replacement argument in replace.py fails if Powershell is used as command prompt.

@Aram: please run the following command for tests:

Mon, May 20, 2:40 PM · Pywikibot-replace.py, Pywikibot
Xqt claimed T348925: preload_sites.py script is too slow.
Mon, May 20, 2:12 PM · Regression, Performance Issue, Pywikibot-Scripts, Pywikibot
Xqt added a comment to T348925: preload_sites.py script is too slow.

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 be expected with concurrent.futures.

Mon, May 20, 12:06 PM · Regression, Performance Issue, Pywikibot-Scripts, Pywikibot
Xqt added a comment to T348925: preload_sites.py script is too slow.

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 to cache the userinfo which is already used for siteinfo. The advantage is that parallel running task will also benefit from it. At userinfo method the cached request can be implemented like

Mon, May 20, 9:11 AM · Regression, Performance Issue, Pywikibot-Scripts, Pywikibot

Sun, May 19

Xqt placed T365312: remove tools.add_full_name decorator and add_decorated_full_name function up for grabs.
Sun, May 19, 1:14 PM · Pywikibot-tests, Pywikibot

Sat, May 18

Xqt updated the task description for T365312: remove tools.add_full_name decorator and add_decorated_full_name function.
Sat, May 18, 2:48 PM · Pywikibot-tests, Pywikibot
Xqt closed T365286: Documentation of tools.deprecated is missing as Resolved.
Sat, May 18, 2:40 PM · Pywikibot-Documentation, Pywikibot
Xqt claimed T365286: Documentation of tools.deprecated is missing.
Sat, May 18, 2:22 PM · Pywikibot-Documentation, Pywikibot
Xqt claimed T365312: remove tools.add_full_name decorator and add_decorated_full_name function.
Sat, May 18, 8:59 AM · Pywikibot-tests, Pywikibot
Xqt created T365312: remove tools.add_full_name decorator and add_decorated_full_name function.
Sat, May 18, 8:59 AM · Pywikibot-tests, Pywikibot

Fri, May 17

Xqt changed the status of T365232: Add support for dtpwiki to Pywikibot from Open to Stalled.

@JJMC89: better remove the other because T365230 is the blocker for the current task.

Fri, May 17, 7:02 PM · Pywikibot
Xqt changed the status of T365232: Add support for dtpwiki to Pywikibot, a subtask of T365230: Post-creation work for dtpwiki, from Open to Stalled.
Fri, May 17, 7:01 PM · Countervandalism-Network, Content-Transform-Team, Wiki-Setup
Xqt triaged T365286: Documentation of tools.deprecated is missing as Medium priority.
Fri, May 17, 6:50 PM · Pywikibot-Documentation, Pywikibot
Xqt created T365286: Documentation of tools.deprecated is missing.
Fri, May 17, 6:50 PM · Pywikibot-Documentation, Pywikibot
Xqt closed T364640: common_information fails if there are multiple language templates as Resolved.
Fri, May 17, 6:30 PM · Pywikibot-Scripts, Pywikibot
Xqt claimed T365199: botMayEdit() raises UnsupportedPageError for Page('Talk:Israeli invasion of the Gaza Strip (2023–present)') on the English Wikipedia.

The design of Page.templates() as well as Page.itertemplates() are incluenced from compat version where only templates (ns 10) are given. That might be the reason why those both page methods do not support a namespaces parameter like pagetemplates do and the documentation also has only templates in mind: Return a list of/Iterate Page objects for templates used on this Page. Template parameters are ignored. This method only returns embedded templates, ...

Fri, May 17, 2:30 PM · Patch-For-Review, Pywikibot
Xqt triaged T365199: botMayEdit() raises UnsupportedPageError for Page('Talk:Israeli invasion of the Gaza Strip (2023–present)') on the English Wikipedia as High priority.
Fri, May 17, 2:29 PM · Patch-For-Review, Pywikibot
Xqt added a parent task for T365220: Create Wikipedia Central Dusun: T365232: Add support for dtpwiki to Pywikibot.
Fri, May 17, 1:29 PM · MW-1.43-notes (1.43.0-wmf.6; 2024-05-21), Wiki-Setup (Create)
Xqt added a subtask for T365232: Add support for dtpwiki to Pywikibot: T365220: Create Wikipedia Central Dusun.
Fri, May 17, 1:28 PM · Pywikibot
Xqt closed T365247: pep8-naming release 0.14.0 fails with Python 3.7 as Resolved.
Fri, May 17, 1:27 PM · Pywikibot-tests, Pywikibot
Xqt claimed T365247: pep8-naming release 0.14.0 fails with Python 3.7.
Fri, May 17, 1:09 PM · Pywikibot-tests, Pywikibot
Xqt created T365247: pep8-naming release 0.14.0 fails with Python 3.7.
Fri, May 17, 1:08 PM · Pywikibot-tests, Pywikibot

Thu, May 16

Xqt closed T107141: SectionError exception nowhere raised as Resolved.
Thu, May 16, 2:27 PM · Pywikibot

Tue, May 14

Xqt moved T364841: Pywikibot tests sometimes hangs on deletionbot_tests.TestDeletionBot.test_dry() from Backlog to Login on the Pywikibot board.
Tue, May 14, 11:38 AM · Pywikibot-tests, Pywikibot
Xqt updated the task description for T364841: Pywikibot tests sometimes hangs on deletionbot_tests.TestDeletionBot.test_dry().
Tue, May 14, 11:38 AM · Pywikibot-tests, Pywikibot
Xqt triaged T364841: Pywikibot tests sometimes hangs on deletionbot_tests.TestDeletionBot.test_dry() as High priority.
Tue, May 14, 11:34 AM · Pywikibot-tests, Pywikibot
Xqt created T364841: Pywikibot tests sometimes hangs on deletionbot_tests.TestDeletionBot.test_dry().
Tue, May 14, 11:34 AM · Pywikibot-tests, Pywikibot
Xqt moved T364840: Installing Pillow fails for Python 3.13 and 3.14 from Backlog to Upstream issues on the Pywikibot board.
Tue, May 14, 11:31 AM · Upstream, Pywikibot-tests, Pywikibot
Xqt moved T364840: Installing Pillow fails for Python 3.13 and 3.14 from Backlog to Upstream issues on the Pywikibot-tests board.
Tue, May 14, 11:30 AM · Upstream, Pywikibot-tests, Pywikibot
Xqt triaged T364840: Installing Pillow fails for Python 3.13 and 3.14 as High priority.
Tue, May 14, 11:29 AM · Upstream, Pywikibot-tests, Pywikibot
Xqt created T364840: Installing Pillow fails for Python 3.13 and 3.14.
Tue, May 14, 11:29 AM · Upstream, Pywikibot-tests, Pywikibot
Xqt closed T364812: Add Python 3.14 to GitHub action test matrix as Resolved.
Tue, May 14, 9:55 AM · Pywikibot-tests, Pywikibot
Xqt closed T364692: github doctest action fails for MacOS with Python 3.7 and pypi3.7 as Resolved.
Tue, May 14, 7:07 AM · Pywikibot-tests, Pywikibot
Xqt triaged T364812: Add Python 3.14 to GitHub action test matrix as Low priority.
Tue, May 14, 5:16 AM · Pywikibot-tests, Pywikibot
Xqt created T364812: Add Python 3.14 to GitHub action test matrix.
Tue, May 14, 5:16 AM · Pywikibot-tests, Pywikibot

Mon, May 13

Xqt added a project to T87014: Generator returns the same pages multiple times each time data is in the requests: TestMe.
Mon, May 13, 10:48 PM · TestMe, Patch-Needs-Improvement, Pywikibot
Xqt closed T128981: -logevents command line argument syntax allows specifying limit, however -limit exists for that purpose as Resolved.
Mon, May 13, 6:05 PM · Pywikibot, Pywikibot-pagegenerators.py
Xqt closed T364689: Giving an empty string as second replacement argument in replace.py fails if Powershell is used as command prompt as Invalid.
Mon, May 13, 6:02 PM · Pywikibot-replace.py, Pywikibot

Sun, May 12

Xqt renamed T364692: github doctest action fails for MacOS with Python 3.7 and pypi3.7 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.
Sun, May 12, 10:04 PM · Pywikibot-tests, Pywikibot
Xqt removed a project from T364689: Giving an empty string as second replacement argument in replace.py fails if Powershell is used as command prompt: Patch-For-Review.
Sun, May 12, 3:24 PM · Pywikibot-replace.py, Pywikibot
Xqt claimed T364692: github doctest action fails for MacOS with Python 3.7 and pypi3.7.
Sun, May 12, 3:23 PM · Pywikibot-tests, Pywikibot
Xqt triaged T364692: github doctest action fails for MacOS with Python 3.7 and pypi3.7 as High priority.
Sun, May 12, 2:54 PM · Pywikibot-tests, Pywikibot
Xqt created T364692: github doctest action fails for MacOS with Python 3.7 and pypi3.7.
Sun, May 12, 2:54 PM · Pywikibot-tests, Pywikibot
Xqt added a comment to T364689: Giving an empty string as second replacement argument in replace.py fails if Powershell is used as command prompt.

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

Sun, May 12, 1:50 PM · Pywikibot-replace.py, Pywikibot

Sat, May 11

Xqt claimed T364640: common_information fails if there are multiple language templates.
Sat, May 11, 7:21 PM · Pywikibot-Scripts, Pywikibot