Xqt created this task. Xqt added a subscriber: Xqt. Xqt added a project: pywikibot-core. Xqt changed Security from none to none.
TASK DESCRIPTION Calling "pwb.py solve_disambiguation" leads to "Sorry, no help available for solve_disambiguation". -v offers more details:
c:\Pywikipedia\ssh\pywikibot\core>pwb.py solve_disambiguation -v The base directory is c:\Pywikipedia\ssh\pywikibot\core === Pywikibot framework v2.0 -- Logging header === COMMAND: ['solve_disambiguation', '-v'] DATE: 2014-12-15 08:14:05.703000 UTC VERSION: [ssh] pywikibot-core (b4162ad, g4759, 2014/12/15, 09:08:41, n/a) CONFIG FILE DIR: c:\Pywikipedia\ssh\pywikibot\core PACKAGES: _ctypes (C:\Python27\DLLs_ctypes.pyd) = 1.1.0 _hashlib (C:\Python27\DLLs_hashlib.pyd) = ?? _socket (C:\Python27\DLLs_socket.pyd) = ?? _ssl (C:\Python27\DLLs_ssl.pyd) = ?? ctypes (C:\Python27\lib\ctypes) = 1.1.0 distutils (C:\Python27\lib\distutils) = 2.7.3 email (C:\Python27\lib\email) = 4.0.3 httplib2 (C:\Pywikipedia\ssh\pywikibot\core\externals\httplib2\python2\httplib 2) = 0.9 logging (C:\Python27\lib\logging) = 0.5.1.2 mwparserfromhell: No module named mwparserfromhell pickle (C:\Python27\lib\pickle.pyc) = $Revision: 72223 $ pywikibot ([path unknown]) = ?? re (C:\Python27\lib\re.pyc) = 2.2.1 scripts (C:\Pywikipedia\ssh\pywikibot\core\scripts) = ?? unicodedata (C:\Python27\DLLs\unicodedata.pyd) = ?? urllib (C:\Python27\lib\urllib.pyc) = 1.17 urllib2 (C:\Python27\lib\urllib2.pyc) = 2.7 MODULES: pywikibot/comms/http.py 7907165 2014-12-06 23:54:46.513785 pywikibot/data/api.py 24dfd91 2014-12-15 06:41:00.813739 pywikibot/textlib.py d37f654 2014-12-15 06:40:33.268163 pywikibot/i18n.py 6b0dede 2014-12-13 14:22:30.813922 pywikibot/comms/threadedhttp.py 8de4213 2014-12-13 14:22:30.780920 pywikibot/date.py 350bdf7 2014-11-01 13:40:35.246925 pywikibot/exceptions.py 0aef6ed 2014-11-29 15:31:46.331948 pywikibot/site.py 16fe681 2014-12-15 06:40:33.256163 pywikibot/bot.py 8643081 2014-12-13 14:22:30.778920 pywikibot/throttle.py f6e6ed2 2014-12-15 06:41:00.251707 pywikibot/page.py 2853387 2014-12-15 06:40:33.224161 pywikibot/editor.py 1f877e3 2014-12-13 14:22:30.802921 pywikibot/family.py a4c5d80 2014-12-13 14:22:30.810922 pywikibot/plural.py 02a50e4 2014-09-10 16:33:32.490942 pywikibot/version.py c0a93dd 2014-12-13 14:22:30.851924 pywikibot/userinterfaces/terminal_interface.py b0e2743 2014-09-10 16:33:32.511 944 pywikibot/config2.py 3b4b618 2014-12-15 06:41:00.211704 pywikibot/userinterfaces/terminal_interface_win32.py 7e3fd89 2014-11-01 13:40: 35.397933 pywikibot/userinterfaces/terminal_interface_base.py 3336392 2014-12-13 14:22:3 0.849924 pywikibot/pagegenerators.py 1e30a03 2014-12-15 06:40:33.235162 pywikibot/tools.py 7ff4008 2014-11-29 15:31:46.389951 pywikibot/diff.py a93a90b 2014-11-30 20:26:35.804525 pywikibot/login.py db7be8f 2014-11-19 11:56:39.071554 pywikibot/userinterfaces/transliteration.py 1d8e217 2014-09-10 16:33:32.518945
=== === === === === === === === === === === === === === Pywikibot re8ae93b7ecd44b74cfef601db1fec8c10224e78c Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] Sorry, no help available for solve_disambiguation showHelp: Traceback (most recent call last): File "C:\Pywikipedia\ssh\pywikibot\core\pywikibot\bot.py", line 838, in showHe lp helpText = helpText.decode('utf-8') File "C:\Python27\lib\encodings\utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 127 8: ordinal not in range(128) Global arguments available for all bots: (...)
TASK DETAIL https://phabricator.wikimedia.org/T78519
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt Cc: Aklapper, Xqt, jayvdb, pywikipedia-bugs
gerritbot added a project: Patch-For-Review. gerritbot added a comment.
Change 179874 had a related patch set uploaded (by Xqt): bugfix for bug https://phabricator.wikimedia.org/T78519
https://gerrit.wikimedia.org/r/179874
https://phabricator.wikimedia.org/tag/patch-for-review/
TASK DETAIL https://phabricator.wikimedia.org/T78519
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: gerritbot Cc: Aklapper, Xqt, jayvdb, pywikipedia-bugs
jayvdb added a subscriber: jayvdb. jayvdb added a comment.
I can reproduce this with Python 2.7.5
Also occurs for welcome.py
TASK DETAIL https://phabricator.wikimedia.org/T78519
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: Aklapper, Xqt, jayvdb, pywikipedia-bugs
XZise added a subscriber: XZise. XZise added a comment.
I can't reproduce it in 2.6.9 and 2.7.8 but nevertheless the patch looks correct to me: It should happen to all scripts which use a Unicode docstring (docstrings which start with u…). I guess in later versions unicode().decode() is a noop?
TASK DETAIL https://phabricator.wikimedia.org/T78519
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise Cc: Aklapper, Xqt, jayvdb, XZise, pywikipedia-bugs
XZise edited the task description.
TASK DETAIL https://phabricator.wikimedia.org/T78519
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise Cc: Aklapper, Xqt, jayvdb, XZise, pywikipedia-bugs
Xqt added a comment.
+1 I found it with py2.7.3 for all scripts where the doc is an unicode string.
TASK DETAIL https://phabricator.wikimedia.org/T78519
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt Cc: Aklapper, Xqt, jayvdb, XZise, pywikipedia-bugs
gerritbot added a comment.
Change 179874 had a related patch set uploaded (by John Vandenberg): Do not decode docstring when it is already unicode.
https://gerrit.wikimedia.org/r/179874
https://phabricator.wikimedia.org/tag/patch-for-review/
TASK DETAIL https://phabricator.wikimedia.org/T78519
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: gerritbot Cc: Aklapper, Xqt, jayvdb, XZise, pywikipedia-bugs
gerritbot added a comment.
Change 179874 merged by jenkins-bot: Do not decode docstring when it is already unicode.
https://gerrit.wikimedia.org/r/179874
TASK DETAIL https://phabricator.wikimedia.org/T78519
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: gerritbot Cc: Aklapper, Xqt, jayvdb, XZise, pywikipedia-bugs
jayvdb closed this task as "Resolved". jayvdb assigned this task to Xqt.
TASK DETAIL https://phabricator.wikimedia.org/T78519
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt, jayvdb Cc: Aklapper, Xqt, jayvdb, XZise, pywikipedia-bugs
pywikipedia-bugs@lists.wikimedia.org