'Forecast' FAILED when 'Open Weather Map' is set in Preferences

Bug #1093801 reported by Amr Ibrahim
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
my-weather-indicator
Fix Released
High
Lorenzo Carbonell

Bug Description

1) Here is the output when I start it from terminal:

~$ my-weather-indicator
<gettext.GNUTranslations instance at 0x1546dd0>
No LSB modules are available.
#####################################################
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
Version: x86_64
#####################################################

My-Weather-Indicator version: 0.6.0.4.precise.1
#####################################################
('/home/amr/.config/my-weather-indicator/my-weather-indicator.conf', True)
{"time":"2012-12-26 14:59","countryName":"Egypt","sunset":"2012-12-26 17:02","rawOffset":2,"dstOffset":2,"countryCode":"EG","gmtOffset":2,"lng":31.3,"sunrise":"2012-12-26 06:49","timezoneId":"Africa/Cairo","lat":30.0666667}
OpenWeatherMap Weather Service url:http://openweathermap.org/data/2.1/weather/city/360630
OWMWeatherService url:http://openweathermap.org/data/2.1/forecast/city/360630
(<type 'str'>, u'19 \xb0C')
OpenWeatherMap Weather Service url:http://openweathermap.org/data/2.1/weather/city/360630
OWMWeatherService url:http://openweathermap.org/data/2.1/forecast/city/360630
(<type 'str'>, u'19 \xb0C')

-----------------------------------------------------------------------------------------

2) Here is the terminal output when I select 'Forecast' from indicator:

Traceback (most recent call last):
  File "/usr/share/my-weather-indicator/myweatherindicator.py", line 582, in menu_forecast_response
    fc = FC(self.location,self.ws,self.weather1)
  File "/usr/share/my-weather-indicator/forecastw.py", line 131, in __init__
    self.create_forecast_dor_day(forecast,i)
  File "/usr/share/my-weather-indicator/forecastw.py", line 253, in create_forecast_dor_day
    self.table.attach(image2, fr,lr, 5, 6, xoptions = Gtk.AttachOptions.FILL, yoptions=Gtk.AttachOptions.FILL, xpadding=0, ypadding=5)
  File "/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py", line 1432, in attach
    Gtk.Table.attach(self, child, left_attach, right_attach, top_attach, bottom_attach, xoptions, yoptions, xpadding, ypadding)
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
TypeError: Argument 1 does not allow None as a value

-----------------------------------------------------------------------------------------

After that, Forecast, Forecast Map & Preferenece are all disabled in the indicator. I have to Exit and start again.

summary: - 'Forecast' FAILED when I select 'Open Weather Map' in Preferences
+ 'Forecast' FAILED when 'Open Weather Map' is set in Preferences
description: updated
Revision history for this message
Lorenzo Carbonell (lorenzo-carbonell) wrote :

Thanks for your valuable information, I think I got the error. Please update and upgrade to last version and tell me if it was fixed.

Thanks, I wait for your answer

Changed in my-weather-indicator:
assignee: nobody → Lorenzo Carbonell (lorenzo-carbonell)
importance: Undecided → High
Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

Yes, I think it is fixed. Forecast window appears, but everything is N/A. Is this natural from that weather service?

Changed in my-weather-indicator:
status: New → Confirmed
Revision history for this message
Lorenzo Carbonell (lorenzo-carbonell) wrote :

No, N/A it's not normal situation.

I try this location in my computer and MWI works right for me. It doesn't show N/A

Still it isn't working for you?

Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

It's still not working for me; still shows N/A even when I select 'Automatic location'.

Revision history for this message
Sidarth Dasari (sirsid) wrote :

I can reconfirm Amr's issue

Revision history for this message
Lorenzo Carbonell (lorenzo-carbonell) wrote :

First set automatic location to False, after that try again. It it doesn't work,

can you run MWI from terminal and copy paste here the output?

While you run from terminal, open forecast window so it appears in the output to.

Besides, send me your "my-weather-indicator.conf", you can find it in "~/.config/my-weather-indicator"

Sorry for all information I'm asking you, but I'm very confused with this error, I don't know how to catch it

Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

I disabled Automatic location but it doesn't work, it's still N/A.

Here is the terminal output:

~$ my-weather-indicator
<gettext.GNUTranslations instance at 0x11d8d88>
No LSB modules are available.
#####################################################
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
Version: x86_64
#####################################################

My-Weather-Indicator version: 0.6.0.4.precise.4
#####################################################
('/home/amr/.config/my-weather-indicator/my-weather-indicator.conf', True)
{"time":"2013-01-02 11:38","countryName":"Egypt","sunset":"2013-01-02 17:06","rawOffset":2,"dstOffset":2,"countryCode":"EG","gmtOffset":2,"lng":31.251965,"sunrise":"2013-01-02 06:51","timezoneId":"Africa/Cairo","lat":30.050695}
OpenWeatherMap Weather Service url:http://openweathermap.org/data/2.1/weather/city/360630
OWMWeatherService url:http://openweathermap.org/data/2.1/forecast/city/360630
(<type 'str'>, u'17 \xb0C')
OpenWeatherMap Weather Service url:http://openweathermap.org/data/2.1/weather/city/360630
OWMWeatherService url:http://openweathermap.org/data/2.1/forecast/city/360630
(<type 'str'>, u'17 \xb0C')
start now

Here is the strangest part, opening a Forecast window does not output anything in terminal. I tried several times, opening & closing the Forecast window, nothing changes in terminal.

Changed in my-weather-indicator:
status: Confirmed → In Progress
Revision history for this message
wangyan (253914333-g) wrote :

I have met your bug before. When i use a higher version and change whether service to world whether online. It works . Maybe something is wrong in open weather map.

Changed in my-weather-indicator:
status: In Progress → 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.