https://bugzilla.wikimedia.org/show_bug.cgi?id=72669
Bug ID: 72669 Summary: importerror catlib for interwiki.py Product: Pywikibot Version: compat (1.0) Hardware: All OS: All Status: NEW Severity: critical Priority: Unprioritized Component: interwiki.py Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jan.dudik@gmail.com Web browser: --- Mobile Platform: ---
D:\Py\rewrite>pwb.py interwiki -family:wiktionary -cleanup -start:category:Finština -array:50 -query:30 -untranslated
Traceback (most recent call last): File "D:\Py\rewrite\pwb.py", line 178, in <module> run_python_file(fn, argv, argvu) File "D:\Py\rewrite\pwb.py", line 75, in run_python_file exec(compile(source, filename, "exec"), main_mod.__dict__) File "interwiki.py", line 357, in <module> from pywikibot import catlib ImportError: cannot import name catlib <type 'exceptions.ImportError'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
D:\Py\rewrite>
https://bugzilla.wikimedia.org/show_bug.cgi?id=72669
JAn Dudík jan.dudik@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|compat (1.0) |core (2.0)
https://bugzilla.wikimedia.org/show_bug.cgi?id=72669
Fabian CommodoreFabianus@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |UNCONFIRMED CC| |CommodoreFabianus@gmx.de Ever confirmed|1 |0
--- Comment #1 from Fabian CommodoreFabianus@gmx.de --- That doesn't make sense. I can't find any catlib reference in the current version of the repository:
https://github.com/wikimedia/pywikibot-core/search?utf8=%E2%9C%93&q=catl...
As you can see also line 357 doesn't contain a catlib entry:
https://github.com/wikimedia/pywikibot-core/blob/master/scripts/interwiki.py...
https://bugzilla.wikimedia.org/show_bug.cgi?id=72669
Merlijn van Deen valhallasw@arctus.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |valhallasw@arctus.nl Resolution|--- |INVALID
--- Comment #2 from Merlijn van Deen valhallasw@arctus.nl --- That statement: 1) never has existed in core, as catlib doesn't exist there, 2) has been removed in compat in this revision: https://github.com/wikimedia/pywikibot-compat/commit/fcaa349e54e7850e555b878...
So you probably copied an ancient revision of compat interwiki.py into d:\py\rewrite or d:\py\rewrite\scripts.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72669
--- Comment #3 from Fabian CommodoreFabianus@gmx.de --- A bit of nitpick: In core is a catlib.py in pywikibot/compat/catlib.py. But it is just there for backwards compatibility and isn't used by anything (git grep catlib).
https://bugzilla.wikimedia.org/show_bug.cgi?id=72669
--- Comment #4 from JAn Dudík jan.dudik@gmail.com --- (In reply to Merlijn van Deen from comment #2)
That statement:
- never has existed in core, as catlib doesn't exist there,
- has been removed in compat in this revision:
https://github.com/wikimedia/pywikibot-compat/commit/ fcaa349e54e7850e555b878d7b9f5aa0b6edbd7c
So you probably copied an ancient revision of compat interwiki.py into d:\py\rewrite or d:\py\rewrite\scripts.
I found duplicate old interwiki.py in the same directory as pwb.py - bot takes this first instead of scripts/interwiki.py
Now I can run script, but some new errors.
pywikipedia-bugs@lists.wikimedia.org