JAnD created this task. JAnD added a subscriber: JAnD. JAnD added projects: pywikibot-core, Pywikibot-interwiki.py. Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION Interwiki bot (core) crashes on redirected categories.
pwb.py interwiki -family:wiktionary -start:category:! -lang:sg
```
Retrieving 10 pages from wiktionary:de. WARNING: D:\pwb\pywikibot\family.py:900: FamilyMaintenanceWarning: Family name w ikimediachapter does not match family module name wikimedia Retrieving 10 pages from wiktionary:uz. Retrieving 10 pages from wiktionary:ro. Retrieving 10 pages from wiktionary:tn. Dump sg (wiktionary) appended. Traceback (most recent call last): File "D:\pwb\pwb.py", line 213, in <module> run_python_file(filename, argv, argvu, file_package) File "D:\pwb\pwb.py", line 82, in run_python_file main_mod.__dict__) File ".\scripts\interwiki.py", line 2645, in <module> main() File ".\scripts\interwiki.py", line 2620, in main bot.run() File ".\scripts\interwiki.py", line 2360, in run self.queryStep() File ".\scripts\interwiki.py", line 2333, in queryStep self.oneQuery() File ".\scripts\interwiki.py", line 2329, in oneQuery subject.batchLoaded(self) File ".\scripts\interwiki.py", line 1455, in batchLoaded elif page.isEmpty() and not page.isCategory(): File "D:\pwb\pywikibot\page.py", line 688, in isEmpty txt = self.get() File "D:\pwb\pywikibot\tools.py", line 869, in wrapper return obj(*__args, **__kw) File "D:\pwb\pywikibot\page.py", line 354, in get self._getInternals(sysop) File "D:\pwb\pywikibot\page.py", line 386, in _getInternals raise self._getexception pywikibot.exceptions.IsRedirectPage: Page [[tn:Category:Inli]] is a redirect pag e. <class 'pywikibot.exceptions.IsRedirectPage'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort ``` Also it does not work correctly with -ignore parameter
``` D:\pwb>pwb.py interwiki -family:wiktionary -lang:sg -start:category:! -whenneede d -untranslated -ignore:tn:category:Inli Traceback (most recent call last): File "D:\pwb\pwb.py", line 213, in <module> run_python_file(filename, argv, argvu, file_package) File "D:\pwb\pwb.py", line 82, in run_python_file main_mod.__dict__) File ".\scripts\interwiki.py", line 2645, in <module> main() File ".\scripts\interwiki.py", line 2486, in main if globalvar.readOptions(arg): File ".\scripts\interwiki.py", line 581, in readOptions self.ignore += [pywikibot.Page(None, p) for p in arg[8:].split(",")] File "D:\pwb\pywikibot\tools.py", line 869, in wrapper return obj(*__args, **__kw) File "D:\pwb\pywikibot\tools.py", line 869, in wrapper return obj(*__args, **__kw) File "D:\pwb\pywikibot\page.py", line 1858, in __init__ super(Page, self).__init__(source, title, ns) File "D:\pwb\pywikibot\page.py", line 133, in __init__ % (type(source), source)) pywikibot.exceptions.Error: Invalid argument type '<type 'NoneType'>' in Page co nstructor: None <class 'pywikibot.exceptions.Error'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
```
TASK DETAIL https://phabricator.wikimedia.org/T89809
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: JAnD Cc: pywikipedia-bugs, JAnD, Aklapper, jayvdb
JAnD triaged this task as "High" priority. JAnD set Security to None.
TASK DETAIL https://phabricator.wikimedia.org/T89809
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: JAnD Cc: pywikipedia-bugs, JAnD, Aklapper, jayvdb
JAnD added a comment.
See also 87222
TASK DETAIL https://phabricator.wikimedia.org/T89809
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: JAnD Cc: pywikipedia-bugs, JAnD, Aklapper, jayvdb
Mpaa added a subscriber: Mpaa. Mpaa added a comment.
Regarding the first point, the bot crashes because the page is a redirect, not because it is a Category. I was not able to reproduce it. And it is quite strange it reaches line 1455 as it should be caught by line 1320:
1320 elif page.isRedirectPage() or page.isCategoryRedirect(): ... continue
TASK DETAIL https://phabricator.wikimedia.org/T89809
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Mpaa Cc: Mpaa, JAnD, Aklapper, jayvdb, pywikipedia-bugs
Mpaa added a comment.
In https://phabricator.wikimedia.org/T89809#1045900, @JAnD wrote:
See also 87222
https://phabricator.wikimedia.org/T87222
TASK DETAIL https://phabricator.wikimedia.org/T89809
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Mpaa Cc: Mpaa, JAnD, Aklapper, jayvdb, pywikipedia-bugs
JAnD added a comment.
Not only category redirects: try interwiki for sk:femeia
pwb.py interwiki femeia -family:wiktionary -wiktionary -lang:sk
TASK DETAIL https://phabricator.wikimedia.org/T89809
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: JAnD Cc: Mpaa, JAnD, Aklapper, jayvdb, pywikipedia-bugs
Mpaa added a comment.
I was not able to reproduce this one as well. Are you using the latest version?
TASK DETAIL https://phabricator.wikimedia.org/T89809
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Mpaa Cc: Mpaa, JAnD, Aklapper, jayvdb, pywikipedia-bugs
Ladsgroup moved this task to core problems on the Pywikibot-interwiki.py workboard.
TASK DETAIL https://phabricator.wikimedia.org/T89809
WORKBOARD https://phabricator.wikimedia.org/project/board/100/
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Ladsgroup Cc: Mpaa, JAnD, Aklapper, jayvdb, pywikipedia-bugs
Ladsgroup closed this task as "Invalid".
TASK DETAIL https://phabricator.wikimedia.org/T89809
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Ladsgroup Cc: Mpaa, JAnD, Aklapper, jayvdb, pywikipedia-bugs
Ladsgroup added a subscriber: Ladsgroup. Ladsgroup added a comment.
Feel free to repoen it if It happens in an updated version of pywikibot.
TASK DETAIL https://phabricator.wikimedia.org/T89809
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Ladsgroup Cc: Ladsgroup, Mpaa, JAnD, Aklapper, jayvdb, pywikipedia-bugs
pywikipedia-bugs@lists.wikimedia.org