Xqt created this task. Xqt added projects: Pywikibot, Pywikibot-tests, Upstream. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION Page.authorship() and Page.mainauthors() fails and CI is blocked due to this issue. https://integration.wikimedia.org/ci/job/pywikibot-core-tox-doctest/1640/console 09:56:17 ________ [doctest] pywikibot.page._toolforge.WikiBlameMixin.authorship _________ 09:56:17 120 09:56:17 121 This method uses XTools/Authorship to retrieve the authors 09:56:17 122 measured by character count. 09:56:17 123 09:56:17 124 Sample: 09:56:17 125 09:56:17 126 >>> import pywikibot 09:56:17 127 >>> site = pywikibot.Site('wikipedia:en') 09:56:17 128 >>> page = pywikibot.Page(site, 'Pywikibot') 09:56:17 129 >>> auth = page.authorship() 09:56:17 UNEXPECTED EXCEPTION: Error('Unknown') 09:56:17 Traceback (most recent call last): 09:56:17 File "/opt/pyenv/versions/3.7.17/lib/python3.7/doctest.py", line 1337, in __run 09:56:17 compileflags, 1), test.globs) 09:56:17 File "<doctest pywikibot.page._toolforge.WikiBlameMixin.authorship[3]>", line 1, in <module> 09:56:17 File "/src/pywikibot/page/_toolforge.py", line 205, in authorship 09:56:17 raise pywikibot.exceptions.Error(msg) from None 09:56:17 pywikibot.exceptions.Error: Unknown 09:56:17 /src/pywikibot/page/_toolforge.py:129: UnexpectedException 09:56:17 _______ [doctest] pywikibot.page._toolforge.WikiBlameMixin.main_authors ________ 09:56:17 070 Retrieve the 5 topmost main authors of an article. 09:56:17 071 09:56:17 072 Sample: 09:56:17 073 09:56:17 074 >>> import pywikibot 09:56:17 075 >>> site = pywikibot.Site('wikipedia:eu') 09:56:17 076 >>> page = pywikibot.Page(site, 'Python (informatika)') 09:56:17 077 >>> auth = page.main_authors() 09:56:17 UNEXPECTED EXCEPTION: Error('Unknown') 09:56:17 Traceback (most recent call last): 09:56:17 File "/opt/pyenv/versions/3.7.17/lib/python3.7/doctest.py", line 1337, in __run 09:56:17 compileflags, 1), test.globs) 09:56:17 File "<doctest pywikibot.page._toolforge.WikiBlameMixin.main_authors[3]>", line 1, in <module> 09:56:17 File "/src/pywikibot/tools/_deprecate.py", line 251, in wrapper 09:56:17 return obj(*args, **kwargs) 09:56:17 File "/src/pywikibot/tools/_deprecate.py", line 418, in wrapper 09:56:17 return obj(*__args, **__kw) 09:56:17 File "/src/pywikibot/page/_toolforge.py", line 107, in main_authors 09:56:17 {user: int(cnt) for user, (_, cnt) in self.authorship(5).items()}) 09:56:17 File "/src/pywikibot/page/_toolforge.py", line 205, in authorship 09:56:17 raise pywikibot.exceptions.Error(msg) from None 09:56:17 pywikibot.exceptions.Error: Unknown 09:56:17 /src/pywikibot/page/_toolforge.py:77: UnexpectedException Also most github action also fails: https://github.com/wikimedia/pywikibot/actions TASK DETAIL https://phabricator.wikimedia.org/T381262 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, Xqt, pywikibot-bugs-list, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Aram, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, binbot, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Krenair
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
