Xqt added a comment.
It's urllib rather than urllib3:
[00:22:05]
======================================================================
[00:22:05] ERROR: test_url_encoding_from_basestring
(tests.api_tests.TestUrlEncoding)
[00:22:05] Test encoding basestring values.
[00:22:05]
----------------------------------------------------------------------
[00:22:05] Traceback (most recent call last):
[00:22:05] File "c:\projects\pywikibot-g4xqx\tests\api_tests.py", line
1120, in test_url_encoding_from_basestring
[00:22:05] result = api.encode_url(query)
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
3190, in encode_url
[00:22:05] return urlencode(query)
[00:22:05] File "c:\python27\Lib\urllib.py", line 1344, in urlencode
[00:22:05] v = quote_plus(str(v))
[00:22:05] File "c:\python27\Lib\urllib.py", line 1307, in quote_plus
[00:22:05] return quote(s, safe)
[00:22:05] File "c:\python27\Lib\urllib.py", line 1298, in quote
[00:22:05] if not s.rstrip(safe):
[00:22:05] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in
position 4: ordinal not in range(128)
[00:22:05]
[00:22:05]
======================================================================
[00:22:05] ERROR: test_url_encoding_from_unicode
(tests.api_tests.TestUrlEncoding)
[00:22:05] Test encoding unicode values.
[00:22:05]
----------------------------------------------------------------------
[00:22:05] Traceback (most recent call last):
[00:22:05] File "c:\projects\pywikibot-g4xqx\tests\api_tests.py", line
1109, in test_url_encoding_from_unicode
[00:22:05] result = api.encode_url(query)
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
3190, in encode_url
[00:22:05] return urlencode(query)
[00:22:05] File "c:\python27\Lib\urllib.py", line 1344, in urlencode
[00:22:05] v = quote_plus(str(v))
[00:22:05] File "c:\python27\Lib\urllib.py", line 1307, in quote_plus
[00:22:05] return quote(s, safe)
[00:22:05] File "c:\python27\Lib\urllib.py", line 1298, in quote
[00:22:05] if not s.rstrip(safe):
[00:22:05] UnicodeDecodeError: 'ascii' codec can't decode byte 0xd1 in
position 0: ordinal not in range(128)
[00:22:05]
[00:22:05]
======================================================================
[00:22:05] ERROR: test_allpages_default
(tests.pagegenerators_tests.TestFactoryGenerator)
[00:22:05] Test allpages generator.
[00:22:05]
----------------------------------------------------------------------
[00:22:05] Traceback (most recent call last):
[00:22:05] File
"c:\projects\pywikibot-g4xqx\tests\pagegenerators_tests.py", line 867, in
test_allpages_default
[00:22:05] pages = set(gen)
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
2807, in __iter__
[00:22:05] self.data = self.request.submit()
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
1970, in submit
[00:22:05] paramstring = self._http_param_string()
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
1586, in _http_param_string
[00:22:05] return encode_url(self._encoded_items())
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
3190, in encode_url
[00:22:05] return urlencode(query)
[00:22:05] File "c:\python27\Lib\urllib.py", line 1344, in urlencode
[00:22:05] v = quote_plus(str(v))
[00:22:05] File "c:\python27\Lib\urllib.py", line 1307, in quote_plus
[00:22:05] return quote(s, safe)
[00:22:05] File "c:\python27\Lib\urllib.py", line 1298, in quote
[00:22:05] if not s.rstrip(safe):
[00:22:05] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in
position 2: ordinal not in range(128)
[00:22:05]
[00:22:05]
======================================================================
[00:22:05] ERROR: test_regexfilter_default
(tests.pagegenerators_tests.TestFactoryGenerator)
[00:22:05] Test allpages generator with titleregex filter.
[00:22:05]
----------------------------------------------------------------------
[00:22:05] Traceback (most recent call last):
[00:22:05] File
"c:\projects\pywikibot-g4xqx\tests\pagegenerators_tests.py", line 894, in
test_regexfilter_default
[00:22:05] pages = list(gen)
[00:22:05] File
"c:\projects\pywikibot-g4xqx\pywikibot\pagegenerators.py", line 1951, in
titlefilter
[00:22:05] for page in generator:
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
2807, in __iter__
[00:22:05] self.data = self.request.submit()
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
1970, in submit
[00:22:05] paramstring = self._http_param_string()
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
1586, in _http_param_string
[00:22:05] return encode_url(self._encoded_items())
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
3190, in encode_url
[00:22:05] return urlencode(query)
[00:22:05] File "c:\python27\Lib\urllib.py", line 1344, in urlencode
[00:22:05] v = quote_plus(str(v))
[00:22:05] File "c:\python27\Lib\urllib.py", line 1307, in quote_plus
[00:22:05] return quote(s, safe)
[00:22:05] File "c:\python27\Lib\urllib.py", line 1298, in quote
[00:22:05] if not s.rstrip(safe):
[00:22:05] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in
position 2: ordinal not in range(128)
[00:22:05]
[00:22:05]
======================================================================
[00:22:05] ERROR: test_regexfilternot_default
(tests.pagegenerators_tests.TestFactoryGenerator)
[00:22:05] Test allpages generator with titleregexnot filter.
[00:22:05]
----------------------------------------------------------------------
[00:22:05] Traceback (most recent call last):
[00:22:05] File
"c:\projects\pywikibot-g4xqx\tests\pagegenerators_tests.py", line 934, in
test_regexfilternot_default
[00:22:05] pages = list(gen)
[00:22:05] File
"c:\projects\pywikibot-g4xqx\pywikibot\pagegenerators.py", line 1951, in
titlefilter
[00:22:05] for page in generator:
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
2807, in __iter__
[00:22:05] self.data = self.request.submit()
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
1970, in submit
[00:22:05] paramstring = self._http_param_string()
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
1586, in _http_param_string
[00:22:05] return encode_url(self._encoded_items())
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
3190, in encode_url
[00:22:05] return urlencode(query)
[00:22:05] File "c:\python27\Lib\urllib.py", line 1344, in urlencode
[00:22:05] v = quote_plus(str(v))
[00:22:05] File "c:\python27\Lib\urllib.py", line 1307, in quote_plus
[00:22:05] return quote(s, safe)
[00:22:05] File "c:\python27\Lib\urllib.py", line 1298, in quote
[00:22:05] if not s.rstrip(safe):
[00:22:05] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in
position 2: ordinal not in range(128)
[00:22:05]
[00:22:05]
======================================================================
[00:22:05] ERROR: testFileTitle (tests.page_tests.TestPageObjectEnglish)
[00:22:05] Test title() method options in File namespace.
[00:22:05]
----------------------------------------------------------------------
[00:22:05] Traceback (most recent call last):
[00:22:05] File "c:\projects\pywikibot-g4xqx\tests\page_tests.py", line
251, in testFileTitle
[00:22:05] self.assertEqual(p2.title(as_url=True),
[00:22:05] File
"c:\projects\pywikibot-g4xqx\pywikibot\tools\__init__.py", line 1757, in wrapper
[00:22:05] return obj(*__args, **__kw)
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\page.py", line
373, in title
[00:22:05] title = quote_from_bytes(encoded_title, safe='')
[00:22:05] File "c:\python27\Lib\urllib.py", line 1298, in quote
[00:22:05] if not s.rstrip(safe):
[00:22:05] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in
position 11: ordinal not in range(128)
[00:22:05]
[00:22:05]
======================================================================
[00:22:05] ERROR: test_archivebot_hu (tests.archivebot_tests.TestArchiveBot)
[00:22:05] Test archivebot for one site on wikipedia:hu
[00:22:05]
----------------------------------------------------------------------
[00:22:05] Traceback (most recent call last):
[00:22:05] File "c:\projects\pywikibot-g4xqx\tests\aspects.py", line 748,
in wrapped_method
[00:22:05] func(self, key)
[00:22:05] File "c:\projects\pywikibot-g4xqx\tests\archivebot_tests.py",
line 138, in test_archivebot
[00:22:05] talk = archivebot.DiscussionPage(page, None)
[00:22:05] File "c:\projects\pywikibot-g4xqx\scripts\archivebot.py", line
427, in __init__
[00:22:05] self.load_page()
[00:22:05] File "c:\projects\pywikibot-g4xqx\scripts\archivebot.py", line
445, in load_page
[00:22:05] text = self.get()
[00:22:05] File
"c:\projects\pywikibot-g4xqx\pywikibot\tools\__init__.py", line 1840, in wrapper
[00:22:05] return obj(*new_args, **new_kwargs)
[00:22:05] File
"c:\projects\pywikibot-g4xqx\pywikibot\tools\__init__.py", line 1757, in wrapper
[00:22:05] return obj(*__args, **__kw)
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\page.py", line
488, in get
[00:22:05] self._getInternals()
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\page.py", line
518, in _getInternals
[00:22:05] self.site.loadrevisions(self, content=True)
[00:22:05] File
"c:\projects\pywikibot-g4xqx\pywikibot\tools\__init__.py", line 1757, in wrapper
[00:22:05] return obj(*__args, **__kw)
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\site.py", line
4119, in loadrevisions
[00:22:05] for pagedata in rvgen:
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
2983, in __iter__
[00:22:05] for result in super(PropertyGenerator, self).__iter__():
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
2807, in __iter__
[00:22:05] self.data = self.request.submit()
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
2234, in submit
[00:22:05] self._data = super(CachedRequest, self).submit()
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
1970, in submit
[00:22:05] paramstring = self._http_param_string()
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
1586, in _http_param_string
[00:22:05] return encode_url(self._encoded_items())
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
3190, in encode_url
[00:22:05] return urlencode(query)
[00:22:05] File "c:\python27\Lib\urllib.py", line 1344, in urlencode
[00:22:05] v = quote_plus(str(v))
[00:22:05] File "c:\python27\Lib\urllib.py", line 1307, in quote_plus
[00:22:05] return quote(s, safe)
[00:22:05] File "c:\python27\Lib\urllib.py", line 1298, in quote
[00:22:05] if not s.rstrip(safe):
[00:22:05] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in
position 9: ordinal not in range(128)
[00:22:05]
[00:22:05]
======================================================================
[00:22:05] ERROR: test_archivebot_ja (tests.archivebot_tests.TestArchiveBot)
[00:22:05] Test archivebot for one site on wikipedia:ja
[00:22:05]
----------------------------------------------------------------------
[00:22:05] Traceback (most recent call last):
[00:22:05] File "c:\projects\pywikibot-g4xqx\tests\aspects.py", line 748,
in wrapped_method
[00:22:05] func(self, key)
[00:22:05] File "c:\projects\pywikibot-g4xqx\tests\archivebot_tests.py",
line 138, in test_archivebot
[00:22:05] talk = archivebot.DiscussionPage(page, None)
[00:22:05] File "c:\projects\pywikibot-g4xqx\scripts\archivebot.py", line
427, in __init__
[00:22:05] self.load_page()
[00:22:05] File "c:\projects\pywikibot-g4xqx\scripts\archivebot.py", line
445, in load_page
[00:22:05] text = self.get()
[00:22:05] File
"c:\projects\pywikibot-g4xqx\pywikibot\tools\__init__.py", line 1840, in wrapper
[00:22:05] return obj(*new_args, **new_kwargs)
[00:22:05] File
"c:\projects\pywikibot-g4xqx\pywikibot\tools\__init__.py", line 1757, in wrapper
[00:22:05] return obj(*__args, **__kw)
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\page.py", line
488, in get
[00:22:05] self._getInternals()
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\page.py", line
518, in _getInternals
[00:22:05] self.site.loadrevisions(self, content=True)
[00:22:05] File
"c:\projects\pywikibot-g4xqx\pywikibot\tools\__init__.py", line 1757, in wrapper
[00:22:05] return obj(*__args, **__kw)
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\site.py", line
4119, in loadrevisions
[00:22:05] for pagedata in rvgen:
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
2983, in __iter__
[00:22:05] for result in super(PropertyGenerator, self).__iter__():
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
2807, in __iter__
[00:22:05] self.data = self.request.submit()
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
2234, in submit
[00:22:05] self._data = super(CachedRequest, self).submit()
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
1970, in submit
[00:22:05] paramstring = self._http_param_string()
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
1586, in _http_param_string
[00:22:05] return encode_url(self._encoded_items())
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
3190, in encode_url
[00:22:05] return urlencode(query)
[00:22:05] File "c:\python27\Lib\urllib.py", line 1344, in urlencode
[00:22:05] v = quote_plus(str(v))
[00:22:05] File "c:\python27\Lib\urllib.py", line 1307, in quote_plus
[00:22:05] return quote(s, safe)
[00:22:05] File "c:\python27\Lib\urllib.py", line 1298, in quote
[00:22:05] if not s.rstrip(safe):
[00:22:05] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in
position 0: ordinal not in range(128)
[00:22:05]
[00:22:05]
======================================================================
[00:22:05] ERROR: test_archivebot_sv (tests.archivebot_tests.TestArchiveBot)
[00:22:05] Test archivebot for one site on wikipedia:sv
[00:22:05]
----------------------------------------------------------------------
[00:22:05] Traceback (most recent call last):
[00:22:05] File "c:\projects\pywikibot-g4xqx\tests\aspects.py", line 748,
in wrapped_method
[00:22:05] func(self, key)
[00:22:05] File "c:\projects\pywikibot-g4xqx\tests\archivebot_tests.py",
line 138, in test_archivebot
[00:22:05] talk = archivebot.DiscussionPage(page, None)
[00:22:05] File "c:\projects\pywikibot-g4xqx\scripts\archivebot.py", line
427, in __init__
[00:22:05] self.load_page()
[00:22:05] File "c:\projects\pywikibot-g4xqx\scripts\archivebot.py", line
445, in load_page
[00:22:05] text = self.get()
[00:22:05] File
"c:\projects\pywikibot-g4xqx\pywikibot\tools\__init__.py", line 1840, in wrapper
[00:22:05] return obj(*new_args, **new_kwargs)
[00:22:05] File
"c:\projects\pywikibot-g4xqx\pywikibot\tools\__init__.py", line 1757, in wrapper
[00:22:05] return obj(*__args, **__kw)
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\page.py", line
488, in get
[00:22:05] self._getInternals()
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\page.py", line
518, in _getInternals
[00:22:05] self.site.loadrevisions(self, content=True)
[00:22:05] File
"c:\projects\pywikibot-g4xqx\pywikibot\tools\__init__.py", line 1757, in wrapper
[00:22:05] return obj(*__args, **__kw)
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\site.py", line
4119, in loadrevisions
[00:22:05] for pagedata in rvgen:
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
2983, in __iter__
[00:22:05] for result in super(PropertyGenerator, self).__iter__():
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
2807, in __iter__
[00:22:05] self.data = self.request.submit()
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
2234, in submit
[00:22:05] self._data = super(CachedRequest, self).submit()
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
1970, in submit
[00:22:05] paramstring = self._http_param_string()
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
1586, in _http_param_string
[00:22:05] return encode_url(self._encoded_items())
[00:22:05] File "c:\projects\pywikibot-g4xqx\pywikibot\data\api.py", line
3190, in encode_url
[00:22:05] return urlencode(query)
[00:22:05] File "c:\python27\Lib\urllib.py", line 1344, in urlencode
[00:22:05] v = quote_plus(str(v))
[00:22:05] File "c:\python27\Lib\urllib.py", line 1307, in quote_plus
[00:22:05] return quote(s, safe)
[00:22:05] File "c:\python27\Lib\urllib.py", line 1298, in quote
[00:22:05] if not s.rstrip(safe):
[00:22:05] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in
position 3: ordinal not in range(128)
[00:22:05]
TASK DETAIL
https://phabricator.wikimedia.org/T243710
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Dvorapa, Aklapper, pywikibot-bugs-list, Xqt, Un1tY, Zkhalido, Hook696,
Daryl-TTMG, RomaAmorRoma, 0010318400, E.S.A-Sheild, AramBakir, Meekrab2012,
joker88john, Viztor, CucyNoiD, NebulousIris, Wenyi, Gaboe420, Versusxo,
Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Af420, Darkminds3113,
Bsandipan, Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Tbscho, MayS,
WSH1906, Lewizho99, Mdupont, JJMC89, Maathavan, Altostratus, Avicennasis,
mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs