[Pywikipedia-bugs] [ pywikipediabot-Bugs-3426312 ] interwiki is broken in pywikibot

SourceForge.net noreply at sourceforge.net
Sun Oct 30 20:35:14 UTC 2011


Bugs item #3426312, was opened at 2011-10-20 12:10
Message generated for change (Comment added) made by xqt
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3426312&group_id=93107

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: interwiki
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Nakor Wikipedia (nakor-wikipedia)
>Assigned to: xqt (xqt)
Summary: interwiki is broken in pywikibot

Initial Comment:
$ python interwiki.py Pop rock
Retrieving 1 pages from wikipedia:fr.
[[fr:Pop rock]]: [[fr:Pop rock]] gives new interwiki [[ar:بوب روك]]
[[fr:Pop rock]]: [[fr:Pop rock]] gives new interwiki [[be-x-old:Поп-рок]]
[[fr:Pop rock]]: [[fr:Pop rock]] gives new interwiki [[bg:Поп рок]]
[[fr:Pop rock]]: [[fr:Pop rock]] gives new interwiki [[ca:Pop rock]]
[[fr:Pop rock]]: [[fr:Pop rock]] gives new interwiki [[cs:Pop rock]]
[[fr:Pop rock]]: [[fr:Pop rock]] gives new interwiki [[da:Poprock]]
[[fr:Pop rock]]: [[fr:Pop rock]] gives new interwiki [[de:Pop-Rock]]
[[fr:Pop rock]]: [[fr:Pop rock]] gives new interwiki [[en:Pop rock]]
[[fr:Pop rock]]: [[fr:Pop rock]] gives new interwiki [[es:Pop rock]]
[[fr:Pop rock]]: [[fr:Pop rock]] gives new interwiki [[eu:Pop rock]]
Retrieving 1 pages from wikipedia:en.
[[fr:Pop rock]]: [[en:Pop rock]] gives new interwiki [[fa:پاپ-راک]]
Retrieving 1 pages from wikipedia:fa.
Retrieving 1 pages from wikipedia:ca.
Retrieving 1 pages from wikipedia:eu.
Retrieving 1 pages from wikipedia:da.
Retrieving 1 pages from wikipedia:bg.
Retrieving 1 pages from wikipedia:be-x-old.
Retrieving 1 pages from wikipedia:de.
Retrieving 1 pages from wikipedia:es.
Retrieving 1 pages from wikipedia:cs.
Retrieving 1 pages from wikipedia:ar.
======Post-processing [[fr:Pop rock]]======
Dump fr (wikipedia) appended.
Traceback (most recent call last):
  File "/home/nakor/sources/pywikipediabot/pywikibot/scripts/interwiki.py", line 2455, in <module>
    main()
  File "/home/nakor/sources/pywikipediabot/pywikibot/scripts/interwiki.py", line 2429, in main
    bot.run()
  File "/home/nakor/sources/pywikipediabot/pywikibot/scripts/interwiki.py", line 2193, in run
    self.queryStep()
  File "/home/nakor/sources/pywikipediabot/pywikibot/scripts/interwiki.py", line 2171, in queryStep
    subj.finish(self)
  File "/home/nakor/sources/pywikipediabot/pywikibot/scripts/interwiki.py", line 1630, in finish
    if self.replaceLinks(page, new, bot):
  File "/home/nakor/sources/pywikipediabot/pywikibot/scripts/interwiki.py", line 1744, in replaceLinks
    insite=page.site)
  File "/home/nakor/sources/pywikipediabot/pywikibot/scripts/interwiki.py", line 2229, in compareLanguages
    if not pywikibot.unicode_error:
AttributeError: 'module' object has no attribute 'unicode_error'



$ python version.py
python: can't open file 'version.py': [Errno 2] No such file or directory


----------------------------------------------------------------------

>Comment By: xqt (xqt)
Date: 2011-10-30 21:35

Message:
fixed in r9703

----------------------------------------------------------------------

Comment By: xqt (xqt)
Date: 2011-10-25 00:27

Message:
depends rewrite branch only. there is no initial unicode check.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3426312&group_id=93107



More information about the Pywikipedia-bugs mailing list