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
https://bugzilla.wikimedia.org/show_bug.cgi?id=57726
--- Comment #1 from Gerrit Notification Bot gerritadmin@wikimedia.org --- 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
https://bugzilla.wikimedia.org/show_bug.cgi?id=57726
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |PATCH_TO_REVIEW Ever confirmed|0 |1
https://bugzilla.wikimedia.org/show_bug.cgi?id=57726
--- Comment #2 from Gerrit Notification Bot gerritadmin@wikimedia.org --- 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
https://bugzilla.wikimedia.org/show_bug.cgi?id=57726
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Normal CC| |info@gno.de Component|interwiki.py |General Version|compat (1.0) |unspecified
https://bugzilla.wikimedia.org/show_bug.cgi?id=57726
--- Comment #3 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 98376 merged by jenkins-bot: (Bug 57726) add variant unicode string, not a list
https://gerrit.wikimedia.org/r/98376
https://bugzilla.wikimedia.org/show_bug.cgi?id=57726
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED Resolution|--- |FIXED
https://bugzilla.wikimedia.org/show_bug.cgi?id=57726
--- Comment #4 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 98374 merged by Xqt: (Bug 57726) add variant unicode string, not a list
https://gerrit.wikimedia.org/r/98374
https://bugzilla.wikimedia.org/show_bug.cgi?id=57726
mastigm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |---
--- Comment #5 from mastigm@gmail.com --- 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&ol...
https://bugzilla.wikimedia.org/show_bug.cgi?id=57726
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |FIXED
--- Comment #6 from xqt info@gno.de --- This is a new bug. I notices it at bug 58177
pywikipedia-bugs@lists.wikimedia.org