Weather indicator fails to update anything when earthtools.org is down

Bug #964365 reported by Sage Russell
398
This bug affects 131 people
Affects Status Importance Assigned to Milestone
Weather Indicator
Fix Released
Critical
Vadim Rutkovsky
indicator-weather (Ubuntu)
Fix Released
Critical
Andrew Starr-Bochicchio
Precise
Fix Released
Critical
Andrew Starr-Bochicchio

Bug Description

--- SRU Justification ---

[IMPACT]

Currently, indicator-weather will not update. The site that it pulls sunrise and sunset times from is down. It does not gracefully handle this. It blocks trying to refresh and can also crash with an AttributeError.

[TESTCASE]

Run indicator-weather from precise.

If you have never run it before, it will not show any weather information at all. If you've run it in the past the old information will remain.

Click refresh. With the version in precise, it will say "Refreshing, please wait..." indefinitely.

Install the version from precise-proposed. Running it should now both show weather information if this is your first time running it as well as successfully refresh.

[Regression Potential]

There is very little regression potential. The biggest issue is that we have no idea if or when earthtools.org will be back up, so sunrise and sunset times will be listed as "Unknown" for the foreseeable future. This is still much better than it not working at all.

---

I'm not sure what causes it, but the indicator seems to crash frequently (1-2 times per day) and, from what I can tell, randomly. I haven't been able to pinpoint the cause, but notice that it seems to happen after entering screensaver mode. I'm not sure if that's completely true or just when I happen to notice it's missing.

  Installed: 11.11.28~oneiric2
  Candidate: 11.11.28~oneiric2
  Version table:
 *** 11.11.28~oneiric2 0
        500 http://ppa.launchpad.net/weather-indicator-team/ppa/ubuntu/ oneiric/main i386 Packages
        100 /var/lib/dpkg/status
     11.05.31-0ubuntu2.1 0
        500 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/universe i386 Packages
     11.05.31-0ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ oneiric/universe i386 Packages

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: indicator-weather 11.11.28~oneiric2
ProcVersionSignature: Ubuntu 3.0.0-16.29-generic-pae 3.0.20
Uname: Linux 3.0.0-16-generic-pae i686
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu4
Architecture: i386
CrashDB: indicator_weather
Date: Sun Mar 25 02:19:23 2012
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/indicator-weather
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
SourcePackage: indicator-weather
ThirdParty: True
UpgradeStatus: Upgraded to oneiric on 2011-10-10 (166 days ago)

Revision history for this message
Sage Russell (sage-sageth) wrote :
Revision history for this message
Vadim Rutkovsky (roignac) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. However, your crash report is either missing or challenging to deal with as a ".crash" file. Please follow these instructions to have apport report a new bug about your crash that can be dealt with by the automatic retracer.

If you are running the Ubuntu Stable Release you might need to enable apport in /etc/default/apport and restart.

Now open your file manager, navigate to your /var/crash directory and open the crash report you wish to submit.
If this fails you will have to open a terminal and file your report with 'ubuntu-bug /var/crash/_my_crash_report.crash' where _my_crash_report.crash is the crash you would like to report. If you get an error that you aren't allowed to access this report you will have to file it with 'sudo ubuntu-bug /var/crash/_my_crash_report.crash'.

I'm closing this bug report since the process outlined above will automatically open a new bug report which can then dealt with more efficiently. Thanks in advance for your cooperation and understanding.

Changed in weather-indicator:
status: New → Incomplete
Revision history for this message
Domen Kožar (ielectric+) wrote :

Would you actually take a look at indicator-weather.log? Grep for "Traceback". I would love to write a patch, but really have no will to operate with Bazaar.

Revision history for this message
Domen Kožar (ielectric+) wrote :

In bried:

- it doesn't find sunset/sunrise timestamp in http://www.earthtools.org/timezone-1.1/41.3887868891/2.15898513794
- __sunrise_t and __sunset_t in /usr/bin/indicator-weather remain None
- in helpers.py, format_time fails because t is None

Solution, change:

@staticmethod
def format_time(t):
    """ do the format """
    return t.strftime(TimeFormatter.format)

To:

@staticmethod
def format_time(t):
    """ do the format """
    if not t:
        return "Unknown"
    return t.strftime(TimeFormatter.format)

Revision history for this message
Sage Russell (sage-sageth) wrote :

Here's the stack. I'll make the change and see how it goes.

[Fetcher] 2012-05-15 09:20:04,698 - DEBUG - Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 1397, in get_new_weather_data
    log.debug("Indicator: fill in menu with params: city='%s', temp='%s', humid='%s', wind='%s', sunrise='%s', sunset='%s', puretemp=%s" % (self.places[self.placechosen][1], weather.get_temperature_label(), weather.get_humidity_label(), weather.get_wind_label(), weather.get_sunrise_label(), weather.get_sunset_label(), weather.get_temperature()))
  File "/usr/bin/indicator-weather", line 898, in get_sunrise_label
    return "%s: %s" % (_("Sunrise"), TimeFormatter.format_time(self.__sunrise_t))
  File "/usr/lib/python2.7/dist-packages/indicator_weather/helpers.py", line 248, in format_time
    return t.strftime(TimeFormatter.format)
AttributeError: 'NoneType' object has no attribute 'strftime'

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Weather Indicator because there has been no activity for 60 days.]

Changed in weather-indicator:
status: Incomplete → Expired
Revision history for this message
Bernmeister (thebernmeister) wrote :

I've just tested the fix in comment #4 and it works....thanks!

FYI, the file in which I made the change is located at /usr/lib/python2.7/dist-packages/indicator_weather/helpers.py

Changed in weather-indicator:
status: Expired → Confirmed
Changed in weather-indicator:
milestone: none → 12.07.30
assignee: nobody → Vadim Rutkovsky (roignac)
importance: Undecided → Critical
status: Confirmed → Fix Released
Changed in indicator-weather (Ubuntu):
status: New → Triaged
importance: Undecided → Critical
Revision history for this message
Vadim Rutkovsky (roignac) wrote :

The fix will be available in PPA for Weather Indicator shortly.

Note, that this will break 'sunrise and sunset time' feature, as earthtools.org is down.

summary: - Weather applet crashes randomly
+ Weather indicator as earthtools.org is down
Revision history for this message
Fremont Früst (montfrefu) wrote : Re: Weather indicator as earthtools.org is down

In my case, the problem of weather indicator stuck was solved today doing a system update.

If you do not already have incorporated the repository of weather indicator team, you can add it by the following command :

sudo add-apt-repository ppa:weather-indicator-team/ppa

then:

sudo apt-get update
sudo apt-get upgrade

that's all.

Thank you very much to weather indicator team ;)

Revision history for this message
macko (erdosboti) wrote :

comment #9 worked for me as well.

thx for the fix.

Revision history for this message
Cedara (cedara2) wrote :

Comment #9 worked for me too (running Ubuntu 12.04 - 32bit - on an AMD64). Thanks.

Revision history for this message
Konstantinos Spalas (konnn) wrote :

Me,adding the PPA solved the problem, too. When this update would be imported to the normal updates, though? For the rest users?
Thnx.

Revision history for this message
jolo (joop-loep) wrote :

But, not for me, in Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64
https://bugs.launchpad.net/ubuntu/+source/indicator-weather/+bug/1030508

I think, there is no PPA for Quantal Quetzal yet
https://launchpad.net/~weather-indicator-team/+archive/ppa

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in indicator-weather (Ubuntu Precise):
status: New → Confirmed
Changed in indicator-weather (Ubuntu Precise):
status: Confirmed → Triaged
importance: Undecided → High
Revision history for this message
apienk (andrzej-pienkowski) wrote :

I wonder why indicator-weather creators chose to get sunrise/sunset times from an exotic webpage. There are many ways to calculate these times locally, even in python:

http://scienceoss.com/calculate-sunrise-and-sunset-with-pyephem/

BTW, update fixed refresh issue for me

3.2.0-27-generic #43-Ubuntu SMP Fri Jul 6 14:25:57 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Changed in indicator-weather (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Andrew Starr-Bochicchio (andrewsomething)
Revision history for this message
apienk (andrzej-pienkowski) wrote :

OK, sorry for my former post. Now I see that pyephem still hasn't found its way to ubuntu repos.

https://bugs.launchpad.net/ubuntu/+bug/292786

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package indicator-weather - 12.07.30-0ubuntu1

---------------
indicator-weather (12.07.30-0ubuntu1) quantal; urgency=low

  * New upstream release.
   - If Earthtools.org is down, report 'Unknown' rather than
     blocking on sunset and sunrise times (LP: #964365).
   - Correctly preform .pid file matching so we can restart after
     a crash (LP: #926433).
   - Fixed flurries condition being marked as 'Unknown' (LP: #928596).
   - Km in the units tab now written in full as kilometres (LP: #952661).
  * debian/control: Bump standards version to 3.9.3, no changes needed.
  * debian/postinst: Don't manually install or compile gschema. Distutils.Extras
    now installs it correctly and an apt trigger compiles it.
 -- Andrew Starr-Bochicchio <email address hidden> Mon, 30 Jul 2012 16:32:33 -0400

Changed in indicator-weather (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Jan Henke (jhe) wrote :

How about a SRU? Currently the indicator is clearly broken and useless.

Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

I'm on it...

Changed in indicator-weather (Ubuntu Precise):
status: Triaged → In Progress
assignee: nobody → Andrew Starr-Bochicchio (andrewsomething)
Revision history for this message
Cliffm (c2mcatee) wrote :

Currently the indicator is clearly broken constant indication temperature 90 degrees F.

description: updated
Revision history for this message
Jim Chatman (alienmindgame) wrote : Re: [Bug 964365] Re: Weather indicator as earthtools.org is down

Weather Indicator 12.07.30 'Cloudy 10' (?) is working fine for me, now.

But now the HPLIP icon is stuck in the upper panel after a recent respite
of repair. I know, different issue.

On Mon, Jul 30, 2012 at 2:00 PM, jolo <email address hidden> wrote:

> But, not for me, in Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64
> https://bugs.launchpad.net/ubuntu/+source/indicator-weather/+bug/1030508
>
> I think, there is no PPA for Quantal Quetzal yet
> https://launchpad.net/~weather-indicator-team/+archive/ppa
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1030087).
> https://bugs.launchpad.net/bugs/964365
>
> Title:
> Weather indicator as earthtools.org is down
>
> Status in Indicator-Weather:
> Fix Released
> Status in “indicator-weather” package in Ubuntu:
> Triaged
>
> Bug description:
> I'm not sure what causes it, but the indicator seems to crash
> frequently (1-2 times per day) and, from what I can tell, randomly. I
> haven't been able to pinpoint the cause, but notice that it seems to
> happen after entering screensaver mode. I'm not sure if that's
> completely true or just when I happen to notice it's missing.
>
> Installed: 11.11.28~oneiric2
> Candidate: 11.11.28~oneiric2
> Version table:
> *** 11.11.28~oneiric2 0
> 500 http://ppa.launchpad.net/weather-indicator-team/ppa/ubuntu/oneiric/main i386 Packages
> 100 /var/lib/dpkg/status
> 11.05.31-0ubuntu2.1 0
> 500 http://us.archive.ubuntu.com/ubuntu/oneiric-updates/universe i386 Packages
> 11.05.31-0ubuntu2 0
> 500 http://us.archive.ubuntu.com/ubuntu/ oneiric/universe i386
> Packages
>
> ProblemType: Bug
> DistroRelease: Ubuntu 11.10
> Package: indicator-weather 11.11.28~oneiric2
> ProcVersionSignature: Ubuntu 3.0.0-16.29-generic-pae 3.0.20
> Uname: Linux 3.0.0-16-generic-pae i686
> NonfreeKernelModules: nvidia
> ApportVersion: 1.23-0ubuntu4
> Architecture: i386
> CrashDB: indicator_weather
> Date: Sun Mar 25 02:19:23 2012
> EcryptfsInUse: Yes
> ExecutablePath: /usr/bin/indicator-weather
> InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386
> (20101007)
> InterpreterPath: /usr/bin/python2.7
> PackageArchitecture: all
> SourcePackage: indicator-weather
> ThirdParty: True
> UpgradeStatus: Upgraded to oneiric on 2011-10-10 (166 days ago)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/weather-indicator/+bug/964365/+subscriptions
>

--
*JC*

Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :
Dmitry (dimon3000)
tags: added: amd64
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote : Re: Weather indicator as earthtools.org is down

I uploaded the fix to precise-proposed yesterday. Still waiting on an archive-admin to accept it.

Changed in indicator-weather (Ubuntu Precise):
status: In Progress → Triaged
Revision history for this message
Colin Keenan (colinkeenan) wrote :

Tried check-marking precise-proposed in the updates tab of software sources, checked for updates, installed them all. But, as #23 says, this fix is not accepted yet, so didn't work.

Followed comment #9 and that worked for me.

Revision history for this message
Michael Luthardt (michalu) wrote :

Just updated to indicator-weather 12.07.30~precise1, libgweather-3-0 3.4.1-0ubuntu1, libgweather-common 3.4.1-0ubuntu1, python-pywapi 0.2.2-1 on amd64.
For sunset/sunrise I get "unknown" as expected. But, the Applet says all day long "Refreshing, please wait". I'm not sure if it works actually.

Revision history for this message
Domen Kožar (ielectric+) wrote :

Can you attach ~/.config/indicator-weather.log?

Revision history for this message
Cliffm (c2mcatee) wrote : Re: [Bug 964365] Re: Weather indicator as earthtools.org is down
Download full text (3.4 KiB)

~/.config/indicator-weather.log
bash: /home/cjm/.config/indicator-weather.log: No such file or directory
This is what I get.
Cliff

On Tue, Jul 31, 2012 at 2:17 PM, Domen Kožar <email address hidden>wrote:

> Can you attach ~/.config/indicator-weather.log?
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1022103).
> https://bugs.launchpad.net/bugs/964365
>
> Title:
> Weather indicator as earthtools.org is down
>
> Status in Indicator-Weather:
> Fix Released
> Status in “indicator-weather” package in Ubuntu:
> Fix Released
> Status in “indicator-weather” source package in Precise:
> Triaged
>
> Bug description:
> --- SRU Justification ---
>
> [IMPACT]
>
> Currently, indicator-weather will not update. The site that it pulls
> sunrise and sunset times from is down. It does not gracefully handle
> this. It blocks trying to refresh and can also crash with an
> AttributeError.
>
> [TESTCASE]
>
> Run indicator-weather from precise.
>
> If you have never run it before, it will not show any weather
> information at all. If you've run it in the past the old information
> will remain.
>
> Click refresh. With the version in precise, it will say "Refreshing,
> please wait..." indefinitely.
>
> Install the version from precise-proposed. Running it should now both
> show weather information if this is your first time running it as well
> as successfully refresh.
>
> [Regression Potential]
>
> There is very little regression potential. The biggest issue is that
> we have no idea if or when earthtools.org will be back up, so sunrise
> and sunset times will be listed as "Unknown" for the foreseeable
> future. This is still much better than it not working at all.
>
> ---
>
> I'm not sure what causes it, but the indicator seems to crash
> frequently (1-2 times per day) and, from what I can tell, randomly. I
> haven't been able to pinpoint the cause, but notice that it seems to
> happen after entering screensaver mode. I'm not sure if that's
> completely true or just when I happen to notice it's missing.
>
> Installed: 11.11.28~oneiric2
> Candidate: 11.11.28~oneiric2
> Version table:
> *** 11.11.28~oneiric2 0
> 500 http://ppa.launchpad.net/weather-indicator-team/ppa/ubuntu/oneiric/main i386 Packages
> 100 /var/lib/dpkg/status
> 11.05.31-0ubuntu2.1 0
> 500 http://us.archive.ubuntu.com/ubuntu/oneiric-updates/universe i386 Packages
> 11.05.31-0ubuntu2 0
> 500 http://us.archive.ubuntu.com/ubuntu/ oneiric/universe i386
> Packages
>
> ProblemType: Bug
> DistroRelease: Ubuntu 11.10
> Package: indicator-weather 11.11.28~oneiric2
> ProcVersionSignature: Ubuntu 3.0.0-16.29-generic-pae 3.0.20
> Uname: Linux 3.0.0-16-generic-pae i686
> NonfreeKernelModules: nvidia
> ApportVersion: 1.23-0ubuntu4
> Architecture: i386
> CrashDB: indicator_weather
> Date: Sun Mar 25 02:19:23 2012
> EcryptfsInUse: Yes
> ExecutablePath: /usr/bin/indicator-weather
> InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386
> (20101007)
> InterpreterPath: /usr/bin/python2.7
> ...

Read more...

Revision history for this message
Domen Kožar (ielectric+) wrote : Re: Weather indicator as earthtools.org is down

Pardon, ~/.cache/indicator-weather.log

Revision history for this message
Cliffm (c2mcatee) wrote : Re: [Bug 964365] Re: Weather indicator as earthtools.org is down
Download full text (3.3 KiB)

Sorry Domen
The last email looked like it was asking for the log.
Cliff

On Tue, Jul 31, 2012 at 3:02 PM, Domen Kožar <email address hidden>wrote:

> Pardon, ~/.cache/indicator-weather.log
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1022103).
> https://bugs.launchpad.net/bugs/964365
>
> Title:
> Weather indicator as earthtools.org is down
>
> Status in Indicator-Weather:
> Fix Released
> Status in “indicator-weather” package in Ubuntu:
> Fix Released
> Status in “indicator-weather” source package in Precise:
> Triaged
>
> Bug description:
> --- SRU Justification ---
>
> [IMPACT]
>
> Currently, indicator-weather will not update. The site that it pulls
> sunrise and sunset times from is down. It does not gracefully handle
> this. It blocks trying to refresh and can also crash with an
> AttributeError.
>
> [TESTCASE]
>
> Run indicator-weather from precise.
>
> If you have never run it before, it will not show any weather
> information at all. If you've run it in the past the old information
> will remain.
>
> Click refresh. With the version in precise, it will say "Refreshing,
> please wait..." indefinitely.
>
> Install the version from precise-proposed. Running it should now both
> show weather information if this is your first time running it as well
> as successfully refresh.
>
> [Regression Potential]
>
> There is very little regression potential. The biggest issue is that
> we have no idea if or when earthtools.org will be back up, so sunrise
> and sunset times will be listed as "Unknown" for the foreseeable
> future. This is still much better than it not working at all.
>
> ---
>
> I'm not sure what causes it, but the indicator seems to crash
> frequently (1-2 times per day) and, from what I can tell, randomly. I
> haven't been able to pinpoint the cause, but notice that it seems to
> happen after entering screensaver mode. I'm not sure if that's
> completely true or just when I happen to notice it's missing.
>
> Installed: 11.11.28~oneiric2
> Candidate: 11.11.28~oneiric2
> Version table:
> *** 11.11.28~oneiric2 0
> 500 http://ppa.launchpad.net/weather-indicator-team/ppa/ubuntu/oneiric/main i386 Packages
> 100 /var/lib/dpkg/status
> 11.05.31-0ubuntu2.1 0
> 500 http://us.archive.ubuntu.com/ubuntu/oneiric-updates/universe i386 Packages
> 11.05.31-0ubuntu2 0
> 500 http://us.archive.ubuntu.com/ubuntu/ oneiric/universe i386
> Packages
>
> ProblemType: Bug
> DistroRelease: Ubuntu 11.10
> Package: indicator-weather 11.11.28~oneiric2
> ProcVersionSignature: Ubuntu 3.0.0-16.29-generic-pae 3.0.20
> Uname: Linux 3.0.0-16-generic-pae i686
> NonfreeKernelModules: nvidia
> ApportVersion: 1.23-0ubuntu4
> Architecture: i386
> CrashDB: indicator_weather
> Date: Sun Mar 25 02:19:23 2012
> EcryptfsInUse: Yes
> ExecutablePath: /usr/bin/indicator-weather
> InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386
> (20101007)
> InterpreterPath: /usr/bin/python2.7
> PackageArchitecture: all
> SourcePackage: indicator-weather
> Th...

Read more...

Revision history for this message
lix (lix-lix) wrote :

... as requested.

Best, Lx

Revision history for this message
Domen Kožar (ielectric+) wrote : Re: Weather indicator as earthtools.org is down

@lix you don't have the patch applied :)

Revision history for this message
lix (lix-lix) wrote :

@domen you mean I should do according to comment #9 before posting the log?

Best, Lx
P.S. am on IRC #weather-indicator on irc.freenode.net

Revision history for this message
todaioan (alan-ar06) wrote : buna

Am avut pe destop vremea, timp probabil,-si a fost valabil numai pina la 25 07 2012,

cum safac sa-mi apara iar?

Revision history for this message
Colin Keenan (colinkeenan) wrote : Re: Weather indicator as earthtools.org is down

Is there some way to change the default indicator icon to something other than the sun? It disturbs me seeing the sun throughout the night.

Where is the icon located? I would like to put in a different one until indicator-weather is able to calculate sunrise and sunset.

Revision history for this message
Colin Keenan (colinkeenan) wrote :

I found the icon:

/usr/share/icons/Humanity-Dark/status/48/weather-clear.svg

Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello Sage, or anyone else affected,

Accepted indicator-weather into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/indicator-weather/11.11.28-0ubuntu1.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in indicator-weather (Ubuntu Precise):
importance: High → Critical
status: Triaged → Fix Committed
tags: added: verification-needed
Revision history for this message
Ryan Novosielski (novosirj) wrote : Re: Weather indicator as earthtools.org is down

I couldn't install the package available at the location in the most recent message:

$ sudo dpkg -i indicator-weather_11.11.28-0ubuntu1.1_all.deb
Selecting previously unselected package indicator-weather.
(Reading database ... 512447 files and directories currently installed.)
Unpacking indicator-weather (from indicator-weather_11.11.28-0ubuntu1.1_all.deb) ...
Setting up indicator-weather (11.11.28-0ubuntu1.1) ...
Installing indicator-specific icons...
Installing indicator dconf schema...
cp: cannot stat `/usr/share/indicator-weather/indicator-weather.gschema.xml': No such file or directory
dpkg: error processing indicator-weather (--install):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...
Processing triggers for libglib2.0-0 ...
Processing triggers for man-db ...
Errors were encountered while processing:
 indicator-weather

Revision history for this message
Normand C (gemnoc) wrote :

I get the same error with GDebi but the package installs nonetheless.

indicator-weather now updates, but the icon is tuck to a yellow sun (see #34 comment by Colin Keegan).

Revision history for this message
Viktor Pal (deere) wrote :

What I did so far with the one installed from the repositories is I changed get_sun_data to return some fixed values.
This was a homemade fix as I needed the weather information and did not find this bug at the time.
You could do this possibly when earthtools.org is not available to avoid the icon stuck to yellow sun?
Though clearly the best solution wold be to use pyephem as stated above as it does not seem to me that the mentioned website will be available in the future.

Revision history for this message
Jim Chatman (alienmindgame) wrote : Re: [Bug 964365] Re: Weather indicator as earthtools.org is down
Download full text (4.4 KiB)

It's now working for me. I'm even getting the Sunset and Sunrise info that
was missing before today.

On Sat, Aug 4, 2012 at 1:19 AM, Ryan Novosielski
<email address hidden>wrote:

> I couldn't install the package available at the location in the most
> recent message:
>
> $ sudo dpkg -i indicator-weather_11.11.28-0ubuntu1.1_all.deb
> Selecting previously unselected package indicator-weather.
> (Reading database ... 512447 files and directories currently installed.)
> Unpacking indicator-weather (from
> indicator-weather_11.11.28-0ubuntu1.1_all.deb) ...
> Setting up indicator-weather (11.11.28-0ubuntu1.1) ...
> Installing indicator-specific icons...
> Installing indicator dconf schema...
> cp: cannot stat
> `/usr/share/indicator-weather/indicator-weather.gschema.xml': No such file
> or directory
> dpkg: error processing indicator-weather (--install):
> subprocess installed post-installation script returned error exit status 1
> Processing triggers for desktop-file-utils ...
> Processing triggers for bamfdaemon ...
> Rebuilding /usr/share/applications/bamf.index...
> Processing triggers for gnome-menus ...
> Processing triggers for libglib2.0-0 ...
> Processing triggers for man-db ...
> Errors were encountered while processing:
> indicator-weather
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1030087).
> https://bugs.launchpad.net/bugs/964365
>
> Title:
> Weather indicator as earthtools.org is down
>
> Status in Indicator-Weather:
> Fix Released
> Status in “indicator-weather” package in Ubuntu:
> Fix Released
> Status in “indicator-weather” source package in Precise:
> Fix Committed
>
> Bug description:
> --- SRU Justification ---
>
> [IMPACT]
>
> Currently, indicator-weather will not update. The site that it pulls
> sunrise and sunset times from is down. It does not gracefully handle
> this. It blocks trying to refresh and can also crash with an
> AttributeError.
>
> [TESTCASE]
>
> Run indicator-weather from precise.
>
> If you have never run it before, it will not show any weather
> information at all. If you've run it in the past the old information
> will remain.
>
> Click refresh. With the version in precise, it will say "Refreshing,
> please wait..." indefinitely.
>
> Install the version from precise-proposed. Running it should now both
> show weather information if this is your first time running it as well
> as successfully refresh.
>
> [Regression Potential]
>
> There is very little regression potential. The biggest issue is that
> we have no idea if or when earthtools.org will be back up, so sunrise
> and sunset times will be listed as "Unknown" for the foreseeable
> future. This is still much better than it not working at all.
>
> ---
>
> I'm not sure what causes it, but the indicator seems to crash
> frequently (1-2 times per day) and, from what I can tell, randomly. I
> haven't been able to pinpoint the cause, but notice that it seems to
> happen after entering screensaver mode. I'm not sure if that's
> completely true or just when I happen to notice it's missing.
>
> Installed: 11.11.28~oneiric2
> ...

Read more...

Revision history for this message
Viktor Pal (deere) wrote : Re: Weather indicator as earthtools.org is down

I can confirm this.
http://www.earthtools.org/ is working again.

tags: added: regression-proposed
removed: oneiric
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

The regression in the version in precise-proposed is because it is being built against a newer version of python-distutils-extra. When built against >= 2.32-1, python-distutils-extra automatically finds and installs the gschema file to usr/share/glib-2.0/schemas/ leading the postinst script to fail as it isn't where it expects it to be. There is a fix pending. It is being tracked in bug #1032887.

Sorry for the inconvenience, and thanks for all of your help testing the version in proposed.

Steve Langasek (vorlon)
tags: added: verification-failed
removed: verification-needed
Revision history for this message
Adam Conrad (adconrad) wrote : Please test proposed package

Hello Sage, or anyone else affected,

Accepted indicator-weather into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/indicator-weather/11.11.28-0ubuntu1.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: removed: regression-proposed
tags: removed: verification-failed
tags: added: verification-needed
Revision history for this message
jolo (joop-loep) wrote : Re: Weather indicator as earthtools.org is down

Here, Weather Indicator 12.07.30 'Cloudy 10 shows not the right Sunset and Sunrise times, for location Amsterdam North Holland Netherlands. Sunrise shows 05:37:17 AM instead of 06:07 AM. Sunsets shows 09:48:13 PM instead of 09:24 PM.

Viktor Pal (deere)
security vulnerability: no → yes
visibility: public → private
security vulnerability: yes → no
visibility: private → public
Revision history for this message
Cedara (cedara2) wrote :

Using : Weather Indicator 12.07.30 'Cloudy 10': it's showing the sunrise and sundown times again, but wrongly.

For today (Sun, August 5):

- showing 5:06:17 for sunrise - it should be 5:39

- showing 21:32:45 for sundown - it should be 21:07.

I'm going by the geographical coordinates of 10°42'East; 53°52'North, if that's of any relevance.

So, to summarize - partly successful, but not totally fixed.

Revision history for this message
Colin Keenan (colinkeenan) wrote :

I can confirm wrong sunrise and sundown times are shown. I'm also suspicious about the temperature since it's 4 degrees off of weather.com as well as a thermometer on my own property.

Sunrise & Sunset shown in Weather Indicator 12.07.30 'Cloudy 10' for Sunday 8/5/2012 at Kansas City, MO:
5:03:59 AM and 7:37:47 PM.

Actual Sunrise & Sunset for Sunday 8/5/2012 at Kansas City, MO:
6:22am and 8:26pm or within a minute of those times (I didn't check longitude and latitude)

Temperature reported by Weather Indicator refreshed at 10:14am: 74°, which is the same temperature it's been reporting for the past half hour.

Temperature reported by weather.com and my own thermometer at 10:14am: 80°, which was steadily increasing from the 78° for the past half hour.

I have doubts that Weather Indicator is working.

Revision history for this message
Cedara (cedara2) wrote :

Can't confirm the temperature problem:

It says 21.7C for my area, two other weather sites say: 23C (for half an hour earlier) and 21.2C for a private site. As temperatures can differ in a town depending on where they are taken, it's within the probable variation, imho.

Revision history for this message
Colin Keenan (colinkeenan) wrote :

I added the google weather widget to my igoogle page and it matches weather indicator. So, the temperature is working, but it's still 4 degrees lower than weather.com or my house. That's a problem with not having multiple locations within a city to choose from in google's weather information. It has finally updated to a new temperature though, and matches googles weather widget.

Revision history for this message
Kees Cook (kees) wrote :

I can confirm that this update fixes the indicator for me. Thanks!

tags: added: verification-done
removed: verification-needed
Revision history for this message
Jim Chatman (alienmindgame) wrote : Re: [Bug 964365] Re: Weather indicator as earthtools.org is down
Download full text (3.4 KiB)

Yeah, it refreshes, but I'm not sure what city it's pulling data from. The
sunrise/sunset times are wonky...

On Sun, Aug 5, 2012 at 5:17 PM, Kees Cook <email address hidden> wrote:

> I can confirm that this update fixes the indicator for me. Thanks!
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1030087).
> https://bugs.launchpad.net/bugs/964365
>
> Title:
> Weather indicator as earthtools.org is down
>
> Status in Indicator-Weather:
> Fix Released
> Status in “indicator-weather” package in Ubuntu:
> Fix Released
> Status in “indicator-weather” source package in Precise:
> Fix Committed
>
> Bug description:
> --- SRU Justification ---
>
> [IMPACT]
>
> Currently, indicator-weather will not update. The site that it pulls
> sunrise and sunset times from is down. It does not gracefully handle
> this. It blocks trying to refresh and can also crash with an
> AttributeError.
>
> [TESTCASE]
>
> Run indicator-weather from precise.
>
> If you have never run it before, it will not show any weather
> information at all. If you've run it in the past the old information
> will remain.
>
> Click refresh. With the version in precise, it will say "Refreshing,
> please wait..." indefinitely.
>
> Install the version from precise-proposed. Running it should now both
> show weather information if this is your first time running it as well
> as successfully refresh.
>
> [Regression Potential]
>
> There is very little regression potential. The biggest issue is that
> we have no idea if or when earthtools.org will be back up, so sunrise
> and sunset times will be listed as "Unknown" for the foreseeable
> future. This is still much better than it not working at all.
>
> ---
>
> I'm not sure what causes it, but the indicator seems to crash
> frequently (1-2 times per day) and, from what I can tell, randomly. I
> haven't been able to pinpoint the cause, but notice that it seems to
> happen after entering screensaver mode. I'm not sure if that's
> completely true or just when I happen to notice it's missing.
>
> Installed: 11.11.28~oneiric2
> Candidate: 11.11.28~oneiric2
> Version table:
> *** 11.11.28~oneiric2 0
> 500 http://ppa.launchpad.net/weather-indicator-team/ppa/ubuntu/oneiric/main i386 Packages
> 100 /var/lib/dpkg/status
> 11.05.31-0ubuntu2.1 0
> 500 http://us.archive.ubuntu.com/ubuntu/oneiric-updates/universe i386 Packages
> 11.05.31-0ubuntu2 0
> 500 http://us.archive.ubuntu.com/ubuntu/ oneiric/universe i386
> Packages
>
> ProblemType: Bug
> DistroRelease: Ubuntu 11.10
> Package: indicator-weather 11.11.28~oneiric2
> ProcVersionSignature: Ubuntu 3.0.0-16.29-generic-pae 3.0.20
> Uname: Linux 3.0.0-16-generic-pae i686
> NonfreeKernelModules: nvidia
> ApportVersion: 1.23-0ubuntu4
> Architecture: i386
> CrashDB: indicator_weather
> Date: Sun Mar 25 02:19:23 2012
> EcryptfsInUse: Yes
> ExecutablePath: /usr/bin/indicator-weather
> InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386
> (20101007)
> InterpreterPath: /usr/bin/python2.7
> Package...

Read more...

Revision history for this message
Edward Donovan (edward.donovan) wrote :

The incorrect sunrise/sunset times are a separate ongoing issue, and have their own report, bug 770652. A more longstanding problem, unfortunately.

summary: - Weather indicator as earthtools.org is down
+ Weather indicator fails to update anything when earthtools.org is down
Revision history for this message
Adam Conrad (adconrad) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package indicator-weather - 11.11.28-0ubuntu1.2

---------------
indicator-weather (11.11.28-0ubuntu1.2) precise-proposed; urgency=high

  * debian/postinst: Drop manually installation and compilation of gschema
    file. When built against >= 2.32-1, python-distutils-extra automatically
    finds and installs the gschema file leading the postinst script
    to fail as it isn't where it expects it to be (LP: #1032887).

indicator-weather (11.11.28-0ubuntu1.1) precise-proposed; urgency=low

  * debian/patches/dont_block_on_sun_times.patch:
   - If Earthtools.org is down, report 'Unknown' rather than
     blocking on sunset and sunrise times (LP: #964365).
  * debian/patches/fix_flurries.patch:
   - Fixes flurries condition being marked as 'Unknown' (LP: #928596).
  * debian/patches/fix_pid_checking.patch:
   - Correctly preform .pid file matching so we can restart after
     a crash (LP: #926433).
 -- Andrew Starr-Bochicchio <email address hidden> Sat, 04 Aug 2012 10:40:24 -0400

Changed in indicator-weather (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
heynnema (heynnema) wrote :

I just tried both 11.11.28-0ubuntu1.2 and 12.07.30-precise1, and they both still give an error "forecast information cannot be fetched" when trying to see the forcast.

Please help!

Al

Revision history for this message
Aleve Sicofante (sicofante) wrote :

Same issue here: weather is properly updated (with Yahoo, not with Google) but I can't get forecasts.

"Forecast information cannot be fetched. Connection cannot be established".

Revision history for this message
Aleve Sicofante (sicofante) wrote :

Ignore my last comment. I'm opening two new bugs.

Revision history for this message
kg4gon (kg4gon-gmail) wrote : Re: [Bug 964365] Re: Weather indicator fails to update anything when earthtools.org is down
Download full text (3.7 KiB)

Me too.

On Wed, Oct 3, 2012 at 7:24 PM, Aleve Sicofante <email address hidden>wrote:

> Same issue here: weather is properly updated (with Yahoo, not with
> Google) but I can't get forecasts.
>
> "Forecast information cannot be fetched. Connection cannot be
> established".
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1030279).
> https://bugs.launchpad.net/bugs/964365
>
> Title:
> Weather indicator fails to update anything when earthtools.org is down
>
> Status in Indicator-Weather:
> Fix Released
> Status in “indicator-weather” package in Ubuntu:
> Fix Released
> Status in “indicator-weather” source package in Precise:
> Fix Released
>
> Bug description:
> --- SRU Justification ---
>
> [IMPACT]
>
> Currently, indicator-weather will not update. The site that it pulls
> sunrise and sunset times from is down. It does not gracefully handle
> this. It blocks trying to refresh and can also crash with an
> AttributeError.
>
> [TESTCASE]
>
> Run indicator-weather from precise.
>
> If you have never run it before, it will not show any weather
> information at all. If you've run it in the past the old information
> will remain.
>
> Click refresh. With the version in precise, it will say "Refreshing,
> please wait..." indefinitely.
>
> Install the version from precise-proposed. Running it should now both
> show weather information if this is your first time running it as well
> as successfully refresh.
>
> [Regression Potential]
>
> There is very little regression potential. The biggest issue is that
> we have no idea if or when earthtools.org will be back up, so sunrise
> and sunset times will be listed as "Unknown" for the foreseeable
> future. This is still much better than it not working at all.
>
> ---
>
> I'm not sure what causes it, but the indicator seems to crash
> frequently (1-2 times per day) and, from what I can tell, randomly. I
> haven't been able to pinpoint the cause, but notice that it seems to
> happen after entering screensaver mode. I'm not sure if that's
> completely true or just when I happen to notice it's missing.
>
> Installed: 11.11.28~oneiric2
> Candidate: 11.11.28~oneiric2
> Version table:
> *** 11.11.28~oneiric2 0
> 500 http://ppa.launchpad.net/weather-indicator-team/ppa/ubuntu/oneiric/main i386 Packages
> 100 /var/lib/dpkg/status
> 11.05.31-0ubuntu2.1 0
> 500 http://us.archive.ubuntu.com/ubuntu/oneiric-updates/universe i386 Packages
> 11.05.31-0ubuntu2 0
> 500 http://us.archive.ubuntu.com/ubuntu/ oneiric/universe i386
> Packages
>
> ProblemType: Bug
> DistroRelease: Ubuntu 11.10
> Package: indicator-weather 11.11.28~oneiric2
> ProcVersionSignature: Ubuntu 3.0.0-16.29-generic-pae 3.0.20
> Uname: Linux 3.0.0-16-generic-pae i686
> NonfreeKernelModules: nvidia
> ApportVersion: 1.23-0ubuntu4
> Architecture: i386
> CrashDB: indicator_weather
> Date: Sun Mar 25 02:19:23 2012
> EcryptfsInUse: Yes
> ExecutablePath: /usr/bin/indicator-weather
> InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386
> (20101007...

Read more...

Revision history for this message
Luisa Vanesa (luisa-vanesa) wrote :

I have upgraded to 12.10 when it was released but I personally found many bugs and I recently went back on 12.04. This one is working properly (or at least it has much less bugs than the 12.10) but now the Weather Indicator does not work at all. As i went back on 12.04, I reinstalled it and I can't set the location. What could I do to fix it? Or is it already fixed?
Thank you.

Revision history for this message
indigocat (indigocat) wrote :

I have the exact same problem, under the exact same conditions & situation as comment #58.

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.