Weather applet doesn't work properly if started without network.

Bug #325189 reported by Eugene
4
Affects Status Importance Assigned to Milestone
Awn Extras
Fix Released
Undecided
Unassigned

Bug Description

If you load AWN with applets without network, and turn on network later, Weather Applet works strange.
It shows weather but click on it doestn't open forecast for next days.
It looks like applet opens an empty overlay for forecast.
After some hours I can start working well.

Please look at this case, because delayed network situation is very common for wifi laptops.

Thanks.

Tags: applet weather
Revision history for this message
Michael Rooney (mrooney) wrote : Re: [Bug 325189] [NEW] Weather applet doesn't work properly if started without network.

Hi Eugene. What version of AWN are you running? Are you using the default
version from a distribution like Ubuntu, using a PPA, or from source?

Revision history for this message
Eugene (lisitsky) wrote :

Hi Michael.
I use 0.2.6 installed from Ubuntu repo.

Revision history for this message
Michael Rooney (mrooney) wrote : Re: [Bug 325189] Re: Weather applet doesn't work properly if started without network.

Ahh okay. I've fixed it in more recent versions to display a dialog when it
has no data informing the user that it is fetching it. It also has a refresh
option in the right click menu to force an update when you have Internet
again. I'll mark this Fix Committed for now.

Changed in awn-extras:
status: New → Fix Committed
Revision history for this message
Eugene (lisitsky) wrote :

I saw blue square before weather is loaded.
What do you think of forcing update on first left click if data was not loaded?
So it would be transparent for users.

Revision history for this message
Eugene (lisitsky) wrote :
Download full text (3.2 KiB)

Hi.
I've just tested plugin, and found "reload" option doesn't help it to start working properly.
If it can help, here's cut from .xsession-errors

Launched application : 6322
Unexpected error: <type 'exceptions.IOError'>
Unable to contact weather source
Unexpected error: <type 'exceptions.IOError'>
Unable to contact weather source
Unexpected error: <type 'exceptions.AttributeError'>
Unable to update current conditions.
Unable to download weather map. <type 'exceptions.IOError'> [Errno socket error] (-2, 'Name or service not known')
Traceback (most recent call last):
  File "/usr/share/awn/applets/weather/weathercurved.py", line 79, in expose
    self.days(self.context)
  File "/usr/share/awn/applets/weather/weathercurved.py", line 205, in days
    run = ((context, 16, 60, self.forecast[0]),
IndexError: list index out of range
Traceback (most recent call last):
  File "/usr/share/awn/applets/weather/weathercurved.py", line 79, in expose
    self.days(self.context)
  File "/usr/share/awn/applets/weather/weathercurved.py", line 205, in days
    run = ((context, 16, 60, self.forecast[0]),
IndexError: list index out of range
Traceback (most recent call last):
  File "/usr/share/awn/applets/weather/weathercurved.py", line 79, in expose
    self.days(self.context)
  File "/usr/share/awn/applets/weather/weathercurved.py", line 205, in days
    run = ((context, 16, 60, self.forecast[0]),
IndexError: list index out of range
Traceback (most recent call last):
  File "/usr/share/awn/applets/weather/weathercurved.py", line 79, in expose
    self.days(self.context)
  File "/usr/share/awn/applets/weather/weathercurved.py", line 205, in days
    run = ((context, 16, 60, self.forecast[0]),
IndexError: list index out of range
Traceback (most recent call last):
  File "/usr/share/awn/applets/weather/weathercurved.py", line 79, in expose
    self.days(self.context)
  File "/usr/share/awn/applets/weather/weathercurved.py", line 205, in days
    run = ((context, 16, 60, self.forecast[0]),
IndexError: list index out of range
Traceback (most recent call last):
  File "/usr/share/awn/applets/weather/weathercurved.py", line 79, in expose
    self.days(self.context)
  File "/usr/share/awn/applets/weather/weathercurved.py", line 205, in days
    run = ((context, 16, 60, self.forecast[0]),
IndexError: list index out of range
Traceback (most recent call last):
  File "/usr/share/awn/applets/weather/weathercurved.py", line 79, in expose
    self.days(self.context)
  File "/usr/share/awn/applets/weather/weathercurved.py", line 205, in days
    run = ((context, 16, 60, self.forecast[0]),
IndexError: list index out of range
Traceback (most recent call last):
  File "/usr/share/awn/applets/weather/weathercurved.py", line 79, in expose
    self.days(self.context)
  File "/usr/share/awn/applets/weather/weathercurved.py", line 205, in days
    run = ((context, 16, 60, self.forecast[0]),
IndexError: list index out of range
Traceback (most recent call last):
  File "/usr/share/awn/applets/weather/weathercurved.py", line 79, in expose
    self.days(self.context)
  File "/usr/share/awn/applets/weather/weathercurved.py", line 205, in days
    run = ((context, 16, 60, self.foreca...

Read more...

Revision history for this message
Michael Rooney (mrooney) wrote :

Which version did you test the refresh option on, 0.2.6?

Revision history for this message
Eugene (lisitsky) wrote :

Yes. 0.2.6

Revision history for this message
Michael Rooney (mrooney) wrote :

The weather applet has been rewritten since 0.2.6 and hopefully that issue
isn't present. If you want to check it out and report back, check out
http://wiki.awn-project.org/DistributionGuides#Testing_Package_Archive

Changed in awn-extras:
status: Fix Committed → Fix Released
Revision history for this message
Eugene (lisitsky) wrote :

Thank you! I've installed trunk version.
It seems like problem is gone.

Now day names are liing on the blocks without any space - is it ok?
Please look at screenshot.

Yours, Eugene

Revision history for this message
Michael Rooney (mrooney) wrote :

That was the intended effect, I thought it looked quite nice personally. Do
you dislike it?

Revision history for this message
Eugene (lisitsky) wrote :

It looks nice. Let it be :)
The previous message I wrote like a tester looking for all changes in a program, don't worry about it much :)

Thank you for your time! :)

onox (onox)
tags: added: applet weather
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.