Last modified: 2014-10-22 22:32:02 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 T60574, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58574 - unicodeDecodeError in url2unicode()
unicodeDecodeError in url2unicode()
Status: NEW
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
All All
: Normal normal
: ---
Assigned To: Pywikipedia bugs
Depends on:
Blocks: pwb20
  Show dependency treegraph
Reported: 2013-12-17 12:00 UTC by xqt
Modified: 2014-10-22 22:32 UTC (History)
2 users (show)

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


Description xqt 2013-12-17 12:00:36 UTC
Historia de Cerdeña -> corresponding page is Història de Sardenya
Traceback (most recent call last):
  File "C:\pwb\core\", line 135, in <module>
    run_python_file(fn, argv, argvu)
  File "C:\pwb\core\", line 67, in run_python_file
    exec(compile(source, filename, "exec"), main_mod.__dict__)
  File "C:\pwb\core\scripts\", line 683, in <module>
  File "C:\pwb\core\scripts\", line 676, in main
  File "C:\pwb\core\scripts\", line 285, in run
  File "C:\pwb\core\scripts\", line 320, in run_good
    self.treat(code, task)
  File "C:\pwb\core\scripts\", line 372, in treat
    self.featuredWithInterwiki(fromsite, process)
  File "C:\pwb\core\scripts\", line 612, in featuredWithInterwiki
    atrans.put(text, comment)
  File "C:\pwb\core\pywikibot\", line 906, in put
    async=async, callback=callback, **kwargs)
  File "C:\pwb\core\pywikibot\", line 827, in save
  File "C:\pwb\core\pywikibot\", line 834, in _save
    comment = self._cosmetic_changes_hook(comment) or comment
  File "C:\pwb\core\pywikibot\", line 884, in _cosmetic_changes_hook
    self.text = ccToolkit.change(old)
  File "C:\pwb\core\scripts\", line 174, in change
    text = self.cleanUpLinks(text)
  File "C:\pwb\core\scripts\", line 510, in cleanUpLinks
  File "C:\pwb\core\pywikibot\", line 208, in replaceExcept
    replacement = new(match)
  File "C:\pwb\core\scripts\", line 396, in handleOneLink
    if not
  File "C:\pwb\core\pywikibot\", line 381, in isInterwikiLink
    linkfam, linkcode = pywikibot.Link(text, self).parse_site()
  File "C:\pwb\core\pywikibot\", line 3102, in __init__
    t = url2unicode(t, site=self._source)
  File "C:\pwb\core\pywikibot\", line 3546, in url2unicode
    raise firstException
UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 12: invalid
start byte

Unfortunately the title is not printed to specify that bug

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