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

Bug #1196269 reported by Dimitris Athanasopoulos
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Weather Indicator
Fix Released
Critical
Joshua Tasker

Bug Description

error occurred while updating predict informations

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: indicator-weather 13.05.29 [origin: LP-PPA-weather-indicator-team]
ProcVersionSignature: Ubuntu 3.2.0-48.74-generic-pae 3.2.46
Uname: Linux 3.2.0-48-generic-pae i686
ApportVersion: 2.0.1-0ubuntu17.3
Architecture: i386
CrashCounter: 1
CrashDB: indicator_weather
Date: Sun Jun 30 19:07:47 2013
ExecutablePath: /usr/bin/indicator-weather
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423)
InterpreterPath: /usr/bin/python2.7
MarkForUpload: True
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/indicator-weather
ProcEnviron:
 PATH=(custom, no user)
 LANG=el_GR.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/indicator-weather']
SourcePackage: indicator-weather
ThirdParty: True
Title: indicator-weather crashed with UnicodeDecodeError in finish_initializing(): 'ascii' codec can't decode byte 0xce in position 0: 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
Dimitris Athanasopoulos (motzin-deactivatedaccount) wrote :
description: updated
description: updated
Joshua Tasker (jtasker)
information type: Private → Public
Changed in weather-indicator:
status: New → Fix Committed
importance: Undecided → High
importance: High → Critical
milestone: none → 13.06.01
assignee: nobody → Joshua Tasker (jtasker)
Revision history for this message
Joshua Tasker (jtasker) wrote :

This was a bug in the helpers.py file, which is installed into /usr/lib/python2.7/dist-packages/indicator_weather/helpers.py

The fix will be in the next release, but I have attached a patch for those who do not wish to wait.

Joshua Tasker (jtasker)
Changed in weather-indicator:
status: Fix Committed → Fix Released
Revision history for this message
Lex Ross (lross) wrote :

Still getting the exact same crash report while pulling the weather forecast for Moscow, Russia (displayed as Москва in locations list). The only difference is the byte 0xd0 and not 0xce as per original bug report. Upgrading to version 13.06.01 and 13.7.1 did not help as well as applying the patch to earlier versions as suggested by Joshua.

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

Can you post the output of running this command in a terminal?

   gsettings list-recursively apps.indicators.weather

Revision history for this message
Lex Ross (lross) wrote :

Thank you Joshua for your prompt response. Below is the command output as per your request.

$ gsettings list-recursively apps.indicators.weather
apps.indicators.weather chill-estimate 'windchill'
apps.indicators.weather condition-fields '["heat-index", "humidity", "wind", "sun"]'
apps.indicators.weather filter-fields true
apps.indicators.weather global-notifications false
apps.indicators.weather heat-estimate 'humidex'
apps.indicators.weather indicator-display 1
apps.indicators.weather locations "{'2048155': {'google id': ',,,56333333,36733333', 'longitude': '36.7333333', 'noaa id': 'woot', 'latitude': '56.3333333', 'label': '\\xd0\\x9a\\xd0\\xbb\\xd0\\xb8\\xd0\\xbd', 'full name': '\\xd0\\x9a\\xd0\\xbb\\xd0\\xb8\\xd0\\xbd, \\xd0\\x9f\\xd0\\xbe\\xd0\\xb4\\xd0\\xbc\\xd0\\xbe\\xd1\\x81\\xd0\\xba\\xd0\\xbe\\xd0\\xb2\\xd1\\x8c\\xd0\\xb5, \\xd0\\xa0\\xd0\\xbe\\xd1\\x81\\xd1\\x81\\xd0\\xb8\\xd1\\x8f'}, '2122265': {'google id': ',,,55752222,37615556', 'noaa id': 'woot', 'longitude': '37.6155556', 'yahoo id': u'RSXX0063', 'latitude': '55.7522222', 'label': '\\xd0\\x9c\\xd0\\xbe\\xd1\\x81\\xd0\\xba\\xd0\\xb2\\xd0\\xb0', 'full name': '\\xd0\\x9c\\xd0\\xbe\\xd1\\x81\\xd0\\xba\\xd0\\xb2\\xd0\\xb0, \\xd0\\x9c\\xd0\\xbe\\xd1\\x81\\xd0\\xba\\xd0\\xb2\\xd0\\xb0, \\xd0\\xa0\\xd0\\xbe\\xd1\\x81\\xd1\\x81\\xd0\\xb8\\xd1\\x8f'}, '480488': {'google id': ',,,46622222,29913333', 'longitude': '29.9133333', 'noaa id': 'woot', 'latitude': '46.6222222', 'label': '\\xd0\\x94\\xd0\\xbd\\xd0\\xb5\\xd1\\x81\\xd1\\x82\\xd1\\x80\\xd0\\xbe\\xd0\\xb2\\xd1\\x81\\xd0\\xba', 'full name': 'Dnestrovsc, St\\xc3\\xaenga Nistrului, \\xd0\\x9c\\xd0\\xbe\\xd0\\xbb\\xd0\\xb4\\xd0\\xbe\\xd0\\xb2\\xd0\\xb0'}}"
apps.indicators.weather metric-system 'S'
apps.indicators.weather notifications 'N'
apps.indicators.weather placechosen 0
apps.indicators.weather places "[['2122265', '\\xd0\\x9c\\xd0\\xbe\\xd1\\x81\\xd0\\xba\\xd0\\xb2\\xd0\\xb0'], ['2048155', '\\xd0\\x9a\\xd0\\xbb\\xd0\\xb8\\xd0\\xbd'], ['480488', '\\xd0\\x94\\xd0\\xbd\\xd0\\xb5\\xd1\\x81\\xd1\\x82\\xd1\\x80\\xd0\\xbe\\xd0\\xb2\\xd1\\x81\\xd0\\xba']]"
apps.indicators.weather refresh-rate 15
apps.indicators.weather relative-display true
apps.indicators.weather show-forecast true
apps.indicators.weather show-locations false
apps.indicators.weather suntimes-display true
apps.indicators.weather weather '{"2122265": {"humidity": "\\u0412\\u043b\\u0430\\u0436\\u043d\\u043e\\u0441\\u0442\\u044c: 82%", "sunrise": "\\u0412\\u043e\\u0441\\u0445\\u043e\\u0434: 07:50:10", "feelslike": "\\u041e\\u0449\\u0443\\u0449\\u0430\\u0435\\u0442\\u0441\\u044f \\u043a\\u0430\\u043a: 10 \\u00b0C", "sunset": "\\u0417\\u0430\\u0445\\u043e\\u0434: 18:41:50", "wind": "\\u0412\\u0435\\u0442\\u0435\\u0440: \\u042e (170\\u00b0) 14,5 km/h", "icon": "weather-clear-night", "temper": "\\u0422\\u0435\\u043c\\u043f\\u0435\\u0440\\u0430\\u0442\\u0443\\u0440\\u0430: 10 \\u00b0C", "condition": "\\u042f\\u0441\\u043d\\u043e", "label": "10 \\u00b0C"}}'
apps.indicators.weather weather-source 'W'
apps.indicators.weather wind-display true
apps.indicators.weather wind-unit 'kph'

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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