No text weather details displayed

Bug #136253 reported by Nate Walker
6
Affects Status Importance Assigned to Milestone
Weather wallpaper
Fix Released
Low
Raúl González Duque

Bug Description

There are currently no text details displayed on my screen. I've tried running weather-wallpaper in a terminal window and this is what it shows:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "threading.py", line 460, in __bootstrap
    self.run()
  File "/usr/bin/weather-wallpaper", line 154, in run
    report_str += _("Visibility: ") + str(int(report.getVisibilityKilometers())) + "Km\n"
TypeError: int() argument must be a string or a number, not 'NoneType'

Revision history for this message
Chimo (chimo) wrote :

I had the same problem. It seems that the script expect the value to be a number but when it's text (such as Visibility: "None") it complains.

I worked around it by removing the "int()" in the lines that were causing trouble. For example, my visibility line reads: report_str += _("Visibility: ") + str(report.getVisibilityKilometers()) + "Km\n"

It's been working fine since then.

Hope it helps!

Revision history for this message
Chimo (chimo) wrote :

According to the author, it'll be fixed in the next version. (see: https://answers.launchpad.net/weather-wallpaper/+question/12490 )

Revision history for this message
Nate Walker (kiwinewt) wrote :

Has been said to be fixed in the next version

Changed in weather-wallpaper:
status: New → In Progress
Changed in weather-wallpaper:
importance: Undecided → Low
Changed in weather-wallpaper:
assignee: nobody → zootropo
status: In Progress → Fix Committed
Changed in weather-wallpaper:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.