Page MenuHomePhabricator

Xqt
Pywikibot developer

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Thursday

  • Clear sailing ahead.

User Details

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

Recent Activity

Today

Xqt added a comment to T364689: In pywikibot, replace.py script using -regex can't handle null replacements.

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: In pywikibot, replace.py script using -regex can't handle null replacements.

@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: In pywikibot, replace.py script using -regex can't handle null replacements.
Tue, May 21, 12:30 PM · Pywikibot-replace.py, Pywikibot
Xqt added a comment to T364689: In pywikibot, replace.py script using -regex can't handle null replacements.

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: In pywikibot, replace.py script using -regex can't handle null replacements.
Tue, May 21, 6:58 AM · Pywikibot-replace.py, Pywikibot
Xqt added a comment to T364689: In pywikibot, replace.py script using -regex can't handle null replacements.

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: In pywikibot, replace.py script using -regex can't handle null replacements.

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

Yesterday

Xqt added a comment to T364689: In pywikibot, replace.py script using -regex can't handle null replacements.

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: In pywikibot, replace.py script using -regex can't handle null replacements.

@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: In pywikibot, replace.py script using -regex can't handle null replacements.

@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 · Patch-For-Review, 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 · Patch-For-Review, 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 · Patch-For-Review, 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 · Patch-For-Review, 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: In pywikibot, replace.py script using -regex can't handle null replacements 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: In pywikibot, replace.py script using -regex can't handle null replacements: 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: In pywikibot, replace.py script using -regex can't handle null replacements.

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

Fri, May 10

Xqt triaged T364640: common_information fails if there are multiple language templates as Medium priority.
Fri, May 10, 4:41 PM · Pywikibot-Scripts, Pywikibot
Xqt created T364640: common_information fails if there are multiple language templates.
Fri, May 10, 4:40 PM · Pywikibot-Scripts, Pywikibot
Xqt added a comment to T364630: excluding categories from the pagegenerators .

@Rubin: We have PetScanPageGenerator implemented but without the "Negative categories" and not as pagegenerators option. But could this be a way to go?

Fri, May 10, 4:28 PM · Pywikibot, Pywikibot-pagegenerators.py, Pywikibot-Scripts
Xqt added a comment to T364630: excluding categories from the pagegenerators .

We haven't such filter yet but there is already a feature request to implement it for all filters in T103779 and T219282.

Fri, May 10, 4:12 PM · Pywikibot, Pywikibot-pagegenerators.py, Pywikibot-Scripts
Xqt added a comment to T349269: commons_information.py Help Message Does not Contain Enough Information.

Great! Thank you Rubin.

Fri, May 10, 2:59 PM · Pywikibot-Documentation, Pywikibot
Xqt closed T364393: pywikibot does not handle properly 502 Server Error reading pages as Resolved.
Fri, May 10, 10:03 AM · Pywikibot
Xqt closed T364275: Pywikibot does not continue after timeout as Resolved.
Fri, May 10, 10:02 AM · Pywikibot
Xqt claimed T107141: SectionError exception nowhere raised.
Fri, May 10, 9:53 AM · Pywikibot

Thu, May 9

Xqt added a comment to T107141: SectionError exception nowhere raised.
Thu, May 9, 3:01 PM · Pywikibot
Xqt triaged T364275: Pywikibot does not continue after timeout as High priority.
Thu, May 9, 2:52 PM · Pywikibot
Xqt claimed T364275: Pywikibot does not continue after timeout.

The problem is similar to T364393.

Thu, May 9, 2:44 PM · Pywikibot
Xqt added a comment to T364393: pywikibot does not handle properly 502 Server Error reading pages.

I think so. But can we handle the timeouts in pw? As the other erros from API are handled with incremental delays and retry.

Thu, May 9, 2:36 PM · Pywikibot
Xqt added a comment to T364393: pywikibot does not handle properly 502 Server Error reading pages.

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

Thu, May 9, 2:01 PM · Pywikibot
Xqt triaged T349269: commons_information.py Help Message Does not Contain Enough Information as High priority.
Thu, May 9, 12:27 PM · Pywikibot-Documentation, Pywikibot
Xqt added a comment to T349269: commons_information.py Help Message Does not Contain Enough Information.

@Ricordisamoa: can you update the bot's documentation?

Thu, May 9, 12:27 PM · Pywikibot-Documentation, Pywikibot
Xqt claimed T364393: pywikibot does not handle properly 502 Server Error reading pages.
Thu, May 9, 10:09 AM · Pywikibot
Xqt added a comment to T364393: pywikibot does not handle properly 502 Server Error reading pages.

@Masti: What was your pagegenerator option when running your script?

Thu, May 9, 9:02 AM · Pywikibot
Xqt added a project to T364393: pywikibot does not handle properly 502 Server Error reading pages: Upstream.
Thu, May 9, 2:11 AM · Pywikibot
Xqt added a comment to T364393: pywikibot does not handle properly 502 Server Error reading pages.

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 and I made some local work-arounds to circumvent some server calls. See the underlying task due to that issue.

Thu, May 9, 2:09 AM · Pywikibot

Tue, May 7

Xqt added a comment to T364393: pywikibot does not handle properly 502 Server Error reading pages.

Thank you for this investigation.

Tue, May 7, 9:57 PM · Pywikibot
Xqt added a comment to T364393: pywikibot does not handle properly 502 Server Error reading pages.

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

Tue, May 7, 5:54 PM · Pywikibot
Xqt moved T128981: -logevents command line argument syntax allows specifying limit, however -limit exists for that purpose from Backlog to Needs Review on the Pywikibot board.
Tue, May 7, 5:12 AM · Pywikibot, Pywikibot-pagegenerators.py
Xqt claimed T128981: -logevents command line argument syntax allows specifying limit, however -limit exists for that purpose.
Tue, May 7, 4:59 AM · Pywikibot, Pywikibot-pagegenerators.py

Mon, May 6

Xqt closed T78777: register_family_file() does not work on user-config.py as Declined.

register_family_file was dropped in Pywikibot 9. Possible solutions are

Mon, May 6, 4:35 PM · Regression, Pywikibot
Xqt removed a project from T192733: Remove old symlinks to trunk/rewrite/compat/pywikipedia in /shared: Pywikibot.

Not related to Pywikibot:
https://codesearch.wmcloud.org/pywikibot/?q=trunk%7Crewrite%7Ccompat%7Cpywikipedia&files=&excludeFiles=&repos=

Mon, May 6, 4:25 PM · Pywikibot, cloud-services-team, Toolforge

Sun, May 5

Xqt added a comment to T364275: Pywikibot does not continue after timeout.

@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 for example
and this patch for tests: https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1022548

Sun, May 5, 4:31 PM · Pywikibot
Xqt changed the subtype of T145971: ItemPage.exists() throws pywikibot.exceptions.IsRedirectPage from "Task" to "Bug Report".
Sun, May 5, 3:41 PM · Patch-For-Review, Pywikibot-Wikidata, Pywikibot
Xqt removed a project from T145971: ItemPage.exists() throws pywikibot.exceptions.IsRedirectPage: TestMe.
Sun, May 5, 3:41 PM · Patch-For-Review, Pywikibot-Wikidata, Pywikibot
Xqt claimed T145971: ItemPage.exists() throws pywikibot.exceptions.IsRedirectPage.
Sun, May 5, 3:38 PM · Patch-For-Review, Pywikibot-Wikidata, Pywikibot
Xqt added a comment to T184712: Page.title(as_url=True) should encode also slashes.

@Yurik: Could you pleas describe the upcoming problems with that patch. You spoke about osm. Please make some samples to reproduse this issue.

Sun, May 5, 12:42 PM · Patch-Needs-Improvement, Pywikibot

Fri, May 3

Xqt closed T363943: pywikibot.exceptions.FatalServerError due to \n in User-Agent value as Resolved.
Fri, May 3, 4:13 AM · Pywikibot

Thu, May 2

Xqt added a comment to T363943: pywikibot.exceptions.FatalServerError due to \n in User-Agent value.

Hi there.

Thu, May 2, 8:36 AM · Pywikibot
Xqt triaged T363943: pywikibot.exceptions.FatalServerError due to \n in User-Agent value as High priority.
Thu, May 2, 8:35 AM · Pywikibot
Xqt assigned T363943: pywikibot.exceptions.FatalServerError due to \n in User-Agent value to zhuyifei1999.
Thu, May 2, 7:03 AM · Pywikibot

Wed, May 1

Xqt added a comment to T144151: Disable password based login on pwb on PAWS.

T144157 is already solved and the file content is hidden for other users. Botpassword file or oauth token aren’t more save than the cookie file I guess. 2FA can be used together with the password which gives more security. What is left to do here?

Wed, May 1, 3:25 PM · PAWS

Tue, Apr 30

Xqt added a comment to T363724: cosmetic_changes should not add line between __NOTOC__ and header.

Where should be in general the right place and is it common?
https://cs.wiktionary.org/w/index.php?title=%E2%98%BE&diff=next&oldid=1301822

Tue, Apr 30, 2:23 PM · Pywikibot, Pywikibot-cosmetic-changes.py

Mon, Apr 29

Xqt added a comment to T363190: Most CI sysop/write tests fails with UserRightsError.

https://test.wikipedia.org/wiki/Wikipedia:Requests/Permissions/Pywikibot-test

Mon, Apr 29, 1:14 PM · Pywikibot-tests, Pywikibot
Xqt added a comment to T363190: Most CI sysop/write tests fails with UserRightsError.

Thank you @JJMC89. Seems the best is to revoke sysop group from this account and grant it to the other test account.

Mon, Apr 29, 6:05 AM · Pywikibot-tests, Pywikibot

Sun, Apr 28

Xqt triaged T363651: codecov upload fails on Appveyor for Python 3.7.0 as High priority.
Sun, Apr 28, 4:34 PM · Pywikibot-tests, Pywikibot
Xqt moved T363651: codecov upload fails on Appveyor for Python 3.7.0 from Backlog to CI test failures on the Pywikibot-tests board.
Sun, Apr 28, 4:33 PM · Pywikibot-tests, Pywikibot
Xqt created T363651: codecov upload fails on Appveyor for Python 3.7.0.
Sun, Apr 28, 4:33 PM · Pywikibot-tests, Pywikibot
Xqt moved T363190: Most CI sysop/write tests fails with UserRightsError from Backlog to CI test failures on the Pywikibot-tests board.
Sun, Apr 28, 11:25 AM · Pywikibot-tests, Pywikibot
Xqt added a project to T363190: Most CI sysop/write tests fails with UserRightsError: Upstream.

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

Sun, Apr 28, 9:46 AM · Pywikibot-tests, Pywikibot