Xqt created this task. Xqt added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION Python 2 fails searching similar script if only one is found C:\pwb\GIT\core>py -2 pwb.py commons_cat WARNING: C:\pwb\GIT\core\pywikibot\tools\ip.py:71: ImportWarning: Importing ipad dr.IPAddress failed: No module named ipaddr Importing ipaddress.ip_address failed: No module named ipaddress Please install ipaddr 2.1.10+ or ipaddress. % (_ipaddr_e, _ipaddress_e), ImportWarning) WARNING: C:\pwb\GIT\core\pywikibot\__init__.py:132: FutureWarning: Python 2.7.13 will be dropped in 2020. It is recommended to use Python 3.5 or above. See T213287 for further information. FutureWarning) ERROR: commons_cat.py not found! Misspelling? Traceback (most recent call last): File "pwb.py", line 298, in <module> if not main(): File "pwb.py", line 264, in main filename = find_filename(filename) File "pwb.py", line 250, in find_filename filename = find_alternates(filename, script_paths) File "pwb.py", line 209, in find_alternates script, wait_time)) File "C:\pwb\GIT\core\pywikibot\tools\formatter.py", line 178, in color_format return _ColorFormatter().format(text, *args, **kwargs) File "C:\Python27\lib\string.py", line 559, in format return self.vformat(format_string, args, kwargs) File "C:\pwb\GIT\core\pywikibot\tools\formatter.py", line 160, in vformat kwargs) File "C:\Python27\lib\string.py", line 563, in vformat result = self._vformat(format_string, args, kwargs, used_args, 2) File "C:\pwb\GIT\core\pywikibot\tools\formatter.py", line 120, in _vformat result = super(_ColorFormatter, self)._vformat(*args, **kwargs) File "C:\Python27\lib\string.py", line 585, in _vformat obj, arg_used = self.get_field(field_name, args, kwargs) File "C:\Python27\lib\string.py", line 646, in get_field obj = self.get_value(first, args, kwargs) File "C:\pwb\GIT\core\pywikibot\tools\formatter.py", line 77, in get_value return super(_ColorFormatter, self).get_value(key, args, kwargs) File "C:\Python27\lib\string.py", line 605, in get_value return kwargs[key] KeyError: u'' CRITICAL: Exiting due to uncaught exception <type 'exceptions.KeyError'> C:\pwb\GIT\core> TASK DETAIL https://phabricator.wikimedia.org/T224140 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, pywikibot-bugs-list, Xqt, Viztor, DannyS712, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs