indicator-weather crashed with UnicodeDecodeError in get_woeid_from_yahoo(): 'ascii' codec can't decode byte 0xc3 in position 121: ordinal not in range(128)

Bug #1200868 reported by David Chodounsky
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Python Weather API
Unknown
Unknown
Weather Indicator
Fix Released
High
Unassigned

Bug Description

Can't add location "Sant Fruitós de Bages"

ProblemType: Crash
DistroRelease: Ubuntu 13.04
Package: indicator-weather 13.05.29 [origin: LP-PPA-weather-indicator-team]
ProcVersionSignature: Ubuntu 3.8.0-26.38-generic 3.8.13.2
Uname: Linux 3.8.0-26-generic x86_64
ApportVersion: 2.9.2-0ubuntu8.1
Architecture: amd64
CrashDB: indicator_weather
Date: Sat Jul 13 09:46:19 2013
ExecutablePath: /usr/bin/indicator-weather
InstallationDate: Installed on 2013-07-12 (0 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
InterpreterPath: /usr/bin/python2.7
MarkForUpload: True
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/indicator-weather
PythonArgs: ['/usr/bin/indicator-weather']
SourcePackage: indicator-weather
ThirdParty: True
Title: indicator-weather crashed with UnicodeDecodeError in get_woeid_from_yahoo(): 'ascii' codec can't decode byte 0xc3 in position 121: ordinal not in range(128)
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
David Chodounsky (davidchodounsky) wrote :
Revision history for this message
Joshua Tasker (jtasker) wrote :

Hi, this is a one-line fix in pywapi.py (the fix is in the the pywapi SVN but not yet packaged)

Change line 906 in pywapi.py to:
json_response = handler.read()

Alternately, just apply the attached patch.

Changed in weather-indicator:
status: New → Fix Committed
importance: Undecided → High
Joshua Tasker (jtasker)
Changed in weather-indicator:
milestone: none → 13.06.01
Changed in python-weather-api:
milestone: none → 0.3.4
Joshua Tasker (jtasker)
information type: Private → Public
Joshua Tasker (jtasker)
Changed in weather-indicator:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.