Last modified: 2014-10-21 05:44: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 T71476, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69476 - Non-ascii path results in UnicodeDecodeError
Non-ascii path results in UnicodeDecodeError
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
All All
: High major
: ---
Assigned To: Pywikipedia bugs
Depends on:
Blocks: pwb20
  Show dependency treegraph
Reported: 2014-08-13 15:38 UTC by Wesalius
Modified: 2014-10-21 05:44 UTC (History)
2 users (show)

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


Description Wesalius 2014-08-13 15:38:14 UTC
when running recent (13.8.2014) core pywikibot through I get this error:

Traceback (most recent call last):
  File "", line 171, in <module>
    run_python_file(fn, argv, argvu)
  File "", line 69, in run_python_file
    exec(compile(source, filename, "exec"), main_mod.__dict__)
  File "scripts\", line 116, in <module>
  File "scripts\", line 69, in main
    for arg in pywikibot.handleArgs(*args):
  File "C:\Users\JonßÜ\Desktop\Jonas\core\pywikibot\", line 663, in handleArgs
  File "C:\Users\JonßÜ\Desktop\Jonas\core\pywikibot\", line 245, in init_handlers
  File "C:\Users\JonßÜ\Desktop\Jonas\core\pywikibot\", line 303, in writelogheader
    log(u'  %(name)s (%(path)s) = %(ver)s' % info)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 12: ordinal not in range(128)
<type 'exceptions.UnicodeDecodeError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort

the path is "....Users\Jonáš\Desktop....". Using bot placed in ascii-only characters path solves the issue.
Comment 1 Gerrit Notification Bot 2014-10-16 16:12:59 UTC
Change 167011 had a related patch set uploaded by John Vandenberg:
Decode __file__ using filesystem encoding
Comment 2 Gerrit Notification Bot 2014-10-20 19:53:30 UTC
Change 167011 merged by jenkins-bot:
Decode __file__ using filesystem encoding
Comment 3 John Mark Vandenberg 2014-10-21 05:44:28 UTC
Please re-open if there are other problems with using a non-ascii path.

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