UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 394: ordinal not in range(128)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
my-weather-indicator |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Sometimes (probably it depends from the weather)
my-weather-
Running it from command line I get the messages:
<gettext.
No LSB modules are available.
#######
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
Version: i686
#######
My-Weather-
#######
('/home/
{"sunrise"
{"sunrise"
Timezone Error unsupported operand type(s) for /: 'unicode' and 'float'
North
(<type 'str'>, u'9 \xb0C')
################
mwi-wind00.png
Traceback (most recent call last):
File "/opt/extras.
mwi=MWI()
File "/opt/extras.
self.
File "/opt/extras.
self.work()
File "/opt/extras.
self.
File "/opt/extras.
weather = self.weatherser
File "/opt/extras.
weather_data = self._get_weather()
File "/opt/extras.
parsed_json = json.loads(
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 394: ordinal not in range(128)
Changed in my-weather-indicator: | |
status: | New → Fix Released |
Also will not start for me, get same error, though from a different line.
Terminal output ....
andy@Zebedee:~$ /usr/bin/python /opt/extras. ubuntu. com/my- weather- indicator/ bin/my- weather- indicator GNUTranslations instance at 0xb5e6c3cc> ####### ####### ####### ####### ####### ####### #### 13.0-48- generic- i686-with- Ubuntu- 14.04-trusty ####### ####### ####### ####### ####### ####### ####
<gettext.
#######
System: Linux
Machine: i686
Node: Zebedee
Release: 3.13.0-48-generic
Version: #80-Ubuntu SMP Thu Mar 12 11:16:18 UTC 2015
Platform: Linux-3.
#######
My-Weather- Indicator version: 0.6.9-0extras14 .04.2 ####### ####### ####### ####### ####### ####### #### andy/.config/ my-weather- indicator/ my-weather- indicator. conf', True) /////// /////// /////// /////// /////// /////// ////// /////// /////// /////// /////// /////// /////// ////// ion_time = 0 )-self. actualization_ time) = 1427657032 /////// /////// /////// /////// /////// /////// ////// /////// /////// /////// /////// /////// /////// ////// ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ------- ------- ------- ------- ------- ------- ------ ------- ------- ------- ------- ------- ------- ------ api.openweather map.org/ data/2. 5/weather? lat=52. 0368911630209& lon=-0. 804734123153732 4 ------- ------- ------- ------- ------- ------- ------ ------- ------- ------- ------- ------- ------- ------ ubuntu. com/my- weather- indicator/ bin/my- weather- indicator" , line 50, in <module> ubuntu. com/my- weather- indicator/ share/my- weather- indicator/ myweatherindica tor.py" , line 135, in __init__ load_preference s() ubuntu. com/my- weather- indicator/ share/my- weather- indicator/ myweatherindica tor.py" , line 376, in load_preferences ubuntu. com/my- weather- indicator/ share/my- weather- indicator/ myweatherindica tor.py" , line 200, in work ubuntu. com/my- weather- indicator/ share/my- weather- indicator/ myweatherindica tor.py" , line 524, in set_menu menu_temperatur e.set_label( _('Temperature' )+': {0}{1:c} '.format( self.current_ conditions[ 'temperature' ],176))
#######
('/home/
****** Requesting timezone identificacion
///////
///////
time.time() = 1427657032
self.actualizat
(time.time(
self.refresh*3600 = 1800
///////
///////
--- Updating data in location 1 ---
****** Updating weather
****** Calculating rawOffset
*******
*******
06:45 << 20:23 << 19:31
*******
*******
-------
-------
OpenWeatherMap Weather Service url:http://
-------
-------
****** Updated weather
Traceback (most recent call last):
File "/opt/extras.
mwi=MWI()
File "/opt/extras.
self.
File "/opt/extras.
self.work()
File "/opt/extras.
self.set_menu()
File "/opt/extras.
self.
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 3: ordinal not in range(128)