https://bugzilla.wikimedia.org/show_bug.cgi?id=57726
Web browser: --- Bug ID: 57726 Summary: interwiki on Wiktionary Type Error Product: Pywikibot Version: compat (1.0) Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Unprioritized Component: interwiki.py Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: mastigm@gmail.com Classification: Unclassified Mobile Platform: ---
While running compat on pl.wiktionary the bot stops with "TypeError: coercing to Unicode: need string or buffer, list found" error
sample call: $python interwiki.py -wiktionary -top -auto -start:"a fortiori"
result: ======Post-processing [[pl:a menudo]]====== Updating links on page [[pl:a menudo]]. Changes to be made: Robot: Adding [[chr:a menudo]], [[fr:a menudo]] Dump pl (wiktionary) appended. Traceback (most recent call last): File "interwiki.py", line 2658, in <module> main() File "interwiki.py", line 2632, in main bot.run() File "interwiki.py", line 2350, in run self.queryStep() File "interwiki.py", line 2328, in queryStep subj.finish() File "interwiki.py", line 1766, in finish if self.replaceLinks(page, new): File "interwiki.py", line 1931, in replaceLinks template=template) File "/usr/home/masti/pw/cwikt/pywikibot/textlib.py", line 521, in replaceLanguageLinks else separator] + TypeError: coercing to Unicode: need string or buffer, list found
$ python version.py Pywikibot: [https] r/pywikibot/compat (r10525, 794e2a6, 2013/11/25, 20:23:50, OUTDATED) Release version: 1.0b1 Python: 2.7.5 (default, Jul 7 2013, 01:26:18) [GCC 4.3.4] config-settings: use_api = True use_api_login = True unicode test: ok