[Pywikipedia-bugs] [Maniphest] [Created] T113596: reflinks.py work with old user agent
Rubin16 created this task. Rubin16 added a subscriber: Rubin16. Rubin16 added a project: pywikibot-core. Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION When reflinks.py works, sometimes web pages return information that "You use an outdated browser" as a title of the page. I haven't found where user agent of the bot is included - is it possible to update it? TASK DETAIL https://phabricator.wikimedia.org/T113596 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, jayvdb ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Changed Subscribers] T118674: Pywikibot reflinks.py doesn't work cause of Unicode decoding error
Rubin16 added a subscriber: Rubin16. Herald added a subscriber: Base. TASK DETAIL https://phabricator.wikimedia.org/T118674 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Base, Rubin16, Aklapper, StudiesWorld, MaxBioHazard, pywikibot-bugs-list ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T113596: reflinks.py work with old user agent
Rubin16 added a comment. https://ru.wikipedia.org/w/index.php?diff=72816694&oldid=72804830 https://ru.wikipedia.org/w/index.php?diff=73531250&oldid=73527279 "Устаревший или неподдерживаемый веб-обозреватель" in Russian means "outdated browser" TASK DETAIL https://phabricator.wikimedia.org/T113596 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: jayvdb, Aklapper, pywikibot-bugs-list, Rubin16, Jay8g ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Changed Subscribers] T111300: Convert reflinks to requests
Rubin16 added a subscriber: Rubin16. TASK DETAIL https://phabricator.wikimedia.org/T111300 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb, Rubin16 Cc: Rubin16, Tokencolour, Beta16, pywikibot-bugs-list, jayvdb, Aklapper ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T128951: reflinks.py doesn't check existing "autogenerated" tags
Rubin16 created this task. Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION For example, have a look at the diff: https://ru.wikipedia.org/w/index.php?title=%D0%AD%D0%BA%D0%BE%D0%BD%D0%BE%D0%BC%D0%B8%D0%BA%D0%B0_%D0%A3%D0%BA%D1%80%D0%B0%D0%B8%D0%BD%D1%8B&diff=76293350&oldid=76247022 The bot assigned ref-tags "autogenerated2", "autogenerated3", "autogenerated4" but those refnames were already used in the article and that resulted in the error - the same refname assigned to different links. Fortunately, the bot fix it itself during the next edits: https://ru.wikipedia.org/w/index.php?title=%D0%AD%D0%BA%D0%BE%D0%BD%D0%BE%D0%BC%D0%B8%D0%BA%D0%B0_%D0%A3%D0%BA%D1%80%D0%B0%D0%B8%D0%BD%D1%8B&diff=76341806&oldid=76293350 https://ru.wikipedia.org/w/index.php?title=%D0%AD%D0%BA%D0%BE%D0%BD%D0%BE%D0%BC%D0%B8%D0%BA%D0%B0_%D0%A3%D0%BA%D1%80%D0%B0%D0%B8%D0%BD%D1%8B&diff=76381201&oldid=76341806 But I think it will be more correct to check existing refnames before they are assigned by the script TASK DETAIL https://phabricator.wikimedia.org/T128951 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, pywikibot-core, Rubin16, jayvdb ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T159645: http response doesn't contain a charset
Rubin16 created this task.Rubin16 added a project: Pywikibot-core.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONreflinks.py seems to be completely non-working now: you can try pwb.py reflinks.py -lang:ru -family:wikipedia -start:! -v -ignorepdf I get unicode decode errors, I also got this one: WARNING: Http response status 404 WARNING : Redirect 404 : http://www.billboard.com/news/richard-s-prayer-stays-atop-u-k-chart-949770.story Http response doesn't contain a charset. Traceback (most recent call last): File "/srv/paws/pwb/pwb.py", line 263, in if not main(): File "/srv/paws/pwb/pwb.py", line 257, in main run_python_file(filename, [filename] + args, argvu, file_package) File "/srv/paws/pwb/pwb.py", line 121, in run_python_file main_mod.__dict__) File "/srv/paws/pwb/scripts/reflinks.py", line 797, in main() File "/srv/paws/pwb/scripts/reflinks.py", line 793, in main bot.run() File "/srv/paws/pwb/scripts/reflinks.py", line 605, in run linkedpagetext = self.NON_HTML.sub(b'', linkedpagetext) TypeError: can't use a bytes pattern on a string-like object Dropped throttle(s). CRITICAL: Closing network session. Network session closed. I tried to start script from localhost, from Wikimedia Labs and using PAWS but it doesn't help. In this case the error relates to this article: https://ru.wikipedia.org/wiki/(You_Drive_Me)_Crazy But it crashes practically every edit. Rubinbot@PAWS:~$ pwb.py version Pywikibot: [https] r-pywikibot-core.git (785fee8, g7905, 2017/03/04, 21:00:12, n/a) Release version: 3.0-dev requests version: 2.13.0 cacerts: /srv/paws/lib/python3.4/site-packages/requests/cacert.pem certificate test: ok Python: 3.4.2 (default, Oct 8 2014, 10:45:20) [GCC 4.9.1] PYWIKIBOT2_DIR: /srv/paws PYWIKIBOT2_DIR_PWB: /srv/paws/pwb PYWIKIBOT2_NO_USER_CONFIG: Not set Config base dir: /srv/paws Usernames for family "commons": *: Rubinbot (no sysop configured) Usernames for family "mediawiki": *: Rubinbot (no sysop configured) Usernames for family "wikiquote": *: Rubinbot (no sysop configured) Usernames for family "wikimedia": *: Rubinbot (no sysop configured) Usernames for family "wiktionary": *: Rubinbot (no sysop configured) Usernames for family "wikiversity": *: Rubinbot (no sysop configured) Usernames for family "wikiboots": *: Rubinbot (no sysop configured) Usernames for family "wikipedia": *: Rubinbot (no sysop configured) Usernames for family "wikidata": *: Rubinbot (no sysop configured) Usernames for family "meta": *: Rubinbot (no sysop configured) Usernames for family "wikisource": *: Rubinbot (no sysop configured) Rubinbot@PAWS:~$TASK DETAILhttps://phabricator.wikimedia.org/T159645EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Rubin16Cc: Aklapper, pywikibot-bugs-list, Rubin16, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, Sn1per, 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] T159645: http response doesn't contain a charset
Rubin16 triaged this task as "High" priority.Rubin16 added a comment. as the script isn't working at all: I get 5 errors per 1 editTASK DETAILhttps://phabricator.wikimedia.org/T159645EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Rubin16Cc: Aklapper, pywikibot-bugs-list, Rubin16, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, Sn1per, 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] T264575: reflinks crashing / string pattern or bytes-like object
Rubin16 created this task. Rubin16 added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION @PAWS:~$ pwb.py reflinks -start:Mark_of_the_Unicorn -verbose Python 3.6.9 (default, Jul 17 2020, 12:50:27) [GCC 8.4.0] LOADING SITE wikipedia:ru VERSION: 1.36.0-wmf.10 LOADING SITE wikipedia:ru VERSION: 1.36.0-wmf.10 Found 1 wikipedia:ru processes running, including this one. WARNING: /srv/paws/pwb/scripts/reflinks.py:499: ResourceWarning: unclosed file <_io.BufferedReader name='404-links.txt'> dead_links = codecs.open(listof404pages, 'r', 'latin_1').read() Retrieving 50 pages from wikipedia:ru. No changes were needed on [[Mark of the Unicorn]] Traceback (most recent call last): File "/srv/paws/pwb/pwb.py", line 360, in if not main(): File "/srv/paws/pwb/pwb.py", line 355, in main file_package) File "/srv/paws/pwb/pwb.py", line 74, in run_python_file main_mod.__dict__) File "/srv/paws/pwb/scripts/reflinks.py", line 818, in main() File "/srv/paws/pwb/scripts/reflinks.py", line 814, in main bot.run() File "/srv/paws/pwb/scripts/reflinks.py", line 654, in run elif not self.MIME.search(content_type): TypeError: cannot use a string pattern on a bytes-like object Dropped throttle(s). Closing network session. CRITICAL: Exiting due to uncaught exception Network session closed. @PAWS:~$ TASK DETAIL https://phabricator.wikimedia.org/T264575 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, 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] T264575: reflinks crashing / string pattern or bytes-like object
Rubin16 added a comment. @Xqt @PAWS:~$ pwb.py ~/reflinks2.py -start:Mark_of_the_Unicorn -verbose Python 3.6.9 (default, Jul 17 2020, 12:50:27) [GCC 8.4.0] LOADING SITE wikipedia:ru VERSION: 1.36.0-wmf.10 LOADING SITE wikipedia:ru VERSION: 1.36.0-wmf.10 Found 2 wikipedia:ru processes running, including this one. WARNING: /home/paws/reflinks2.py:499: ResourceWarning: unclosed file <_io.BufferedReader name='404-links.txt'> dead_links = codecs.open(listof404pages, 'r', 'latin_1').read() Retrieving 50 pages from wikipedia:ru. No changes were needed on [[Mark of the Unicorn]] Traceback (most recent call last): File "/srv/paws/pwb/pwb.py", line 360, in if not main(): File "/srv/paws/pwb/pwb.py", line 355, in main file_package) File "/srv/paws/pwb/pwb.py", line 74, in run_python_file main_mod.__dict__) File "/home/paws/reflinks2.py", line 818, in main() File "/home/paws/reflinks2.py", line 814, in main bot.run() File "/home/paws/reflinks2.py", line 637, in run tmp = s.group('enc').strip("\"' ").lower() TypeError: a bytes-like object is required, not 'str' Dropped throttle(s). Closing network session. CRITICAL: Exiting due to uncaught exception Network session closed. TASK DETAIL https://phabricator.wikimedia.org/T264575 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Closed] T264575: reflinks crashing / string pattern or bytes-like object
Rubin16 closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T264575 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis, mys_721tx, 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] T264575: reflinks crashing / string pattern or bytes-like object
Rubin16 added a comment. seems to be working, let's merge it and I will test it for a longer period of time. Thanks a lot @Xqt TASK DETAIL https://phabricator.wikimedia.org/T264575 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Triaged] T265928: 'ReferencesRobot' object has no attribute 'dead_links' in pwb 5.0.0
Rubin16 triaged this task as "Low" priority. TASK DETAIL https://phabricator.wikimedia.org/T265928 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, 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] T265928: 'ReferencesRobot' object has no attribute 'dead_links' in pwb 5.0.0
Rubin16 created this task. Rubin16 added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION @PAWS:~$ pwb.py version Pywikibot: [https] r-pywikibot-core.git (5ebba28, g13454, 2020/10/19, 16:57:22, stable) Release version: 5.0.0 requests version: 2.24.0 cacerts: /srv/paws/lib/python3.6/site-packages/certifi/cacert.pem certificate test: ok Python: 3.6.9 (default, Jul 17 2020, 12:50:27) [GCC 8.4.0] PYWIKIBOT_DIR: /srv/paws PYWIKIBOT_DIR_PWB: /srv/paws/pwb PYWIKIBOT_NO_USER_CONFIG: Not set Config base dir: /srv/paws Usernames for family "wikiquote": *: Rubinbot Usernames for family "wikinews": *: Rubinbot Usernames for family "wikipedia": *: Rubinbot Usernames for family "wikidata": *: Rubinbot Usernames for family "commons": *: Rubinbot Usernames for family "wikibooks": *: Rubinbot Usernames for family "meta": *: Rubinbot Usernames for family "mediawiki": *: Rubinbot Usernames for family "wikiversity": *: Rubinbot Usernames for family "wikivoyage": *: Rubinbot Usernames for family "wiktionary": *: Rubinbot Usernames for family "wikisource": *: Rubinbot Usernames for family "wikimedia": *: Rubinbot @PAWS:~$ @PAWS:~$ pwb.py reflinks -always -start:убийцы_на_замену -v -debug === Pywikibot framework v5.0.0 -- Logging header === COMMAND: ['/srv/paws/pwb/scripts/reflinks.py', '-always', '-start:убийцы_на_замену', '-v', '-debug'] DATE: 2020-10-19 17:29:31.130437 UTC VERSION: [https] r-pywikibot-core.git (5ebba28, g13454, 2020/10/19, 16:57:22, n/a) SYSTEM: posix.uname_result(sysname='Linux', nodename='jupyter--52ubinbot', release='4.19.0-11-amd64', version='#1 SMP Debian 4.19.146-1 (2020-09-17)', machine='x86_64') CONFIG FILE DIR: /srv/paws PACKAGES: _brotli (/srv/paws/lib/python3.6/site-packages/brotli/_brotli.abi3.so) = ?? _cffi_backend (/srv/paws/lib/python3.6/site-packages/_cffi_backend.cpython-36m-x86_64-linux-gnu.so) = 1.14.1 _ctypes (/usr/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so) = 1.1.0 _cython_0_29_21 ([path unknown]) = ?? _decimal (/usr/lib/python3.6/lib-dynload/_decimal.cpython-36m-x86_64-linux-gnu.so) = 1.70 blinker (/srv/paws/lib/python3.6/site-packages/blinker/) = 1.4 brotli (/srv/paws/lib/python3.6/site-packages/brotli/) = ?? bs4 (/srv/paws/lib/python3.6/site-packages/bs4/) = 4.9.1 certifi (/srv/paws/lib/python3.6/site-packages/certifi/) = 2020.06.20 chardet (/srv/paws/lib/python3.6/site-packages/chardet/) = 3.0.4 cryptography (/srv/paws/lib/python3.6/site-packages/cryptography/) = 3.0 ctypes (/usr/lib/python3.6/ctypes/) = 1.1.0 cython_runtime ([path unknown]) = ?? decimal (/usr/lib/python3.6/decimal.py) = 1.70 distutils (/usr/lib/python3.6/distutils/) = 3.6.9 idna (/srv/paws/lib/python3.6/site-packages/idna/) = 2.10 ipaddress (/usr/lib/python3.6/ipaddress.py) = 1.0 json (/usr/lib/python3.6/json/) = 2.0.9 jwt (/srv/paws/lib/python3.6/site-packages/jwt/) = 1.7.1 logging (/usr/lib/python3.6/logging/) = 0.5.1.2 lxml (/srv/paws/lib/python3.6/site-packages/lxml/) = 4.5.2 mpl_toolkits ([path unknown]) = ?? mwoauth (/srv/paws/lib/python3.6/site-packages/mwoauth/) = 0.3.7 mwparserfromhell (/srv/paws/lib/python3.6/site-packages/mwparserfromhell/) = 0.5.4 oauthlib (/srv/paws/lib/python3.6/site-packages/oauthlib/) = 3.1.0 pkg_resources (/srv/paws/lib/python3.6/site-packages/pkg_resources/) = ?? platform (/usr/lib/python3.6/platform.py) = 1.0.8 re (/usr/lib/python3.6/re.py) = 2.2.1 requests (/srv/paws/lib/python3.6/site-packages/requests/) = 2.24.0 requests_oauthlib (/srv/paws/lib/python3.6/site-packages/requests_oauthlib/) = 1.3.0 ruamel ([path unknown]) = ?? setuptools (/srv/paws/lib/python3.6/site-packages/setuptools/) = 49.2.0 six (/srv/paws/lib/python3.6/site-packages/six.py) = 1.15.0 soupsieve (/srv/paws/lib/python3.6/site-packages/soupsieve/) = 2.0.1 urllib3 (/srv/paws/lib/python3.6/site-packages/urllib3/) = 1.25.10 MODULES: 2020-10-19 17:23:18 /srv/paws/pwb/scripts/reflinks.py 2020-10-19 17:23:18 /srv/paws/pwb/setup.py 2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/__init__.py 2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/__metadata__.py 2020-10-19 17:23:18 /srv/paws/pwb/pywikibot/_wbtypes.py 2020-10-19 17:23:18 /srv/paws/pwb/pywikib
[Pywikipedia-bugs] [Maniphest] [Closed] T265928: 'ReferencesRobot' object has no attribute 'dead_links' in pwb 5.0.0
Rubin16 closed this task as "Resolved". Rubin16 added a comment. this patch works for me TASK DETAIL https://phabricator.wikimedia.org/T265928 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: JJMC89, Rubin16 Cc: Rubin, Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Triaged] T265968: reflinks.py uses incorrect edit summaries (pwb 5.0)
Rubin16 triaged this task as "Lowest" priority. TASK DETAIL https://phabricator.wikimedia.org/T265968 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, 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] T265968: reflinks.py uses incorrect edit summaries (pwb 5.0)
Rubin16 created this task. Rubin16 added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION I am using the latest version of pwb and reflinks (with just last merged changes) but it started to post incorrect edit summaries since upgrading to pwb 5.0.0: https://ru.wikipedia.org/wiki/Special:Contributions/Rubinbot Now it just adds "Pywikibot 5.0.0" but it used to have a customised edit summary in the script (i18n/reflinks.py) TASK DETAIL https://phabricator.wikimedia.org/T265968 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Closed] T265968: reflinks.py uses incorrect edit summaries (pwb 5.0)
Rubin16 closed this task as "Resolved". Rubin16 added a comment. works for me. @JJMC89 thanks for you really quick help TASK DETAIL https://phabricator.wikimedia.org/T265968 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: JJMC89, Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis, mys_721tx, 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] T266000: http.py - error_handling_callback
Rubin16 created this task. Rubin16 added projects: Pywikibot, Pywikibot-Scripts. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION @PAWS:~$ pwb.py ~/reflinks2.py -start:Центральная_избирательная_комиссия_Республики_Беларусь -v -debug === Pywikibot framework v5.0.0 -- Logging header === COMMAND: ['/home/paws/reflinks2.py', '-start:Центральная_избирательная_комиссия_Республики_Беларусь', '-v', '-debug'] DATE: 2020-10-20 12:25:26.395092 UTC VERSION: [https] r-pywikibot-core.git (5ebba28, g13454, 2020/10/19, 16:57:22, n/a) SYSTEM: posix.uname_result(sysname='Linux', nodename='jupyter--52ubinbot', release='4.19.0-11-amd64', version='#1 SMP Debian 4.19.146-1 (2020-09-17)', machine='x86_64') CONFIG FILE DIR: /srv/paws PACKAGES: __main__ (/home/paws/reflinks2.py) = ?? _brotli (/srv/paws/lib/python3.6/site-packages/brotli/_brotli.abi3.so) = ?? _cffi_backend (/srv/paws/lib/python3.6/site-packages/_cffi_backend.cpython-36m-x86_64-linux-gnu.so) = 1.14.1 _ctypes (/usr/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so) = 1.1.0 _cython_0_29_21 ([path unknown]) = ?? _decimal (/usr/lib/python3.6/lib-dynload/_decimal.cpython-36m-x86_64-linux-gnu.so) = 1.70 blinker (/srv/paws/lib/python3.6/site-packages/blinker/) = 1.4 brotli (/srv/paws/lib/python3.6/site-packages/brotli/) = ?? bs4 (/srv/paws/lib/python3.6/site-packages/bs4/) = 4.9.1 certifi (/srv/paws/lib/python3.6/site-packages/certifi/) = 2020.06.20 chardet (/srv/paws/lib/python3.6/site-packages/chardet/) = 3.0.4 cryptography (/srv/paws/lib/python3.6/site-packages/cryptography/) = 3.0 ctypes (/usr/lib/python3.6/ctypes/) = 1.1.0 cython_runtime ([path unknown]) = ?? decimal (/usr/lib/python3.6/decimal.py) = 1.70 distutils (/usr/lib/python3.6/distutils/) = 3.6.9 idna (/srv/paws/lib/python3.6/site-packages/idna/) = 2.10 ipaddress (/usr/lib/python3.6/ipaddress.py) = 1.0 json (/usr/lib/python3.6/json/) = 2.0.9 jwt (/srv/paws/lib/python3.6/site-packages/jwt/) = 1.7.1 logging (/usr/lib/python3.6/logging/) = 0.5.1.2 lxml (/srv/paws/lib/python3.6/site-packages/lxml/) = 4.5.2 mpl_toolkits ([path unknown]) = ?? mwoauth (/srv/paws/lib/python3.6/site-packages/mwoauth/) = 0.3.7 mwparserfromhell (/srv/paws/lib/python3.6/site-packages/mwparserfromhell/) = 0.5.4 oauthlib (/srv/paws/lib/python3.6/site-packages/oauthlib/) = 3.1.0 pkg_resources (/srv/paws/lib/python3.6/site-packages/pkg_resources/) = ?? platform (/usr/lib/python3.6/platform.py) = 1.0.8 re (/usr/lib/python3.6/re.py) = 2.2.1 requests (/srv/paws/lib/python3.6/site-packages/requests/) = 2.24.0 requests_oauthlib (/srv/paws/lib/python3.6/site-packages/requests_oauthlib/) = 1.3.0 ruamel ([path unknown]) = ?? setuptools (/srv/paws/lib/python3.6/site-packages/setuptools/) = 49.2.0 six (/srv/paws/lib/python3.6/site-packages/six.py) = 1.15.0 soupsieve (/srv/paws/lib/python3.6/site-packages/soupsieve/) = 2.0.1 urllib3 (/srv/paws/lib/python3.6/site-packages/urllib3/) = 1.25.10 MODULES: 2020-10-20 10:20:05 /srv/paws/pwb/setup.py 2020-10-20 10:20:05 /srv/paws/pwb/pywikibot/__init__.py 2020-10-20 10:20:05 /srv/paws/pwb/pywikibot/__metadata__.py 2020-10-20 10:20:05 /srv/paws/pwb/pywikibot/_wbtypes.py 2020-10-20 10:20:05 /srv/paws/pwb/pywikibot/bot.py 2020-10-20 10:20:05 /srv/paws/pwb/pywikibot/config2.py 2020-10-20 10:20:05 /srv/paws/pwb/pywikibot/logging.py 2020-10-20 10:20:05 /srv/paws/pwb/pywikibot/tools/__init__.py 2020-10-20 10:20:05 /srv/paws/pwb/pywikibot/tools/_unidata.py 2020-10-20 10:20:05 /srv/paws/pwb/pywikibot/daemonize.py 2020-10-20 10:20:05 /srv/paws/pwb/pywikibot/i18n.py 2020-10-20 10:20:05 /srv/paws/pwb/pywikibot/exceptions.py 2020-10-20 10:20:05 /srv/paws/pwb/pywikibot/plural.py 2020-10-20 10:20:05 /srv/paws/pwb/pywikibot/version.py 2020-07-30 19:46:59 /srv/paws/pwb/pywikibot/comms/__init__.py 2020-10-20 10:20:05 /srv/paws/pwb/pywikibot/comms/http.py 2020-10-20 10:20:05 /srv/paws/pwb/pywikibot/comms/threadedhttp.py 2020-10-20 10:20:05 /srv/paws/pwb/pywikibot/bot_choice.py 2020-10-20 10:20:05 /srv/paws/pwb/pywikibot/tools/_logging.py 2020-10-20 10:20:05 /srv/paws/pwb/pywikibot/tools/formatter.py 2020-07-30 19:46:59 /srv/paws/pwb/pywikibot/userinterfaces/__init__.py 2020-10-20 10:20:05 /srv/paws/pwb/pywikibot/userinterfaces/terminal_interface_base.py 2020-10-20 10:20:05 /srv/paws/pwb/pywikibot/userinterfaces/transliteration.py 2020-10-20 10:20:05 /srv/paws/pwb/pywikibot/userinterfaces/terminal_interface.py 2020-10-20 10:20:05 /srv/paws/pwb/pywikibot/userinterfaces/
[Pywikipedia-bugs] [Maniphest] [Triaged] T266000: http.py - error_handling_callback
Rubin16 triaged this task as "Lowest" priority. TASK DETAIL https://phabricator.wikimedia.org/T266000 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, 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] T266000: http.py - error_handling_callback
Rubin16 added a comment. In T266000#6563997 <https://phabricator.wikimedia.org/T266000#6563997>, @Mpaa wrote: > Not sure this is a pywikibot error. > Could you find out which is the ref.url it is trying to fetch in: > > f = comms.http.(ref.url, use_fake_user_agent=self._use_fake_user_agent) > > and post it here? I need some more instruction how I can do it :) sorry for asking TASK DETAIL https://phabricator.wikimedia.org/T266000 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Mpaa, Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, 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] T266000: http.py - error_handling_callback
Rubin16 added a comment. Python 3.6.9 (default, Jul 17 2020, 12:50:27) [GCC 8.4.0] LOADING SITE wikipedia:ru VERSION: 1.36.0-wmf.13 Found 1 wikipedia:ru processes running, including this one. WARNING: /home/paws/reflinks2.py:498: ResourceWarning: unclosed file <_io.BufferedReader name='404-links.txt'> listof404pages, 'r', 'latin_1').read() Retrieving 50 pages from wikipedia:ru. No changes were needed on [[Центральная избирательная комиссия Республики Беларусь]] Traceback (most recent call last): File "/home/paws/reflinks2.py", line 542, in run ref.url, use_fake_user_agent=self._use_fake_user_agent) File "/srv/paws/pwb/pywikibot/tools/__init__.py", line 1450, in wrapper return obj(*__args, **__kw) File "/srv/paws/pwb/pywikibot/comms/http.py", line 501, in fetch request.data = response File "/srv/paws/pwb/pywikibot/comms/threadedhttp.py", line 71, in data callback(self) File "/srv/paws/pwb/pywikibot/comms/http.py", line 349, in error_handling_callback raise Server414Error('Too long GET request') pywikibot.exceptions.Server414Error: Too long GET request During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/srv/paws/pwb/pwb.py", line 363, in if not main(): File "/srv/paws/pwb/pwb.py", line 358, in main file_package) File "/srv/paws/pwb/pwb.py", line 75, in run_python_file main_mod.__dict__) File "/home/paws/reflinks2.py", line 823, in main() File "/home/paws/reflinks2.py", line 819, in main bot.run() File "/home/paws/reflinks2.py", line 620, in run except pywikibot.Server414Error as e: File "/srv/paws/pwb/pywikibot/tools/__init__.py", line 1708, in __getattr__ return getattr(self._module, attr) AttributeError: module 'pywikibot' has no attribute 'Server414Error' Dropped throttle(s). Closing network session. CRITICAL: Exiting due to uncaught exception Network session closed. @PAWS:~$ TASK DETAIL https://phabricator.wikimedia.org/T266000 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Mpaa, Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, 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] T266000: http.py - error_handling_callback
Rubin16 added a comment. I think I got it, the link was: https://365info.kz/2017/03/beriku-imashevu-uporno-ne-dayut-boltatsya-bez-dela-ashimbaev TASK DETAIL https://phabricator.wikimedia.org/T266000 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Mpaa, Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, 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] T266000: http.py - error_handling_callback
Rubin16 added a comment. In T266000#6564377 <https://phabricator.wikimedia.org/T266000#6564377>, @Mpaa wrote: > Seems working, strange. > Anyhow I have added Server414Error to the managed exceptions, so the bot won't crash. The patch isn't working for me: File "/srv/paws/pwb/pywikibot/tools/__init__.py", line 1708, in __getattr__ return getattr(self._module, attr) AttributeError: module 'pywikibot' has no attribute 'Server414Error' Dropped throttle(s). Closing network session. To get a link I actually used this option: pywikibot.output(ref.url) TASK DETAIL https://phabricator.wikimedia.org/T266000 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Mpaa, Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Triaged] T266137: uncaught exception : unknown encoding / threadedhttp.py and reflinks.py
Rubin16 triaged this task as "Lowest" priority. TASK DETAIL https://phabricator.wikimedia.org/T266137 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, 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] T266137: uncaught exception : unknown encoding / threadedhttp.py and reflinks.py
Rubin16 created this task. Rubin16 added projects: Pywikibot, Pywikibot-Scripts. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION @PAWS:~$ pwb.py ~/reflinks2.py -start:Solariola_zoiai -v -debug === Pywikibot framework v5.0.0 -- Logging header === COMMAND: ['/home/paws/reflinks2.py', '-start:Solariola_zoiai', '-v', '-debug'] DATE: 2020-10-21 14:19:12.311050 UTC VERSION: [https] r-pywikibot-core.git (5ebba28, g13454, 2020/10/19, 16:57:22, n/a) SYSTEM: posix.uname_result(sysname='Linux', nodename='jupyter--52ubinbot', release='4.19.0-11-amd64', version='#1 SMP Debian 4.19.146-1 (2020-09-17)', machine='x86_64') CONFIG FILE DIR: /srv/paws PACKAGES: __main__ (/home/paws/reflinks2.py) = ?? _brotli (/srv/paws/lib/python3.6/site-packages/brotli/_brotli.abi3.so) = ?? _cffi_backend (/srv/paws/lib/python3.6/site-packages/_cffi_backend.cpython-36m-x86_64-linux-gnu.so) = 1.14.1 _ctypes (/usr/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so) = 1.1.0 _cython_0_29_21 ([path unknown]) = ?? _decimal (/usr/lib/python3.6/lib-dynload/_decimal.cpython-36m-x86_64-linux-gnu.so) = 1.70 blinker (/srv/paws/lib/python3.6/site-packages/blinker/) = 1.4 brotli (/srv/paws/lib/python3.6/site-packages/brotli/) = ?? bs4 (/srv/paws/lib/python3.6/site-packages/bs4/) = 4.9.1 certifi (/srv/paws/lib/python3.6/site-packages/certifi/) = 2020.06.20 chardet (/srv/paws/lib/python3.6/site-packages/chardet/) = 3.0.4 cryptography (/srv/paws/lib/python3.6/site-packages/cryptography/) = 3.0 ctypes (/usr/lib/python3.6/ctypes/) = 1.1.0 cython_runtime ([path unknown]) = ?? decimal (/usr/lib/python3.6/decimal.py) = 1.70 distutils (/usr/lib/python3.6/distutils/) = 3.6.9 idna (/srv/paws/lib/python3.6/site-packages/idna/) = 2.10 ipaddress (/usr/lib/python3.6/ipaddress.py) = 1.0 json (/usr/lib/python3.6/json/) = 2.0.9 jwt (/srv/paws/lib/python3.6/site-packages/jwt/) = 1.7.1 logging (/usr/lib/python3.6/logging/) = 0.5.1.2 lxml (/srv/paws/lib/python3.6/site-packages/lxml/) = 4.5.2 mpl_toolkits ([path unknown]) = ?? mwoauth (/srv/paws/lib/python3.6/site-packages/mwoauth/) = 0.3.7 mwparserfromhell (/srv/paws/lib/python3.6/site-packages/mwparserfromhell/) = 0.5.4 oauthlib (/srv/paws/lib/python3.6/site-packages/oauthlib/) = 3.1.0 pkg_resources (/srv/paws/lib/python3.6/site-packages/pkg_resources/) = ?? platform (/usr/lib/python3.6/platform.py) = 1.0.8 re (/usr/lib/python3.6/re.py) = 2.2.1 requests (/srv/paws/lib/python3.6/site-packages/requests/) = 2.24.0 requests_oauthlib (/srv/paws/lib/python3.6/site-packages/requests_oauthlib/) = 1.3.0 ruamel ([path unknown]) = ?? setuptools (/srv/paws/lib/python3.6/site-packages/setuptools/) = 49.2.0 six (/srv/paws/lib/python3.6/site-packages/six.py) = 1.15.0 soupsieve (/srv/paws/lib/python3.6/site-packages/soupsieve/) = 2.0.1 urllib3 (/srv/paws/lib/python3.6/site-packages/urllib3/) = 1.25.10 MODULES: 2020-10-21 10:24:51 /srv/paws/pwb/setup.py 2020-10-21 10:24:51 /srv/paws/pwb/pywikibot/__init__.py 2020-10-21 10:24:51 /srv/paws/pwb/pywikibot/__metadata__.py 2020-10-21 10:24:51 /srv/paws/pwb/pywikibot/_wbtypes.py 2020-10-21 10:24:51 /srv/paws/pwb/pywikibot/bot.py 2020-10-21 10:24:51 /srv/paws/pwb/pywikibot/config2.py 2020-10-21 10:24:51 /srv/paws/pwb/pywikibot/logging.py 2020-10-21 10:24:51 /srv/paws/pwb/pywikibot/tools/__init__.py 2020-10-21 10:24:51 /srv/paws/pwb/pywikibot/tools/_unidata.py 2020-10-21 10:24:51 /srv/paws/pwb/pywikibot/daemonize.py 2020-10-21 10:24:51 /srv/paws/pwb/pywikibot/i18n.py 2020-10-21 10:24:51 /srv/paws/pwb/pywikibot/exceptions.py 2020-10-21 10:24:51 /srv/paws/pwb/pywikibot/plural.py 2020-10-21 10:24:51 /srv/paws/pwb/pywikibot/version.py 2020-07-30 19:46:59 /srv/paws/pwb/pywikibot/comms/__init__.py 2020-10-21 10:24:51 /srv/paws/pwb/pywikibot/comms/http.py 2020-10-21 10:24:51 /srv/paws/pwb/pywikibot/comms/threadedhttp.py 2020-10-21 10:24:51 /srv/paws/pwb/pywikibot/bot_choice.py 2020-10-21 10:24:51 /srv/paws/pwb/pywikibot/tools/_logging.py 2020-10-21 10:24:51 /srv/paws/pwb/pywikibot/tools/formatter.py 2020-07-30 19:46:59 /srv/paws/pwb/pywikibot/userinterfaces/__init__.py 2020-10-21 10:24:51 /srv/paws/pwb/pywikibot/userinterfaces/terminal_interface_base.py 2020-10-21 10:24:51 /srv/paws/pwb/pywikibot/userinterfaces/transliteration.py 2020-10-21 10:24:51 /srv/paws/pwb/pywikibot/userinterfaces/terminal_interface.py 2020-10-21 10:24:51 /srv/paws/pwb/pywikibot/userinterfaces/terminal_interface_unix.py 2020-07-30 19:46:59 /srv/paws/pwb/pywikibot/da
[Pywikipedia-bugs] [Maniphest] [Triaged] T266411: reflinks.py work with duplicate references
Rubin16 triaged this task as "Low" priority. TASK DETAIL https://phabricator.wikimedia.org/T266411 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, 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] T266411: reflinks.py work with duplicate references
Rubin16 created this task. Rubin16 added projects: Pywikibot, Pywikibot-Scripts. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Example of the diff is here <https://ru.wikipedia.org/w/index.php?title=The_Medium&diff=109672586&oldid=109508731&diffmode=source>. The bot correctly identified that //ref name="medium 2012"// is being used twice in the article. Unfortunately, references could be defined not only in the article itself, but in the final //reference// template. I personally don't like putting all references in the end but, as I checked, the same behaviour exists not only in ru.wiki, but en.wiki, <https://en.wikipedia.org/wiki/Help:Footnotes#List-defined_references> too. I suggest adding an additional check, whether is inside of template or not and fixing the reference that is outside of the template. TASK DETAIL https://phabricator.wikimedia.org/T266411 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T98700: noreferences must recognize footnote groups
Rubin16 added a comment. @Xqt how are things going here, if you please? I have posted T55936 <https://phabricator.wikimedia.org/T55936> a long time ago and it seems to be connected: the issue moved from compat to core, unfortunately. Do I need to post a separate bug for core? Or, at least, some -nogroup option of ignoring such references could be helpful TASK DETAIL https://phabricator.wikimedia.org/T98700 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Rubin16 Cc: Rubin16, Liuxinyu970226, gerritbot, XZise, pywikibot-bugs-list, Xqt, Aklapper, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, 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] T266411: reflinks.py work with duplicate references
Rubin16 added a comment. I have updated it but it still works as before: https://ru.wikipedia.org/w/index.php?title=Участник:Rubin16/test1&diff=110157314&oldid=110157291&diffmode=source TASK DETAIL https://phabricator.wikimedia.org/T266411 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Rubin16 Cc: Rubin, Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis, mys_721tx, 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] T266411: reflinks.py work with duplicate references
Rubin16 added a comment. I have made the wrong merge of the patch: checked it now and it works correctly. https://ru.wikipedia.org/w/index.php?title=Участник:Rubin16/test1&diff=110165789&oldid=110165781&diffmode=source we can close it here, thanks a lot. TASK DETAIL https://phabricator.wikimedia.org/T266411 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Rubin16 Cc: Rubin, Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Changed Subscribers] T55936: reflinks.py work with ref group
Rubin16 added a subscriber: Xqt. Rubin16 added a comment. @Xqt I have made a page to better understand the issue: The page is here https://ru.wikipedia.org/wiki/Участник:Rubin16/test2 The bot crashes references with "group" attribute: https://ru.wikipedia.org/w/index.php?title=Участник:Rubin16/test2&diff=110177551&oldid=110177525&diffmode=source The best behaviour would be just to ignore such references, they are not widespread but are worked wrong in all cases. Do you need more information? Script output: @PAWS:~$ pwb.py ~/reflinks3.py -v -debug -start:User:Rubin16/test2 === Pywikibot framework v5.0.0 -- Logging header === COMMAND: ['/home/paws/reflinks3.py', '-v', '-debug', '-start:User:Rubin16/test2'] DATE: 2020-10-29 13:38:25.693714 UTC VERSION: [https] r-pywikibot-core.git (3fdd9eb, g13456, 2020/10/29, 13:28:21, n/a) SYSTEM: posix.uname_result(sysname='Linux', nodename='jupyter--52ubinbot', release='4.19.0-11-amd64', version='#1 SMP Debian 4.19.146-1 (2020-09-17)', machine='x86_64') CONFIG FILE DIR: /srv/paws PACKAGES: __main__ (/home/paws/reflinks3.py) = ?? _brotli (/srv/paws/lib/python3.6/site-packages/brotli/_brotli.abi3.so) = ?? _cffi_backend (/srv/paws/lib/python3.6/site-packages/_cffi_backend.cpython-36m-x86_64-linux-gnu.so) = 1.14.1 _ctypes (/usr/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so) = 1.1.0 _cython_0_29_21 ([path unknown]) = ?? _decimal (/usr/lib/python3.6/lib-dynload/_decimal.cpython-36m-x86_64-linux-gnu.so) = 1.70 blinker (/srv/paws/lib/python3.6/site-packages/blinker/) = 1.4 brotli (/srv/paws/lib/python3.6/site-packages/brotli/) = ?? bs4 (/srv/paws/lib/python3.6/site-packages/bs4/) = 4.9.1 certifi (/srv/paws/lib/python3.6/site-packages/certifi/) = 2020.06.20 chardet (/srv/paws/lib/python3.6/site-packages/chardet/) = 3.0.4 cryptography (/srv/paws/lib/python3.6/site-packages/cryptography/) = 3.0 ctypes (/usr/lib/python3.6/ctypes/) = 1.1.0 cython_runtime ([path unknown]) = ?? decimal (/usr/lib/python3.6/decimal.py) = 1.70 distutils (/usr/lib/python3.6/distutils/) = 3.6.9 idna (/srv/paws/lib/python3.6/site-packages/idna/) = 2.10 ipaddress (/usr/lib/python3.6/ipaddress.py) = 1.0 json (/usr/lib/python3.6/json/) = 2.0.9 jwt (/srv/paws/lib/python3.6/site-packages/jwt/) = 1.7.1 logging (/usr/lib/python3.6/logging/) = 0.5.1.2 lxml (/srv/paws/lib/python3.6/site-packages/lxml/) = 4.5.2 mpl_toolkits ([path unknown]) = ?? mwoauth (/srv/paws/lib/python3.6/site-packages/mwoauth/) = 0.3.7 mwparserfromhell (/srv/paws/lib/python3.6/site-packages/mwparserfromhell/) = 0.5.4 oauthlib (/srv/paws/lib/python3.6/site-packages/oauthlib/) = 3.1.0 pkg_resources (/srv/paws/lib/python3.6/site-packages/pkg_resources/) = ?? platform (/usr/lib/python3.6/platform.py) = 1.0.8 re (/usr/lib/python3.6/re.py) = 2.2.1 requests (/srv/paws/lib/python3.6/site-packages/requests/) = 2.24.0 requests_oauthlib (/srv/paws/lib/python3.6/site-packages/requests_oauthlib/) = 1.3.0 ruamel ([path unknown]) = ?? setuptools (/srv/paws/lib/python3.6/site-packages/setuptools/) = 49.2.0 six (/srv/paws/lib/python3.6/site-packages/six.py) = 1.15.0 soupsieve (/srv/paws/lib/python3.6/site-packages/soupsieve/) = 2.0.1 urllib3 (/srv/paws/lib/python3.6/site-packages/urllib3/) = 1.25.10 MODULES: 2020-10-29 13:37:50 /srv/paws/pwb/setup.py 2020-10-29 13:37:50 /srv/paws/pwb/pywikibot/__init__.py 2020-10-29 13:37:50 /srv/paws/pwb/pywikibot/__metadata__.py 2020-10-29 13:37:50 /srv/paws/pwb/pywikibot/_wbtypes.py 2020-10-29 13:37:50 /srv/paws/pwb/pywikibot/bot.py 2020-10-29 13:37:50 /srv/paws/pwb/pywikibot/config2.py 2020-10-29 13:37:50 /srv/paws/pwb/pywikibot/logging.py 2020-10-29 13:37:50 /srv/paws/pwb/pywikibot/tools/__init__.py 2020-10-29 13:37:50 /srv/paws/pwb/pywikibot/tools/_unidata.py 2020-10-29 13:37:50 /srv/paws/pwb/pywikibot/daemonize.py 2020-10-29 13:37:50 /srv/paws/pwb/pywikibot/i18n.py 2020-10-29 13:37:50 /srv/paws/pwb/pywikibot/exceptions.py 2020-10-29 13:37:50 /srv/paws/pwb/pywikibot/plural.py 2020-10-29 13:37:50 /srv/paws/pwb/pywikibot/version.py 2020-07-30 19:46:59 /srv/paws/pwb/pywikibot/comms/__init__.py 2020-10-29 13:37:50 /srv/paws/pwb/pywikibot/comms/http.py 2020-10-29 13:37:50 /srv/paws/pwb/pywikibot/comms/threadedhttp.py 2020-10-29 13:37:50 /srv/paws/pwb/pywikibot/bot_choice.py 2020-10-29 13:37:50 /srv/paws/pwb/pywikibot/tools/_logging.py 2020-10-29 13:37:50 /srv/paws/pwb/pywikibot/tools/formatter.py 2020-07-30 19:46:59 /srv/paws/pwb/pywikibot/userinterfaces/__init__.py
[Pywikipedia-bugs] [Maniphest] [Created] T266862: wrong encoding of the header for reflinks.py
Rubin16 created this task. Rubin16 added projects: Pywikibot, Pywikibot-Scripts. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION For example, this edit: https://ru.wikipedia.org/w/index.php?diff=109706980&diffmode=source For this link https://www.pravda.ru/culture/music/21-01-2008/252537-mandrik-0/ it added the header: п║п╣я─пЁп╣п╧ п°п╟п╫п╢я─п╦п╨: п╒п╟п╫я├я▀ п╡ я┬п╬я┐-п╠п╦п╥п╫п╣я│п╣ - п╢п╣п╩п╬ п©п╣я─я│п©п╣п╨я┌п╦п╡п╫п╬п╣ But it should have been Сергей Мандрик: Танцы в шоу-бизнесе - дело перспективное TASK DETAIL https://phabricator.wikimedia.org/T266862 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, 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] T267470: make reflinks.py bots/nobots compliant
Rubin16 created this task. Rubin16 added projects: Pywikibot-Scripts, Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Inspired by T262136 <https://phabricator.wikimedia.org/T262136> but could be an ugly but quick and easy hack for T55936 <https://phabricator.wikimedia.org/T55936> TASK DETAIL https://phabricator.wikimedia.org/T267470 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Xqt, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Triaged] T267470: make reflinks.py bots/nobots compliant
Rubin16 triaged this task as "Lowest" priority. TASK DETAIL https://phabricator.wikimedia.org/T267470 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Xqt, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, 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] T267470: make reflinks.py bots/nobots compliant
Rubin16 added a comment. @xqt I have tested it in this article: https://ru.wikipedia.org/wiki/Аякс_(футбольный_клуб,_Амстердам) it has deny=Rubinbot in the end of the article: diff <https://ru.wikipedia.org/w/index.php?title=Аякс_(футбольный_клуб,_Амстердам)&diff=110249948&oldid=110249659&diffmode=source> But reflinks ignores it and tries to edit the article anyway: @PAWS:~$ pwb.py reflinks.py -v -debug -simulate -start:Аякс_ === Pywikibot framework v5.1.0 -- Logging header === COMMAND: ['/srv/paws/pwb/scripts/reflinks.py', '-v', '-debug', '-simulate', '-start:Аякс_'] DATE: 2020-11-07 19:29:01.630050 UTC VERSION: [https] r-pywikibot-core.git (85b13d9, g13595, 2020/11/05, 13:30:44, n/a) SYSTEM: posix.uname_result(sysname='Linux', nodename='jupyter--52ubinbot', release='4.19.0-11-amd64', version='#1 SMP Debian 4.19.146-1 (2020-09-17)', machine='x86_64') CONFIG FILE DIR: /srv/paws PACKAGES: _brotli (/srv/paws/lib/python3.6/site-packages/brotli/_brotli.abi3.so) = ?? _bz2 (/usr/lib/python3.6/lib-dynload/_bz2.cpython-36m-x86_64-linux-gnu.so) = ?? _cffi_backend (/srv/paws/lib/python3.6/site-packages/_cffi_backend.cpython-36m-x86_64-linux-gnu.so) = 1.14.1 _ctypes (/usr/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so) = 1.1.0 _cython_0_29_21 ([path unknown]) = ?? _decimal (/usr/lib/python3.6/lib-dynload/_decimal.cpython-36m-x86_64-linux-gnu.so) = 1.70 _frozen_importlib (/usr/lib/python3.6/importlib/_bootstrap.py) = ?? _frozen_importlib_external (/usr/lib/python3.6/importlib/_bootstrap_external.py) = ?? _hashlib (/usr/lib/python3.6/lib-dynload/_hashlib.cpython-36m-x86_64-linux-gnu.so) = ?? _json (/usr/lib/python3.6/lib-dynload/_json.cpython-36m-x86_64-linux-gnu.so) = ?? _lzma (/usr/lib/python3.6/lib-dynload/_lzma.cpython-36m-x86_64-linux-gnu.so) = ?? _opcode (/usr/lib/python3.6/lib-dynload/_opcode.cpython-36m-x86_64-linux-gnu.so) = ?? _ssl (/usr/lib/python3.6/lib-dynload/_ssl.cpython-36m-x86_64-linux-gnu.so) = ?? blinker (/srv/paws/lib/python3.6/site-packages/blinker) = 1.4 brotli (/srv/paws/lib/python3.6/site-packages/brotli) = ?? bs4 (/srv/paws/lib/python3.6/site-packages/bs4) = 4.9.1 certifi (/srv/paws/lib/python3.6/site-packages/certifi) = 2020.06.20 chardet (/srv/paws/lib/python3.6/site-packages/chardet) = 3.0.4 cryptography (/srv/paws/lib/python3.6/site-packages/cryptography) = 3.0 ctypes (/usr/lib/python3.6/ctypes) = 1.1.0 cython_runtime ([path unknown]) = ?? decimal (/usr/lib/python3.6/decimal.py) = 1.70 distutils (/usr/lib/python3.6/distutils) = 3.6.9 email (/usr/lib/python3.6/email) = ?? encodings (/usr/lib/python3.6/encodings) = ?? html (/usr/lib/python3.6/html) = ?? http (/usr/lib/python3.6/http) = ?? idna (/srv/paws/lib/python3.6/site-packages/idna) = 2.10 importlib (/usr/lib/python3.6/importlib) = ?? ipaddress (/usr/lib/python3.6/ipaddress.py) = 1.0 json (/usr/lib/python3.6/json) = 2.0.9 jwt (/srv/paws/lib/python3.6/site-packages/jwt) = 1.7.1 logging (/usr/lib/python3.6/logging) = 0.5.1.2 lxml (/srv/paws/lib/python3.6/site-packages/lxml) = 4.5.2 mpl_toolkits ([path unknown]) = ?? mwoauth (/srv/paws/lib/python3.6/site-packages/mwoauth) = 0.3.7 mwparserfromhell (/srv/paws/lib/python3.6/site-packages/mwparserfromhell) = 0.5.4 oauthlib (/srv/paws/lib/python3.6/site-packages/oauthlib) = 3.1.0 pkg_resources (/srv/paws/lib/python3.6/site-packages/pkg_resources) = ?? platform (/usr/lib/python3.6/platform.py) = 1.0.8 re (/usr/lib/python3.6/re.py) = 2.2.1 requests (/srv/paws/lib/python3.6/site-packages/requests) = 2.24.0 requests_oauthlib (/srv/paws/lib/python3.6/site-packages/requests_oauthlib) = 1.3.0 ruamel ([path unknown]) = ?? setuptools (/srv/paws/lib/python3.6/site-packages/setuptools) = 49.2.0 six (/srv/paws/lib/python3.6/site-packages/six.py) = 1.15.0 soupsieve (/srv/paws/lib/python3.6/site-packages/soupsieve) = 2.0.1 termios (/usr/lib/python3.6/lib-dynload/termios.cpython-36m-x86_64-linux-gnu.so) = ?? urllib (/usr/lib/python3.6/urllib) = ?? urllib3 (/srv/paws/lib/python3.6/site-packages/urllib3) = 1.25.10 xml (/usr/lib/python3.6/xml) = ?? MODULES: 2020-11-07 19:27:45 /srv/paws/pwb/scripts/reflinks.py 2020-11-07 19:27:45 /srv/paws/pwb/setup.py 2020-11-07 19:27:45 /srv/paws/pwb/pywikibot/__init__.py 2020-11-07 19:27:45 /srv/paws/pwb/pywikibot/__metadata__.py 2020-11-07 19:27:45 /srv/paws/pwb/pywikibot/_wbtypes.py 2020-11-07 19:27:45 /srv/paws/pwb/pywikibot/bot.py 2020-11-07 19:27:45 /srv/paws/pwb/pywikibot/config2.py 2020-11-07 19:27:45 /
[Pywikipedia-bugs] [Maniphest] [Closed] T267470: make reflinks.py bots/nobots compliant
Rubin16 closed this task as "Invalid". Rubin16 added a comment. I am stupid, I have added the template and then deleted it for some reason from the code of the page. Of course, the bot continues to process it. Thank you for help. TASK DETAIL https://phabricator.wikimedia.org/T267470 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Xqt, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, 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] T268445: login problem: TypeError: unsupported operand type(s) for +: 'datetime.datetime' and 'int'
Rubin16 created this task. Rubin16 added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION tools.rubin16@tools-sgebastion-08:~/pywikibot-core$ python3 pwb.py login -lang:ru -v -debug === Pywikibot framework v5.2.0.dev0 -- Logging header === COMMAND: ['./scripts/login.py', '-lang:ru', '-v', '-debug'] DATE: 2020-11-23 09:46:10.024962 UTC VERSION: [https] r-pywikibot-core (b82afed, g13733, 2020/11/22, 17:20:06, n/a) SYSTEM: posix.uname_result(sysname='Linux', nodename='tools-sgebastion-08', release='4.9.0-8-amd64', version='#1 SMP Debian 4.9.130-2 (2018-10-27)', machine='x86_64') CONFIG FILE DIR: /mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core PACKAGES: OpenSSL (/usr/lib/python3/dist-packages/OpenSSL) = 16.2.0 __main__ (scripts/login.py) = ?? _bz2 (/usr/lib/python3.5/lib-dynload/_bz2.cpython-35m-x86_64-linux-gnu.so) = ?? _cffi_backend (/usr/lib/python3/dist-packages/_cffi_backend.cpython-35m-x86_64-linux-gnu.so) = 1.9.1 _constant_time (/usr/lib/python3/dist-packages/cryptography/hazmat/bindings/_constant_time.abi3.so) = ?? _ctypes (/usr/lib/python3.5/lib-dynload/_ctypes.cpython-35m-x86_64-linux-gnu.so) = 1.1.0 _decimal (/usr/lib/python3.5/lib-dynload/_decimal.cpython-35m-x86_64-linux-gnu.so) = 1.70 _frozen_importlib (/usr/lib/python3.5/importlib/_bootstrap.py) = ?? _frozen_importlib_external (/usr/lib/python3.5/importlib/_bootstrap_external.py) = ?? _hashlib (/usr/lib/python3.5/lib-dynload/_hashlib.cpython-35m-x86_64-linux-gnu.so) = ?? _json (/usr/lib/python3.5/lib-dynload/_json.cpython-35m-x86_64-linux-gnu.so) = ?? _lzma (/usr/lib/python3.5/lib-dynload/_lzma.cpython-35m-x86_64-linux-gnu.so) = ?? _opcode (/usr/lib/python3.5/lib-dynload/_opcode.cpython-35m-x86_64-linux-gnu.so) = ?? _openssl (/usr/lib/python3/dist-packages/cryptography/hazmat/bindings/_openssl.abi3.so) = ?? _ssl (/usr/lib/python3.5/lib-dynload/_ssl.cpython-35m-x86_64-linux-gnu.so) = ?? _sysconfigdata_m (/usr/lib/python3.5/plat-x86_64-linux-gnu/_sysconfigdata_m.py) = ?? blinker (/usr/lib/python3/dist-packages/blinker) = 1.3 certifi (/usr/lib/python3/dist-packages/certifi) = 2016.02.28 chardet (/usr/lib/python3/dist-packages/chardet) = 3.0.4 cryptography (/usr/lib/python3/dist-packages/cryptography) = 1.7.1 ctypes (/usr/lib/python3.5/ctypes) = 1.1.0 decimal (/usr/lib/python3.5/decimal.py) = 1.70 distutils (/usr/lib/python3.5/distutils) = 3.5.3 email (/usr/lib/python3.5/email) = ?? encodings (/usr/lib/python3.5/encodings) = ?? html (/usr/lib/python3.5/html) = ?? http (/usr/lib/python3.5/http) = ?? idna (/usr/lib/python3/dist-packages/idna) = ?? importlib (/usr/lib/python3.5/importlib) = ?? ipaddress (/usr/lib/python3.5/ipaddress.py) = 1.0 json (/usr/lib/python3.5/json) = 2.0.9 logging (/usr/lib/python3.5/logging) = 0.5.1.2 mpl_toolkits (/usr/lib/python3/dist-packages/mpl_toolkits) = ?? mwparserfromhell: No module named 'mwparserfromhell' oauthlib (/usr/lib/python3/dist-packages/oauthlib) = 2.0.1 pkg_resources (/usr/lib/python3/dist-packages/pkg_resources) = ?? platform (/usr/lib/python3.5/platform.py) = 1.0.7 pyasn1 (/usr/lib/python3/dist-packages/pyasn1) = 0.1.9 re (/usr/lib/python3.5/re.py) = 2.2.1 requests (/usr/lib/python3/dist-packages/requests) = 2.21.0 requests_oauthlib (/usr/lib/python3/dist-packages/requests_oauthlib) = 0.7.0 setuptools (/usr/lib/python3/dist-packages/setuptools) = 33.1.1 simplejson (/usr/lib/python3/dist-packages/simplejson) = 3.10.0 six (/usr/lib/python3/dist-packages/six.py) = 1.10.0 termios (/usr/lib/python3.5/lib-dynload/termios.cpython-35m-x86_64-linux-gnu.so) = ?? urllib (/usr/lib/python3.5/urllib) = ?? urllib3 (/usr/lib/python3/dist-packages/urllib3) = 1.24.1 xml (/usr/lib/python3.5/xml) = ?? MODULES: 2020-11-09 13:20:03.176531 /mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/userinterfaces/terminal_interface_base.py 2020-11-01 14:42:18.696034 /mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/config2.py 2020-11-07 19:53:19.085274 /mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/comms/http.py 2020-11-01 14:42:19.080034 /mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/site/_siteinfo.py 2020-11-11 05:20:03.892423 /mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/__init__.py 2020-11-01 14:42:19.016034 /mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/plural.py 2020-11-07 19:53:19.209275 /mnt/nfs/
[Pywikipedia-bugs] [Maniphest] [Triaged] T268445: login problem: TypeError: unsupported operand type(s) for +: 'datetime.datetime' and 'int'
Rubin16 triaged this task as "High" priority. TASK DETAIL https://phabricator.wikimedia.org/T268445 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Lowered Priority] T268445: login problem: TypeError: unsupported operand type(s) for +: 'datetime.datetime' and 'int'
Rubin16 lowered the priority of this task from "High" to "Lowest". Rubin16 added a comment. I don't know why, but it didn't work three times, I rebooted the instance - still not working. But now - it works. Keeping it at lowest priority: maybe someone else would find something broken here. TASK DETAIL https://phabricator.wikimedia.org/T268445 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, 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] T223826: Create archive procedure for scripts
Rubin16 added a comment. can we get reflinks.py back, please? noreferences and weblinkchecker are unarchived, so, no other dependencies for reflinks TASK DETAIL https://phabricator.wikimedia.org/T223826 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Rubin16 Cc: Rubin16, Udo_T, JAnD, JJMC89, Xqt, Aklapper, pywikibot-bugs-list, Multichill, Dvorapa, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, Maathavan, Altostratus, Avicennasis, mys_721tx, 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] T276701: reflinks.py: 'Response' object has no attribute 'data'
Rubin16 created this task. Rubin16 added projects: Pywikibot, Pywikibot-Scripts. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION === Pywikibot framework v6.0.0.dev0 -- Logging header === COMMAND: ['./scripts/reflinks.py', '-always', '-start:Салехардская_епархия', '-v', '-debug'] DATE: 2021-03-07 12:03:47.384019 UTC VERSION: [https] r-pywikibot-core (982f5b9, g14367, 2021/03/07, 12:34:05, n/a) SYSTEM: posix.uname_result(sysname='Linux', nodename='tools-sgebastion-08', release='4.19.0-0.bpo.14-amd64', version='#1 SMP Debian 4.19.171-2~deb9u1 (2021-02-08)', machine='x86_64') Python 3.5.3 (default, Nov 18 2020, 21:09:16) [GCC 6.3.0 20170516] Found 1 wikipedia:ru processes running, including this one. Retrieving 50 pages from wikipedia:ru. No changes were needed on [[Салехардская епархия]] Dropped throttle(s). 1 pages read 0 pages written 0 pages skipped Execution time: 1 seconds Read operation time: 1.0 seconds Script terminated by exception: ERROR: AttributeError: 'Response' object has no attribute 'data' Traceback (most recent call last): File "pwb.py", line 363, in if not main(): File "pwb.py", line 358, in main file_package) File "pwb.py", line 75, in run_python_file main_mod.__dict__) File "./scripts/reflinks.py", line 775, in main() File "./scripts/reflinks.py", line 771, in main bot.run() File "/mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/bot.py", line 1484, in run self.treat(page) File "./scripts/reflinks.py", line 644, in treat f.data.encoding = encoding AttributeError: 'Response' object has no attribute 'data' Dropped throttle(s). Closing network session. CRITICAL: Exiting due to uncaught exception Network session closed. TASK DETAIL https://phabricator.wikimedia.org/T276701 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T276715: http.py: unknown encoding: Win-1251
Rubin16 created this task. Rubin16 added projects: Pywikibot, Pywikibot-Scripts. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION == Pywikibot framework v6.0.0.dev0 -- Logging header === COMMAND: ['./scripts/reflinks.py', '-always', '-start:Социально-экономический_институт_СГТУ', '-v', 'debug'] DATE: 2021-03-07 16:05:35.276676 UTC VERSION: [https] r-pywikibot-core (bc28c3b, g14368, 2021/03/07, 13:36:15, n/a) SYSTEM: posix.uname_result(sysname='Linux', nodename='tools-sgebastion-08', release='4.19.0-0.bpo.14-amd64', version='#1 SMP Debian 4.19.171-2~deb9u1 (2021-02-08)', machine='x86_64') CONFIG FILE DIR: /mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core = Python 3.5.3 (default, Nov 18 2020, 21:09:16) [GCC 6.3.0 20170516] Found 1 wikipedia:ru processes running, including this one. Retrieving 50 pages from wikipedia:ru. WARNING: Http response status 404 HTTP error (404) for http://hakasia.roskazna.ru/page/10586 on [[Социально-экономический институт СГТУ им. Гагарина Ю. А.]] Dropped throttle(s). 0 pages read 0 pages written 0 pages skipped Execution time: 3 seconds Script terminated by exception: ERROR: LookupError: unknown encoding: Win-1251 Traceback (most recent call last): File "pwb.py", line 363, in if not main(): File "pwb.py", line 358, in main file_package) File "pwb.py", line 75, in run_python_file main_mod.__dict__) File "./scripts/reflinks.py", line 767, in main() File "./scripts/reflinks.py", line 763, in main bot.run() File "/mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/bot.py", line 1484, in run self.treat(page) File "./scripts/reflinks.py", line 535, in treat ref.url, use_fake_user_agent=self._use_fake_user_agent) File "/mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/tools/__init__.py", line 1478, in wrapper return obj(*__args, **__kw) File "/mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/comms/http.py", line 417, in fetch response.encoding = _decide_encoding(response, charset) File "/mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/comms/http.py", line 472, in _decide_encoding return _try_decode(response.content, header_encoding) File "/mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/comms/http.py", line 456, in _try_decode content.decode(encoding) LookupError: unknown encoding: Win-1251 Dropped throttle(s). Closing network session. CRITICAL: Exiting due to uncaught exception Network session closed. TASK DETAIL https://phabricator.wikimedia.org/T276715 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T276715: http.py: unknown encoding: Win-1251
Rubin16 removed a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T276715 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Alter-paule, Beast1978, Un1tY, Hook696, Kent7301, joker88john, CucyNoiD, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Lewizho99, Maathavan ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Retitled] T276715: reflinks.py: unknown encoding
Rubin16 renamed this task from "http.py: unknown encoding: Win-1251" to "reflinks.py: unknown encoding". TASK DETAIL https://phabricator.wikimedia.org/T276715 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T276715: reflinks.py: unknown encoding
Rubin16 added a comment. not only win-1251. Page [[Список кораблей Военно-морского флота Российской Федерации]] saved 2473 pages read 13 pages written 0 pages skipped Execution time: 366 seconds Read operation time: 0.1 seconds Write operation time: 28.2 seconds Script terminated by exception: ERROR: LookupError: unknown encoding: binary Traceback (most recent call last): File "pwb.py", line 363, in if not main(): File "pwb.py", line 358, in main file_package) File "pwb.py", line 75, in run_python_file main_mod.__dict__) File "./scripts/reflinks.py", line 767, in main() File "./scripts/reflinks.py", line 763, in main bot.run() File "/mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/bot.py", line 1484, in run self.treat(page) File "./scripts/reflinks.py", line 535, in treat ref.url, use_fake_user_agent=self._use_fake_user_agent) File "/mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/tools/__init__.py", line 1478, in wrapper return obj(*__args, **__kw) File "/mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/comms/http.py", line 417, in fetch response.encoding = _decide_encoding(response, charset) File "/mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/comms/http.py", line 472, in _decide_encoding return _try_decode(response.content, header_encoding) File "/mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/comms/http.py", line 456, in _try_decode content.decode(encoding) LookupError: unknown encoding: binary CRITICAL: Exiting due to uncaught except TASK DETAIL https://phabricator.wikimedia.org/T276715 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T276715: reflinks.py: unknown encoding
Rubin16 added a comment. @Xqt checked, works, thanks a lot TASK DETAIL https://phabricator.wikimedia.org/T276715 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Rubin16 Cc: Xqt, valhallasw, Mpaa, Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T276715: reflinks.py: unknown encoding
Rubin16 added a comment. it stopped crashing but it stopped editing too... it is hard to explain the problem, as I can't see the pages where problem happens. I just see this Retrieving 50 pages from wikipedia:ru. Adding references section before Ссылки section... So, I suppose some page should have been edited now, but there are no changes in the log of contributions: I ran bot for 10-15 minutes and it certainly should have edited some pages. I've also noticed some new errors in trace: Can't retrieve page http://www.vpc.org/studies/amroul2006.pdf : HTTPSConnectionPool(host='www.vpc.org', port=443): Max retries exceeded with url: /studies/amroul2006.pdf (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),)) WARNING: /mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/data/api.py:2014: ResourceWarning: unclosed uniquedescr, self._data, self._cachetime = pickle.load(f) WARNING: /usr/lib/python3.5/socket.py:647: ResourceWarning: unclosed self._sock = None TASK DETAIL https://phabricator.wikimedia.org/T276715 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Rubin16 Cc: Xqt, valhallasw, Mpaa, Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T278040: reflinks.py work with quotes
Rubin16 created this task. Rubin16 added projects: Pywikibot, Pywikibot-Scripts. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION The script recognises two types of quotes as different names for the references. For example, "autogenerated1" and 'autogenerated1' are considered as two different references, though they are the same for the MediaWiki engine. As a result, it first places "refname" (for example, first edit <https://ru.wikipedia.org/w/index.php?title=Кирикумяэ_(озеро)&curid=8730361&diff=112948556&oldid=112834435&diffmode=source>), then (sometimes) makes an edit of just replacing one type of quotes with another (for example, this one <https://ru.wikipedia.org/w/index.php?title=Инцкуры&curid=3049973&diff=112948068&oldid=112270899&diffmode=source> or this one <https://ru.wikipedia.org/w/index.php?title=Юзия&diff=112966517&oldid=112270283&diffmode=source>). I wouldn't consider it as an important issue but it also breaks the article when places "autogenerated1" with one link and 'autogenerated1' with a different one. It took me some time to catch this bug. For example, please, have a look to this diff <https://ru.wikipedia.org/w/index.php?diff=112946818&diffmode=source> and especially to "автоссылка7" (name for "autogenerated7" in Russian). The article had inside: > [https://seekingalpha.com/article/4160521-china-demographic-crisis-economic-outlook] During the edit, the bot creates a new refname: > [https://www.sciencedirect.com/science/article/pii/S0304393219300261 Aging and deflation from a fiscal perspective - ScienceDirect] At the same time, it changes the quotes in the existing "автоссылка7" to 'автоссылка7' and everything is broken. I was searching through the code, where the quotes' behaviour is defined but haven't found it yet. TASK DETAIL https://phabricator.wikimedia.org/T278040 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Triaged] T278040: reflinks.py work with quotes
Rubin16 triaged this task as "Medium" priority. TASK DETAIL https://phabricator.wikimedia.org/T278040 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T278040: reflinks.py work with quotes
Rubin16 added a comment. @Xqt thank you, it seems to be editing correctly now. But it still makes <https://ru.wikipedia.org/w/index.php?title=Участник:Rubin16/test&diff=113165041&oldid=113164835&diffmode=source> some mistakes, creating "autogenerated7" while we had 'autogenerated7'. So, it works better now but the problem isn't fully solved and I have no other idea about it, yet. But this patch should be merged anyway, thanks again TASK DETAIL https://phabricator.wikimedia.org/T278040 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Xqt, Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T278040: reflinks.py work with quotes
Rubin16 added a comment. Seems to have the same result <https://ru.wikipedia.org/w/index.php?title=Участник:Rubin16/test&diff=113165725&oldid=113165290&diffmode=source> TASK DETAIL https://phabricator.wikimedia.org/T278040 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Xqt, Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T278040: reflinks.py work with quotes
Rubin16 added a comment. @Xqt seems to be working, thanks a lot. Let's merge and I will do a more continuous run to test it more. PS: Just for my self-education (you can ignore it, if you want): - I see that you have changed the logic from adding +1 to the existing ref names getting a free one in the range 1-999, right? why do you believe it is better? - what was the bug? just curious TASK DETAIL https://phabricator.wikimedia.org/T278040 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Xqt, Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Declined] T56559: images' license checker
Rubin16 closed this task as "Declined". Rubin16 added a comment. It was so many years before, the patch is not actual now anyway TASK DETAIL https://phabricator.wikimedia.org/T56559 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Rubin16, Cyberpower678, jayvdb, Aklapper, Xqt, Legoktm, pywikibot-bugs-list, Ladsgroup, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Masti, Alchimista ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Declined] T90422: reflinks.py ignores {{nobots}}
Rubin16 closed this task as "Declined". Rubin16 added a comment. I think it is outdated and was related to compat TASK DETAIL https://phabricator.wikimedia.org/T90422 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Liuxinyu970226, Meno25, darthbhyrava, Xqt, XZise, jayvdb, Mpaa, gerritbot, pywikibot-bugs-list, Aklapper, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Masti, Alchimista ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T180309: reflinks.py changes existing ref names and do not observe ref groups in templates
Rubin16 closed this task as a duplicate of T55936: reflinks.py work with ref group. TASK DETAIL https://phabricator.wikimedia.org/T180309 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Liuxinyu970226, Aklapper, pywikibot-bugs-list, Masti, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Biaoo, Philoserf, Khutuck, Zkhalido, Ironie, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Hydriz, jayvdb, Alchimista, Jay8g ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Merged] T55936: reflinks.py work with ref group
Rubin16 merged a task: T180309: reflinks.py changes existing ref names and do not observe ref groups in templates. Rubin16 added a subscriber: Liuxinyu970226. TASK DETAIL https://phabricator.wikimedia.org/T55936 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Liuxinyu970226, Xqt, Ladsgroup, Cyberpower678, Masti, Aklapper, Legoktm, jayvdb, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, OlegCinema, Abiyoyo, Tbscho, MayS, Jack_who_built_the_house, Mdupont, JJMC89, Iniquity, Dvorapa, Altostratus, Avicennasis, mys_721tx, Base, putnik, Alchimista, RhinosF1 ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Merged] T278040: reflinks.py work with quotes
Rubin16 merged a task: T128951: reflinks.py doesn't check existing "autogenerated" tags. Rubin16 added a subscriber: Ricordisamoa. TASK DETAIL https://phabricator.wikimedia.org/T278040 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Rubin16 Cc: Ricordisamoa, Xqt, Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T128951: reflinks.py doesn't check existing "autogenerated" tags
Rubin16 closed this task as a duplicate of T278040: reflinks.py work with quotes . TASK DETAIL https://phabricator.wikimedia.org/T128951 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Ricordisamoa, Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T98700: noreferences must recognize footnote groups
Rubin16 added a comment. @Xqt what do you think of merging this bug to T55936 <https://phabricator.wikimedia.org/T55936>? I forgot about them, will try to reproduce and give more information later TASK DETAIL https://phabricator.wikimedia.org/T98700 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Rubin16 Cc: Rubin16, Liuxinyu970226, gerritbot, XZise, pywikibot-bugs-list, Xqt, Aklapper, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T280356: reflinks.py: LocationParseError: Failed to parse: label empty or too long
Rubin16 added a project: Pywikibot-Scripts. Rubin16 updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T280356 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: pywikibot-bugs-list, Aklapper, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T280356: reflinks.py: LocationParseError: Failed to parse: label empty or too long
Rubin16 added a comment. In T280356#7009100 <https://phabricator.wikimedia.org/T280356#7009100>, @Aklapper wrote: > Hi @Rubin16, thanks for taking the time to report this! Processed by what or who? What are clear steps (commands) to reproduce? Please follow https://www.mediawiki.org/wiki/How_to_report_a_bug . I assume this is about Pywikibot. Thanks! yes, sorry, haven't added the correct project and tag TASK DETAIL https://phabricator.wikimedia.org/T280356 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: pywikibot-bugs-list, Aklapper, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T280356: reflinks.py: LocationParseError: Failed to parse: label empty or too long
Rubin16 added a comment. LocationParseError: Can't retrieve url http://www.deloitte.com%2Fassets%2FDcom-Ukraine%2FLocal%2520Assets%2FDocuments%2F!Ukraine-CETOP500_2011.pdf: Failed to parse: 'www.deloitte.com%2fassets%2fdcom-ukraine%2flocal%2520assets%2fdocuments%2f!ukraine-cetop500_2011.pdf', label empty or too long now gives such output but isn't crashing, thank you @Xqt TASK DETAIL https://phabricator.wikimedia.org/T280356 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Rubin16 Cc: Xqt, pywikibot-bugs-list, Aklapper, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T280447: djvutext.py has disappeared from scripts/djvutext.py
Rubin16 added a comment. it was archived, see T223826 <https://phabricator.wikimedia.org/T223826> TASK DETAIL https://phabricator.wikimedia.org/T280447 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Rubin16, Aklapper, pywikibot-bugs-list, Billinghurst, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Claimed] T284393: Add support for banwikisource to Pywikibot
Rubin16 claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T284393 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Rubin16, Aklapper, pywikibot-bugs-list, Maintenance_bot, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Triaged] T284393: Add support for banwikisource to Pywikibot
Rubin16 triaged this task as "Low" priority. TASK DETAIL https://phabricator.wikimedia.org/T284393 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Rubin16, Aklapper, pywikibot-bugs-list, Maintenance_bot, Lalamarie69, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T284863: bot suggests it doesn't have a delete right while it has
Rubin16 created this task. Rubin16 added projects: Pywikibot-Scripts, Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **List of steps to reproduce** (step by step, including full links if applicable): - I am a sysop on Commons, logged by this account I suppose something is not correct here (init.py - self.site.has_right('delete')): @PAWS:~$ pwb.py login Logged in on commons:commons as Rubin16. @PAWS:~$ pwb.py delete -page:User:Rubin16/test1 -v -debug Found 1 commons:commons processes running, including this one. === Pywikibot framework v6.3.0 -- Logging header === COMMAND: ['/srv/paws/pwb/scripts/delete.py', '-page:User:Rubin16/test1', '-v', '-debug'] DATE: 2021-06-12 18:01:41.285304 UTC VERSION: [https] r-pywikibot-core.git (f7d9583, g15097, 2021/06/10, 16:57:16, n/a) SYSTEM: posix.uname_result(sysname='Linux', nodename='jupyter--52ubin16', release='4.19.0-14-amd64', version='#1 SMP Debian 4.19.171-2 (2021-01-30)', machine='x86_64') CONFIG FILE DIR: /srv/paws PACKAGES: _brotli (/srv/paws/lib/python3.8/site-packages/brotli/_brotli.abi3.so) = ?? _bz2 (/usr/lib/python3.8/lib-dynload/_bz2.cpython-38-x86_64-linux-gnu.so) = ?? _cffi_backend (/srv/paws/lib/python3.8/site-packages/_cffi_backend.cpython-38-x86_64-linux-gnu.so) = 1.14.5 _ctypes (/usr/lib/python3.8/lib-dynload/_ctypes.cpython-38-x86_64-linux-gnu.so) = 1.1.0 _cython_0_29_22 ([path unknown]) = ?? _decimal (/usr/lib/python3.8/lib-dynload/_decimal.cpython-38-x86_64-linux-gnu.so) = 1.70 _distutils_hack (/srv/paws/lib/python3.8/site-packages/_distutils_hack) = ?? _frozen_importlib (/usr/lib/python3.8/importlib/_bootstrap.py) = ?? _frozen_importlib_external (/usr/lib/python3.8/importlib/_bootstrap_external.py) = ?? _hashlib (/usr/lib/python3.8/lib-dynload/_hashlib.cpython-38-x86_64-linux-gnu.so) = ?? _json (/usr/lib/python3.8/lib-dynload/_json.cpython-38-x86_64-linux-gnu.so) = ?? _lzma (/usr/lib/python3.8/lib-dynload/_lzma.cpython-38-x86_64-linux-gnu.so) = ?? _opcode (/usr/lib/python3.8/lib-dynload/_opcode.cpython-38-x86_64-linux-gnu.so) = ?? _queue (/usr/lib/python3.8/lib-dynload/_queue.cpython-38-x86_64-linux-gnu.so) = ?? _ssl (/usr/lib/python3.8/lib-dynload/_ssl.cpython-38-x86_64-linux-gnu.so) = ?? _uuid (/usr/lib/python3.8/lib-dynload/_uuid.cpython-38-x86_64-linux-gnu.so) = ?? blinker (/srv/paws/lib/python3.8/site-packages/blinker) = 1.4 brotli (/srv/paws/lib/python3.8/site-packages/brotli) = ?? bs4 (/srv/paws/lib/python3.8/site-packages/bs4) = 4.9.3 certifi (/srv/paws/lib/python3.8/site-packages/certifi) = 2020.12.05 chardet (/srv/paws/lib/python3.8/site-packages/chardet) = 4.0.0 concurrent (/usr/lib/python3.8/concurrent) = ?? cryptography (/srv/paws/lib/python3.8/site-packages/cryptography) = 3.4.7 ctypes (/usr/lib/python3.8/ctypes) = 1.1.0 cython_runtime ([path unknown]) = ?? decimal (/usr/lib/python3.8/decimal.py) = 1.70 distutils (/usr/lib/python3.8/distutils) = 3.8.5 email (/usr/lib/python3.8/email) = ?? encodings (/usr/lib/python3.8/encodings) = ?? html (/usr/lib/python3.8/html) = ?? http (/usr/lib/python3.8/http) = ?? idna (/srv/paws/lib/python3.8/site-packages/idna) = 2.10 importlib (/usr/lib/python3.8/importlib) = ?? ipaddress (/usr/lib/python3.8/ipaddress.py) = 1.0 json (/usr/lib/python3.8/json) = 2.0.9 jwt (/srv/paws/lib/python3.8/site-packages/jwt) = 1.7.1 logging (/usr/lib/python3.8/logging) = 0.5.1.2 lxml (/srv/paws/lib/python3.8/site-packages/lxml) = 4.6.3 mpl_toolkits (/srv/paws/lib/python3.8/site-packages/mpl_toolkits) = ?? mwoauth (/srv/paws/lib/python3.8/site-packages/mwoauth) = 0.3.7 mwparserfromhell (/srv/paws/lib/python3.8/site-packages/mwparserfromhell) = 0.6.2 oauthlib (/srv/paws/lib/python3.8/site-packages/oauthlib) = 3.1.0 pkg_resources (/srv/paws/lib/python3.8/site-packages/pkg_resources) = ?? platform (/usr/lib/python3.8/platform.py) = 1.0.8 re (/usr/lib/python3.8/re.py) = 2.2.1 requests (/srv/paws/lib/python3.8/site-packages/requests) = 2.25.1 requests_oauthlib (/srv/paws/lib/python3.8/site-packages/requests_oauthlib) = 1.3.0 ruamel (/srv/paws/lib/python3.8/site-packages/ruamel) = ?? setuptools (/srv/paws/lib/python3.8/site-packages/setuptools) = 57.0.0 six (/srv/paws/lib/python3.8/site-packages/six.py) = 1.16.0 soupsieve (/srv/paws/lib/python3.8/site-packages/soupsieve) = 2.2.1 termios (/usr/lib/python3.8/lib-dynload/termios.cpython-38-x86_64-linux-gnu.so) = ?? urllib (/usr/lib/python3.8/urllib) = ?? urllib3 (/srv/paws/lib/python3.8/site-packages/urllib3
[Pywikipedia-bugs] [Maniphest] [Commented On] T284863: bot suggests it doesn't have a delete right while it has
Rubin16 added a comment. I am even more confused now. It shows correctly that I am a sysop (having ipblock-exempt, for example) but it doesn't show delete here. But here it says admins have "delete" right: https://commons.wikimedia.org/wiki/Special:ListGroupRights Welcome to the Pywikibot interactive shell! >>> site = pywikibot.Site('commons', 'commons', user='Rubin16') >>> site.login() >>> site.userinfo['rights'] ['changetags', 'suppressredirect', 'noratelimit', 'editcontentmodel', 'move', 'move-subpages', 'move-rootuserpages', 'move-categorypages', 'patrol', 'autopatrol', 'rollback', 'upload', 'reupload', 'reupload-shared', 'autoconfirmed', 'editsemiprotected', 'ipblock-exempt', 'markbotedits', 'apihighlimits', 'movefile', 'transcode-reset', 'skipcaptcha', 'abusefilter-log-detail', 'massmessage', 'flow-edit-post', 'read', 'edit', 'createpage', 'createtalk', 'writeapi', 'viewmywatchlist', 'editmywatchlist', 'translate', 'abusefilter-view', 'abusefilter-log', 'flow-hide', 'item-term', 'property-term', 'item-merge', 'item-redirect', 'property-create', 'mediainfo-term', 'upload_by_url', 'reupload-own', 'minoredit', 'purge', 'applychangetags', 'imagelabel-review'] >>> 'delete' in site.userinfo['rights'] False >>> TASK DETAIL https://phabricator.wikimedia.org/T284863 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: zhuyifei1999, Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T284863: bot suggests it doesn't have a delete right while it has
Rubin16 added a comment. I have made API request for myself directly, it is shown correctly "batchcomplete": "", "query": { "userinfo": { "id": 329710, "name": "Rubin16", "rights": [ "changetags", "templateeditor", "suppressredirect", "noratelimit", "deleterevision", "deletelogentry", "editcontentmodel", "block", "createaccount", "delete", "deletedhistory", "deletedtext", "undelete", "editinterface", "editsitejson", "edituserjson", "import", "move", "move-subpages", "move-rootuserpages", "move-categorypages", "patrol", "autopatrol", "protect", "editprotected", "rollback", "upload", "reupload", "reupload-shared", "unwatchedpages", "autoconfirmed", "editsemiprotected", "ipblock-exempt", "blockemail", "markbotedits", "apihighlimits", "browsearchive", "movefile", "mergehistory", "managechangetags", "deletechangetags", "pagelang", "oathauth-enable", "tboverride", "titleblacklistlog", "transcode-reset", "transcode-status", "globalblock-whitelist", "nuke", "skipcaptcha", "override-antispoof", "centralauth-createlocal", "abusefilter-log-detail", "abusefilter-view-private", "abusefilter-log-private", "abusefilter-modify", "abusefilter-modify-restricted", "massmessage", "upwizcampaigns", "mass-upload", "flow-lock", "flow-delete", "flow-edit-post", "read", "edit", "createpage", "createtalk", "writeapi", "viewmywatchlist", "editmywatchlist", "viewmyprivateinfo", "editmyprivateinfo", "editmyoptions", "translate", "centralauth-merge", "abusefilter-view", "abusefilter-log", "vipsscaler-test", "flow-hide", "item-term", "property-term", "item-merge", "item-redirect", "property-create", "mediainfo-term", "upload_by_url", "reupload-own", "minoredit", "editmyusercss", "editmyuserjson", "editmyuserjs", "purge", "sendemail", "applychangetags", "translate-messagereview", "translate-groupreview", "spamblacklistlog", "mwoauthmanagemygrants", "imagelabel-review", "collectionsaveasuserpage", "collectionsaveascommunitypage" ] } } } TASK DETAIL https://phabricator.wikimedia.org/T284863 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: JJMC89, zhuyifei1999, Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Closed] T284863: bot suggests it doesn't have a delete right while it has
Rubin16 closed this task as "Invalid". Rubin16 added a comment. yes, that the issue of PAWS that it doesn't request such permission from OATH. I have checked from localhost, it is okay. Thank you, guys. TASK DETAIL https://phabricator.wikimedia.org/T284863 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: JJMC89, zhuyifei1999, Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T286369: reflinks.py skips some identical references for unknown reason
Rubin16 created this task. Rubin16 added a project: Pywikibot-Scripts. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **List of steps to reproduce** (step by step, including full links if applicable): - we have an article Экономика_Эстонии <https://ru.wikipedia.org/wiki/Экономика_Эстонии> in Russian (I have also forked a copy here <https://ru.wikipedia.org/wiki/Участник:Rubin16/test> for testing) - we have several identical references named with absolutely same content **What happens?**: - bot doesn't remove duplicates though works through other issues in the article - diff1 <https://ru.wikipedia.org/w/index.php?title=Экономика_Эстонии&diff=115244064&oldid=115215744&diffmode=source>, diff2 <https://ru.wikipedia.org/w/index.php?title=Экономика_Эстонии&diff=115367329&oldid=115244064&diffmode=source> **What should have happened instead?**: Bot should remove all but that one content from TASK DETAIL https://phabricator.wikimedia.org/T286369 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16 ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T286369: reflinks.py skips some identical references for unknown reason
Rubin16 added a comment. I agree, dotall isn't good, because now bot fixes cases when we have two different references with the same name. But are references actually different in the article I provided? For me it seems equal TASK DETAIL https://phabricator.wikimedia.org/T286369 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Xqt, Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Closed] T286369: reflinks.py skips some identical references for unknown reason
Rubin16 closed this task as "Resolved". Rubin16 assigned this task to Xqt. TASK DETAIL https://phabricator.wikimedia.org/T286369 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Rubin16 Cc: Xqt, Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T296371: Move pywikibot tests from Tavis to Github action
Rubin16 added a comment. I have no access to https://travis-ci.com/organizations/wikimedia/plan/usage but how much will it cost to support our usual testing per month? TASK DETAIL https://phabricator.wikimedia.org/T296371 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Rubin16, Aklapper, pywikibot-bugs-list, mdipietro, dcaro, RhinosF1, Jdforrester-WMF, Legoktm, Xqt, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T296371: Move pywikibot tests from Tavis to Github action
Rubin16 added a comment. I have sent a question to WMF rapid grants team whether it would be possible to cover testing by a grant: https://meta.wikimedia.org/wiki/Grants:Project/Rapid TASK DETAIL https://phabricator.wikimedia.org/T296371 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Rubin16, Aklapper, pywikibot-bugs-list, mdipietro, dcaro, RhinosF1, Legoktm, Xqt, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Retitled] T296371: Move pywikibot tests from Travis to Github action
Rubin16 renamed this task from "Move pywikibot tests from Tavis to Github action" to "Move pywikibot tests from Travis to Github action". TASK DETAIL https://phabricator.wikimedia.org/T296371 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Rubin16, Aklapper, pywikibot-bugs-list, mdipietro, dcaro, RhinosF1, Legoktm, Xqt, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T298006: wrong encoding recognised by reflinks.py
Rubin16 created this task. Rubin16 added a project: Pywikibot-Scripts. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION For one of the links the created reference name is in a wrong encoding: https://ru.wikipedia.org/w/index.php?title=Кукай_(озеро)&diff=prev&oldid=117498141&diffmode=source The site in question is this one: http://verum.wiki/index.php?item=gkgn:2763246 The page states: But the bot for some reason posted a wrong ref-name here. TASK DETAIL https://phabricator.wikimedia.org/T298006 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16 ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T303731: reflinks.py crash - TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Rubin16 created this task. Rubin16 added a project: Pywikibot-Scripts. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **List of steps to reproduce** (step by step, including full links if applicable): tools.rubin16@tools-sgebastion-08:~$ venv/bin/python3 $HOME/pywikibot-core/pwb.py reflinks -start:Моррисон,_Наташа -v -debug -limit:1 Found 1 processes running, including this one. **What happens?**: Python 3.5.3 (default, Nov 4 2021, 15:29:10) [GCC 6.3.0 20170516] Found 2 wikipedia:ru processes running, including this one. Retrieving 50 pages from wikipedia:ru. Http response does not contain a charset. WARNING : media : http://dt9guucc6nuua.cloudfront.net/competitiondocuments/pdf/5676/AT-4X1-W-h.RS6.pdf?v=-92722794 Http response does not contain a charset. WARNING : media : http://dt9guucc6nuua.cloudfront.net/competitiondocuments/pdf/5676/AT-4X1-W-f.RS6.pdf?v=-1737224027 Http response does not contain a charset. Reading PDF file... Dropped throttle(s). 0 pages read 0 pages written 0 pages skipped Execution time: 1 seconds Script terminated by exception: ERROR: TypeError: startswith first arg must be bytes or a tuple of bytes, not str Traceback (most recent call last): File "/data/project/rubin16/pywikibot-core/pwb.py", line 496, in main() File "/data/project/rubin16/pywikibot-core/pwb.py", line 480, in main if not execute(): File "/data/project/rubin16/pywikibot-core/pwb.py", line 463, in execute run_python_file(filename, script_args, module) File "/data/project/rubin16/pywikibot-core/pwb.py", line 144, in run_python_file main_mod.__dict__) File "/data/project/rubin16/pywikibot-core/scripts/reflinks.py", line 801, in main() File "/data/project/rubin16/pywikibot-core/scripts/reflinks.py", line 797, in main bot.run() File "/mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/bot.py", line 1570, in run self.treat(page) File "/data/project/rubin16/pywikibot-core/scripts/reflinks.py", line 579, in treat self.getPDFTitle(ref, r) File "/data/project/rubin16/pywikibot-core/scripts/reflinks.py", line 525, in getPDFTitle if aline.lower().startswith('title'): TypeError: startswith first arg must be bytes or a tuple of bytes, not str Dropped throttle(s). Closing network session. CRITICAL: Exiting due to uncaught exception **What should have happened instead?**: No crash happening TASK DETAIL https://phabricator.wikimedia.org/T303731 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16 ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T304288: reflinks.py: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in position 18: invalid continuation byte
Rubin16 created this task. Rubin16 added projects: Pywikibot, Pywikibot-Scripts. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **List of steps to reproduce** (step by step, including full links if applicable): - venv/bin/python3 $HOME/pywikibot-core/pwb.py reflinks -start:Мороз -v -debug I wasn't able to identify the exact page where the script crashes as there is no such info in the terminal even with debug option, maybe @Xqt will have a suggestion how to localise the issue if needed **What happens?**: Retrieving 50 pages from wikipedia:ru. Dropped throttle(s). 4906 pages read 0 pages written 0 pages skipped Execution time: 279 seconds Read operation time: 0.1 seconds Script terminated by exception: ERROR: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in position 18: invalid continuation byte Traceback (most recent call last): File "/data/project/rubin16/pywikibot-core/pwb.py", line 496, in main() File "/data/project/rubin16/pywikibot-core/pwb.py", line 480, in main if not execute(): File "/data/project/rubin16/pywikibot-core/pwb.py", line 463, in execute run_python_file(filename, script_args, module) File "/data/project/rubin16/pywikibot-core/pwb.py", line 144, in run_python_file main_mod.__dict__) File "/data/project/rubin16/pywikibot-core/scripts/reflinks.py", line 803, in main() File "/data/project/rubin16/pywikibot-core/scripts/reflinks.py", line 799, in main bot.run() File "/mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/bot.py", line 1571, in run self.treat(page) File "/data/project/rubin16/pywikibot-core/scripts/reflinks.py", line 663, in treat tag = meta_content.group().decode() UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in position 18: invalid continuation byte Dropped throttle(s). Closing network session. CRITICAL: Exiting due to uncaught exception Network session closed. **What should have happened instead?**: No crash of the script TASK DETAIL https://phabricator.wikimedia.org/T304288 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, Rubin16, Xqt, pywikibot-bugs-list, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T304288: reflinks.py: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in position 18: invalid continuation byte
Rubin16 added a comment. In T304288#7792457 <https://phabricator.wikimedia.org/T304288#7792457>, @Xqt wrote: > The related page is `[[ru:Мосты Воронежа]]` Can you, please, explain me for future cases how you were able to find it? TASK DETAIL https://phabricator.wikimedia.org/T304288 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Rubin16 Cc: Aklapper, Rubin16, Xqt, pywikibot-bugs-list, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T304830: reflinks.py: LookupError: unknown encoding: cp-1251
Rubin16 created this task. Rubin16 added projects: Pywikibot, Pywikibot-Scripts. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **List of steps to reproduce** (step by step, including full links if applicable): - while running reflinks.py it crashes due to invalid encoding, I was running something like venv/bin/python3 $HOME/pywikibot-core/pwb.py reflinks -start:Таужное -v -debug **What happens?**: WARNING: Unknown or invalid encoding 'cp-1251' Dropped throttle(s). Script terminated by exception: ERROR: LookupError: unknown encoding: cp-1251 Traceback (most recent call last): File "/data/project/rubin16/pywikibot-core/pwb.py", line 496, in main() File "/data/project/rubin16/pywikibot-core/pwb.py", line 480, in main if not execute(): File "/data/project/rubin16/pywikibot-core/pwb.py", line 463, in execute run_python_file(filename, script_args, module) File "/data/project/rubin16/pywikibot-core/pwb.py", line 144, in run_python_file main_mod.__dict__) File "/data/project/rubin16/pywikibot-core/scripts/reflinks.py", line 824, in main() File "/data/project/rubin16/pywikibot-core/scripts/reflinks.py", line 820, in main bot.run() File "/mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/bot.py", line 1571, in run self.treat(page) File "/data/project/rubin16/pywikibot-core/scripts/reflinks.py", line 686, in treat tag = meta_content.group().decode(enc) LookupError: unknown encoding: cp-1251 Dropped throttle(s). Closing network session. CRITICAL: Exiting due to uncaught exception Network session closed. **What should have happened instead?**: **Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.**: TASK DETAIL https://phabricator.wikimedia.org/T304830 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Changed Subscribers] T304830: reflinks.py: LookupError: unknown encoding: cp-1251
Rubin16 added a subscriber: Xqt. Rubin16 added a comment. seems to be connected with this patch https://gerrit.wikimedia.org/r/772400 @Xqt TASK DETAIL https://phabricator.wikimedia.org/T304830 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Xqt, Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Changed Subscribers] T305292: migrate Pywikibot from Toolforge Stretch Grid Engine to Toolforge Kubernetes
Rubin16 added a subscriber: JJMC89. Rubin16 added a comment. It looks like I managed to launch pywikibot on Kubernetes, special thanks to @JJMC89. I have added some examples to the help page: https://wikitech.wikimedia.org/w/index.php?title=Help%3AToolforge%2FPywikibot&type=revision&diff=1967824&oldid=1954677 TASK DETAIL https://phabricator.wikimedia.org/T305292 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: JJMC89, #pywikibot, Ricordisamoa, Rubin16, matej_suchanek, Multichill, Lokal_Profil, Framawiki, Mpaa, Dvorapa, Dalba, valhallasw, Aklapper, Xqt, pywikibot-bugs-list, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T305292: migrate Pywikibot from Toolforge Stretch Grid Engine to Toolforge Kubernetes
Rubin16 added a comment. In T305292#7845103 <https://phabricator.wikimedia.org/T305292#7845103>, @Xqt wrote: > In T305292#7844680 <https://phabricator.wikimedia.org/T305292#7844680>, @Rubin16 wrote: > >> It looks like I managed to launch pywikibot on Kubernetes, special thanks to @JJMC89. > > That's really great. Many thanks. Is the web page published by Kubernetes then? > https://pywikibot.toolforge.org/ I don’t have access to pywikibot project as I remember, can’t check it TASK DETAIL https://phabricator.wikimedia.org/T305292 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: JJMC89, #pywikibot, Ricordisamoa, Rubin16, matej_suchanek, Multichill, Lokal_Profil, Framawiki, Mpaa, Dvorapa, Dalba, valhallasw, Aklapper, Xqt, pywikibot-bugs-list, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T305292: migrate Pywikibot from Toolforge Stretch Grid Engine to Toolforge Kubernetes
Rubin16 added a comment. In T305292#7845306 <https://phabricator.wikimedia.org/T305292#7845306>, @Ladsgroup wrote: > FWIW, pywikibot project being on grid engine has nothing to do with being able to run pywikibot in k8s in toolforge. It builds some set of tools to build nightly downloadable tarballs and other stuff. It doesn't run pywikibot per se. You are right. I just used this topic as I think most of the pywikibot owners on toolforge got the same message and I wasn’t able to find any manual TASK DETAIL https://phabricator.wikimedia.org/T305292 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Ladsgroup, JJMC89, #pywikibot, Ricordisamoa, Rubin16, matej_suchanek, Multichill, Lokal_Profil, Framawiki, Mpaa, Dvorapa, Dalba, valhallasw, Aklapper, Xqt, pywikibot-bugs-list, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T306304: reflinks: ignoring defined badtitle
Rubin16 created this task. Rubin16 added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **List of steps to reproduce** (step by step, including full links if applicable): - Some sites (like Bloomberg) often show CAPTCHA-confirmation and the page title is looking differently ([https://ru.wikipedia.org/w/index.php?diff=121406010&oldid=121405550%7C&diffmode=source diff]): "Bloomberg - Are you a robot?". **What happens?**: As I understand, line 142+ in reflinks.py defines battles and particularly "are[ ]robot" on line 161. **What should have happened instead?**: I believe such title should be covered by global badtitle that is already present in the script and page title shouldn't be added to the article **Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.**: TASK DETAIL https://phabricator.wikimedia.org/T306304 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T307760: reflinks.py: unknown encoding: ru-win1251
Rubin16 created this task. Rubin16 added projects: Pywikibot, Pywikibot-Scripts. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **What happens?**: Script terminated by exception: ERROR: unknown encoding: ru-win1251 (LookupError) Traceback (most recent call last): File "/data/project/rubin16/pywikibot-core/pwb.py", line 487, in main() File "/data/project/rubin16/pywikibot-core/pwb.py", line 471, in main if not execute(): File "/data/project/rubin16/pywikibot-core/pwb.py", line 454, in execute run_python_file(filename, script_args, module) File "/data/project/rubin16/pywikibot-core/pwb.py", line 144, in run_python_file main_mod.__dict__) File "/data/project/rubin16/pywikibot-core/scripts/reflinks.py", line 794, in main() File "/data/project/rubin16/pywikibot-core/scripts/reflinks.py", line 790, in main bot.run() File "/mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/bot.py", line 1624, in run self.treat(page) File "/data/project/rubin16/pywikibot-core/scripts/reflinks.py", line 659, in treat tag = meta_content.group().decode(enc) LookupError: unknown encoding: ru-win1251 Dropped throttle(s). Closing network session. CRITICAL: Exiting due to uncaught exception **What should have happened instead?**: Script shouldn't crash. TASK DETAIL https://phabricator.wikimedia.org/T307760 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T307760: reflinks.py: unknown encoding: ru-win1251
Rubin16 added a comment. In T307760#7908932 <https://phabricator.wikimedia.org/T307760#7908932>, @Xqt wrote: > What was the page the bot worked when crashed? took some time to find it, seems to be this one: https://ru.wikipedia.org/wiki/Большаков,_Борис_Евгеньевич TASK DETAIL https://phabricator.wikimedia.org/T307760 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Xqt, Aklapper, pywikibot-bugs-list, Rubin16, Fernandobacasegua34, 786, Suran38, Biggs657, Lalamarie69, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T312230: reflinks.py: unknown encoding: win1251
Rubin16 created this task. Rubin16 added projects: Pywikibot, Pywikibot-Scripts. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **List of steps to reproduce** (step by step, including full links if applicable): - seems to be similar to [[T307760 <https://phabricator.wikimedia.org/T307760>]], could be tested on Грамматический строй <https://ru.wikipedia.org/wiki/Грамматический_строй> **What happens?**: Found 1 wikipedia:ru processes running, including this one. Retrieving 50 pages from wikipedia:ru. WARNING: Unknown or invalid encoding 'win-1251' Dropped throttle(s). 1 read operation Execution time: 2 seconds Read operation time: 2.0 seconds Script terminated by exception: ERROR: unknown encoding: win-1251 (LookupError) Traceback (most recent call last): File "/data/project/rubin16/pywikibot-core/pwb.py", line 488, in main() File "/data/project/rubin16/pywikibot-core/pwb.py", line 472, in main if not execute(): File "/data/project/rubin16/pywikibot-core/pwb.py", line 455, in execute run_python_file(filename, script_args, module) File "/data/project/rubin16/pywikibot-core/pwb.py", line 142, in run_python_file main_mod.__dict__) File "/data/project/rubin16/pywikibot-core/scripts/reflinks.py", line 799, in main() File "/data/project/rubin16/pywikibot-core/scripts/reflinks.py", line 795, in main bot.run() File "/mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/bot.py", line 1663, in run self.treat(page) File "/data/project/rubin16/pywikibot-core/scripts/reflinks.py", line 664, in treat tag = meta_content.group().decode(enc) LookupError: unknown encoding: win-1251 Closing network session. CRITICAL: Exiting due to uncaught exception Network session closed. **What should have happened instead?**: No crash happens TASK DETAIL https://phabricator.wikimedia.org/T312230 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T371687: reflinks.py: unknown encoding utf8-r
Rubin16 created this task. Rubin16 added a project: Pywikibot-Scripts. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Steps to replicate the issue** (include links if applicable): - running reflinks.py, the exact page - unknown, can't trace it from logs toolforge-jobs run reflinks --command "$HOME/pwbvenv/bin/python3.11 $HOME/pywikibot-core/pwb.py reflinks -start:! -always" --image python3.11 --mem 2Gi --continuous **What happens?**: WARNING: Unknown or invalid encoding 'utf8-r' 164637 read operations Execution time: 43 minutes, 42 seconds Read operation time: 0.0 seconds Script terminated by exception: ERROR: unknown encoding: utf8-r (LookupError) Traceback (most recent call last): File "/data/project/rubin16/pywikibot-core/pwb.py", line 40, in sys.exit(main()) ^^ File "/data/project/rubin16/pywikibot-core/pwb.py", line 36, in main runpy.run_path(str(path), run_name='__main__') File "", line 291, in run_path File "", line 98, in _run_module_code File "", line 88, in _run_code File "/data/project/rubin16/pywikibot-core/pywikibot/scripts/wrapper.py", lin> main() File "/data/project/rubin16/pywikibot-core/pywikibot/scripts/wrapper.py", lin> if not execute(): ^ File "/data/project/rubin16/pywikibot-core/pywikibot/scripts/wrapper.py", lin> run_python_file(filename, script_args, module) File "/data/project/rubin16/pywikibot-core/pywikibot/scripts/wrapper.py", lin> exec(compile(source, filename, 'exec', dont_inherit=True), File "/data/project/rubin16/pywikibot-core/scripts/reflinks.py", line 788, in> main() File "/data/project/rubin16/pywikibot-core/scripts/reflinks.py", line 784, in> bot.run() File "/data/project/rubin16/pywikibot-core/pywikibot/bot.py", line 1581, in r> self.treat(page) File "/data/project/rubin16/pywikibot-core/scripts/reflinks.py", line 657, in> tag = meta_content.group().decode(enc) LookupError: unknown encoding: utf8-r CRITICAL: Exiting due to uncaught exception LookupError: unknown encoding: utf8> **What should have happened instead?**: No crash with error. **Software version** (on `Special:Version` page; skip for WMF-hosted wikis like Wikipedia): (pwbvenv) tools.rubin16@shell-1722598567:~$ pwb version Pywikibot: pywikibot/__init__.py (, -1 (unknown), 2024/08/01, 12:49:30, UNKNOWN) Release version: 9.3.0 packaging version: 24.1 mwparserfromhell version: 0.6.6 wikitextparser version: n/a requests version: 2.32.3 cacerts: /data/project/rubin16/pwbvenv/lib/python3.11/site-packages/certifi/cacert.pem certificate test: ok Python: 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] PYWIKIBOT_DIR: Not set PYWIKIBOT_DIR_PWB: /data/project/rubin16/pwbvenv/lib/python3.11/site-packages/pywikibot/scripts PYWIKIBOT_NO_USER_CONFIG: Not set Config base dir: /data/project/rubin16 Usernames for family 'wikipedia': ru: Rubinbot Usernames for family 'wikibooks': ru: Rubinbot Usernames for family 'commons': commons: Rubin16 TASK DETAIL https://phabricator.wikimedia.org/T371687 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16 ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Updated] T371687: reflinks.py: unknown encoding utf8-r
Rubin16 added a comment. just thinking, maybe instead of adding manual exceptions/substitutions (like T307760 <https://phabricator.wikimedia.org/T307760> or T312230 <https://phabricator.wikimedia.org/T312230>) we could just make the bot skip pages where "unknown encoding" was encountered? TASK DETAIL https://phabricator.wikimedia.org/T371687 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rubin16 Cc: Aklapper, pywikibot-bugs-list, Rubin16, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Aram, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org