Last modified: 2013-12-08 09:40:28 UTC
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
Change 98374 had a related patch set uploaded by Xqt: (Bug 57726) add variant unicode string, not a list https://gerrit.wikimedia.org/r/98374
Change 98376 had a related patch set uploaded by Xqt: (Bug 57726) add variant unicode string, not a list https://gerrit.wikimedia.org/r/98376
Change 98376 merged by jenkins-bot: (Bug 57726) add variant unicode string, not a list https://gerrit.wikimedia.org/r/98376
Change 98374 merged by Xqt: (Bug 57726) add variant unicode string, not a list https://gerrit.wikimedia.org/r/98374
After a patch this behaviour has been removed but now bot removes everything except interwikis pl.wiktionary: $ python interwiki.py -wiktionary -top -page:"a menudo" + [[en:a menudo]] [[es:a menudo]] [[fr:a menudo]] [[ko:a menudo]] [[li:a menudo]] [[hu:a menudo]] [[mg:a menudo]] [[chr:a menudo]] - == [[a]] [[menudo]] ({{język hiszpański}}) == - {{wymowa}} {{IPA3|a meˈnuðo}} - {{znaczenia}} - ''związek wyrazów w funkcji przysłówka'' - : (1.1) [[często]] - {{odmiana}} - {{przykłady}} - : (1.1) - {{składnia}} - {{kolokacje}} - {{synonimy}} - {{antonimy}} - : (1.1) [[raramente]] - {{hiperonimy}} - {{hiponimy}} - {{holonimy}} - {{meronimy}} - {{pokrewne}} - {{frazeologia}} - {{etymologia}} - {{uwagi}} - {{źródła}} https://pl.wiktionary.org/w/index.php?title=a_menudo&diff=3941919&oldid=3941910
This is a new bug. I notices it at bug 58177