location.py parse error

Bug #1050273 reported by DoctorTechwomble
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wakeup
Confirmed
Medium
newbuntu

Bug Description

Total Ubuntu noob, running 12.04, and Wakeup v1.3.

Great app, all works except the weather function, it will not pick up my location automatically and doesnt work if i enter in manually. The 2 weather applets i have tried are fine and work well. Its just Wakeup, any suggestions would be welcomed.

Revision history for this message
newbuntu (dsglass) wrote :

This may be a duplicate of LP: #1049329, for which the fix will soon be out. The only worrisome thing is that you say that it does not pick up your location automatically. Unfortunately that is hard to debug without knowing your location, but if you feel comfortable sharing part or all of it, please do:
# cd /usr/share/wakeup
# python -c 'import location; print location.get_location()'

and share whatever part of the output you are comfortable posting.

Changed in wakeup:
assignee: nobody → newbuntu (dsglass)
Revision history for this message
DoctorTechwomble (doctortechwomble) wrote :

here is wha happened:

:/usr/share/wakeup$ python -c 'import location; print location.get_location()'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "location.py", line 38, in get_location
    properties[prop.group(1).strip()] = re.sub("<.*>|&nbsp;", "", val.group(1).strip())
AttributeError: 'NoneType' object has no attribute 'group'

Revision history for this message
newbuntu (dsglass) wrote :

This must depend on your particular location, which is based on data taken from your ip address via ip-address.org. The only way to really get to the bottom of that would be to look the webpage source when you visit ip-address.org. If you feel comfortable sharing that information, by all means provide it and I will try to fix this. You may also try to fix it yourself and report back what goes wrong.

In either case, as of revision 18 (released today) you should be able to use a manual location. Sorry for the slow response. Unfortunately the time scale for this to get into quantal is pretty short, so I can't guarentee it will be available unless you report back quite soon. If not, this will be available here as a patch.

Changed in wakeup:
status: New → Confirmed
summary: - Cannot get weather element to work
+ location.py parse error
Changed in wakeup:
importance: Undecided → Medium
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.