Last modified: 2013-12-08 09:40:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T59726, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57726 - interwiki on Wiktionary Type Error
interwiki on Wiktionary Type Error
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-28 22:37 UTC by masti
Modified: 2013-12-08 09:40 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description masti 2013-11-28 22:37:45 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
Comment 1 Gerrit Notification Bot 2013-12-01 14:17:08 UTC
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
Comment 2 Gerrit Notification Bot 2013-12-01 14:25:35 UTC
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
Comment 3 Gerrit Notification Bot 2013-12-03 21:25:21 UTC
Change 98376 merged by jenkins-bot:
(Bug 57726) add variant unicode string, not a list

https://gerrit.wikimedia.org/r/98376
Comment 4 Gerrit Notification Bot 2013-12-04 05:33:42 UTC
Change 98374 merged by Xqt:
(Bug 57726) add variant unicode string, not a list

https://gerrit.wikimedia.org/r/98374
Comment 5 masti 2013-12-07 15:59:12 UTC
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
Comment 6 xqt 2013-12-08 09:40:28 UTC
This is a new bug. I notices it at bug 58177

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links