Network error in Weather

Bug #739293 reported by Vitaliy Kulikov
48
This bug affects 8 people
Affects Status Importance Assigned to Milestone
avant-window-navigator (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: avant-window-navigator

There is no connectivity issue, and oddly, the weather is correctly displayed. Yet this message box continues to periodically pop up.

To get rid of the annoying error notification see post on Ubuntu Forums: http://ubuntuforums.org/showthread.php?t=1704685

Short version: comment out (or delete) line #240 in /usr/share/avant-window-navigator/applets/weather/weather.py (effectively disabling self.notification.show) and restart the applet.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: avant-window-navigator 0.4.0-2ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-28.49-generic 2.6.35.11
Uname: Linux 2.6.35-28-generic x86_64
NonfreeKernelModules: fglrx
Architecture: amd64
Date: Mon Mar 21 12:53:33 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: avant-window-navigator

Revision history for this message
Vitaliy Kulikov (slonua) wrote :
Revision history for this message
marb (marb) wrote :

I have the same since few weeks.

It seems something changed on weather.com again, and it can't fetch weather map.

Warning in Weather: error in get_weather_map: Couldn't parse weather map
Reattempt (3 retries remaining) in 10 seconds
Warning in Weather: error in get_weather_map: Couldn't parse weather map
Reattempt (2 retries remaining) in 10 seconds
Warning in Weather: error in get_weather_map: Couldn't parse weather map
Reattempt (1 retries remaining) in 10 seconds
Error in Weather: error in get_weather_map: Couldn't parse weather map

Changed in avant-window-navigator (Ubuntu):
status: New → Confirmed
Revision history for this message
Pablo Lillia (gorlok) wrote :

Confirmed. Still present on Ubuntu 11.04 fresh installation.
Workaround still works. I comment out line #240 at /usr/share/avant-window-navigator/applets/weather/weather.py

Revision history for this message
Tristan Grimaux (info-tristangrimaux) wrote :

The weather map parsing has an error. It finds the map correctly but when it has to find the src it fails as its criteria looks for the wrong case, and without proper quotes. The weather.com site changed it?

ok

find somehing similar to

mapExp = """<IMG NAME="mapImg" SRC="([^\"]+)" WIDTH=([0-9]+) HEIGHT=([0-9]+) BORDER"""

and change it to

mapExp = """<img name="mapImg" src="([^\"]+)" width="([0-9]+)" height="([0-9]+)" border"""

Mine is on line 622

Also, on line 563 or 606 (depends on the version) update the key if it's failing

The original is
__ws_key = "&prod=xoap&par=1048871467&key=12daac2f3a67cb39&link=xoap"

and you can change it to
__ws_key = "&prod=xoap&par=1287722164&key=e11ec82daa20d876"

as posted on
http://ubuntuforums.org/showpost.php?p=11435261&postcount=59

As a side note: to report a parsing problem as a network connection error is really bizarre|awkward|stupid|disrupting and it gets worse as you are parsing someone else page, prone to be changed without notice.

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