pytz.country_names UnicodeDecodeError exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-tz (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Bug Description
Wily:
# python3 -c 'from pytz import country_names
for item in country_
print(item)'
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "/usr/lib/
for key in self._mapping:
File "/usr/lib/
self._fill()
File "/usr/lib/
line = line.decode(
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3: ordinal not in range(128)
# python -c 'from pytz import country_names
print(country_
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "/usr/lib/
return repr(dict(
File "/usr/lib/
for k in self:
File "/usr/lib/
self._fill()
File "/usr/lib/
line = line.decode(
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3: ordinal not in range(128)
# dpkg-query -l python-tz python3-tz tzdata
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii python-tz 2014.10~dfsg all Python version of the Olson timez
ii python3-tz 2014.10~dfsg all Python3 version of the Olson time
ii tzdata 2015f-1 all time zone and daylight-saving tim
Also affect trusty and vivid in the same way. Testing on trusty shows that this broke with the release of tzdata=
Status changed to 'Confirmed' because the bug affects multiple users.