https://bugzilla.wikimedia.org/show_bug.cgi?id=69476
Bug ID: 69476 Summary: Non-ascii path results in UnicodeDecodeError Product: Pywikibot Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: major Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: aukce59@gmail.com Web browser: --- Mobile Platform: ---
when running recent (13.8.2014) core pywikibot through pwb.py I get this error:
Traceback (most recent call last): File "pwb.py", line 171, in <module> run_python_file(fn, argv, argvu) File "pwb.py", line 69, in run_python_file exec(compile(source, filename, "exec"), main_mod.__dict__) File "scripts\login.py", line 116, in <module> main() File "scripts\login.py", line 69, in main for arg in pywikibot.handleArgs(*args): File "C:\Users\JonßÜ\Desktop\Jonas\core\pywikibot\bot.py", line 663, in handleArgs init_handlers() File "C:\Users\JonßÜ\Desktop\Jonas\core\pywikibot\bot.py", line 245, in init_handlers writelogheader() File "C:\Users\JonßÜ\Desktop\Jonas\core\pywikibot\bot.py", 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.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69476
zhuyifei1999 zhuyifei1999@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |zhuyifei1999@gmail.com Ever confirmed|0 |1
https://bugzilla.wikimedia.org/show_bug.cgi?id=69476
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |High CC| |jayvdb@gmail.com Version|unspecified |core (2.0)
https://bugzilla.wikimedia.org/show_bug.cgi?id=69476
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |70936
https://bugzilla.wikimedia.org/show_bug.cgi?id=69476
--- Comment #1 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 167011 had a related patch set uploaded by John Vandenberg: Decode __file__ using filesystem encoding
https://gerrit.wikimedia.org/r/167011
https://bugzilla.wikimedia.org/show_bug.cgi?id=69476
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=69476
--- Comment #2 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 167011 merged by jenkins-bot: Decode __file__ using filesystem encoding
https://gerrit.wikimedia.org/r/167011
https://bugzilla.wikimedia.org/show_bug.cgi?id=69476
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED Resolution|--- |FIXED
--- Comment #3 from John Mark Vandenberg jayvdb@gmail.com --- Please re-open if there are other problems with using a non-ascii path.
pywikipedia-bugs@lists.wikimedia.org