non appare widget su lubuntu 13.04

Bug #1236977 reported by angelo1492
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
my-weather-indicator
Confirmed
Undecided
Unassigned

Bug Description

su lubuntu 13.04 non funzionano i widget

Derpian (davidlikepie)
no longer affects: ubuntu
Revision history for this message
Derpian (davidlikepie) wrote :

Also affects Ubuntu 13.10. Process goes into sleeping state when it stalls whilst trying to get timezone information. Terminal output:

derpina@laptop:/opt/extras.ubuntu.com/my-weather-indicator/bin$ ./my-weather-indicator
<gettext.GNUTranslations object at 0x7f669046ff90>
#####################################################
System: Linux
Machine: x86_64
Node: laptop
Release: 3.11.0-26-generic
Version: #45-Ubuntu SMP Tue Jul 15 04:02:06 UTC 2014
Platform: Linux-3.11.0-26-generic-x86_64-with-Ubuntu-13.10-saucy
#####################################################

My-Weather-Indicator version: 0.6.8-0extras14.04.8
#####################################################
/home/derpina/.config/my-weather-indicator/my-weather-indicator.conf True
****** Requesting timezone identificacion

I don't remember seeing anything about timezones in the configuration file.

Changed in my-weather-indicator:
status: New → Confirmed
Revision history for this message
Derpian (davidlikepie) wrote :

Well, it did progress further than timezone identification, but it happened sometime while I was eating lunch.

****** Requesting timezone identificacion
--- Updating data in location 1 ---
****** Updating weather
****** Calculating rawOffset
********************************************************
********************************************************
07:26 << 13:42 << 19:38
********************************************************
********************************************************
-------------------------------------------------------
-------------------------------------------------------
OpenWeatherMap Weather Service url:http://api.openweathermap.org/data/2.5/weather?lat=[REDACTED]&lon=[REDACTED]
-------------------------------------------------------
-------------------------------------------------------
****** Updated weather
--- Updating data in location 1 ---
****** Updating weather
****** Calculating rawOffset
********************************************************
********************************************************
07:26 << 13:49 << 19:38
********************************************************
********************************************************
-------------------------------------------------------
-------------------------------------------------------
OpenWeatherMap Weather Service url:http://api.openweathermap.org/data/2.5/weather?lat=[REDACTED]&lon=[REDACTED]
-------------------------------------------------------
-------------------------------------------------------
****** Updated weather
--- Updating data in location 1 ---

This cycle forever, and by this time the (icon missing) indicator appears. There is no weather data available. So, I killed the process and renamed the config file.

~/.config/my-weather-indicator$ mv my-weather-indicator.conf my-weather-indicator.conf.old

I relaunched it, and this time it opened the GUI. I changed the weather source to Yahoo, and it works.

So, to work around this:
0. Kill the process my-weather-indicator.
1. Rename (or delete) the config file ~/.config/my-weather-indicator/my-weather-indicator.conf.
2. Reopen it like normal, but make sure to select Yahoo! as the weather source under the Weather Services tab.
OR
0. Kill the process my-weather-indicator.
1. Open ~/.config/my-weather-indicator/my-weather-indicator.conf with your preferred editor.
2. Change the following line:
    "weather-service": "openweathermap", (or whatever the weather service you have selected is)
To:
    "weather-service": "yahoo",
3. Relaunch my-weather-indicator.

My initial suspicions are that the API for OpenWeatherMap has changed (or the data returned has), but I haven't looked at any of the code yet to confirm.

Revision history for this message
Derpian (davidlikepie) wrote :

Quoting dave-wolfeworks from https://bugs.launchpad.net/my-weather-indicator/+bug/1368029 :

I encountered this problem when I first installed 14.04LTS last year and recently re-installed on a new machine, so I had to look it up again. Another report about Python encountering invalid characters in the my-weather-indicator code connected with my observations about the datetime-indicator not displaying when I tried to display weekday or month. The fix for that, and my-weather-indicator, is to fix a locale bug by adding "LC_ALL=en_US.UTF-8" (or the appropriate equivalent) to /etc/default/locale and reboot. My-weather-indicator and datetime-indicator w/ weekday and month both start displaying, so there really isn't a bug in my-weather-indicator, but rather in locale setup.

This worked for me, but I didn't even need to reboot. I killed the service, added the line to the locale file, deleted my-weather-indicator.conf, restarted the program, and it works with OpenWeatherMap now.

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.