[Bug 1093769] Re: indicator-weather Cannot add location
*** This bug is a duplicate of bug 821233 *** https://bugs.launchpad.net/bugs/821233 ** Also affects: weather-indicator Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1093769 Title: indicator-weather Cannot add location To manage notifications about this bug go to: https://bugs.launchpad.net/weather-indicator/+bug/1093769/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1093769] Re: indicator-weather Cannot add location
*** This bug is a duplicate of bug 821233 *** https://bugs.launchpad.net/bugs/821233 Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 821233, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find. ** This bug has been marked a duplicate of bug 821233 indicator-weather crashed with AttributeError in export_location_details(): Location instance has no attribute 'location_code' -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1093769 Title: indicator-weather Cannot add location To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/indicator-weather/+bug/1093769/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1093769] Re: indicator-weather Cannot add location
Is it not going to get fixed. - i got three Ubuntu machines here and on two of them the weather indicator has this bug. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1093769 Title: indicator-weather Cannot add location To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/indicator-weather/+bug/1093769/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1093769] Re: indicator-weather Cannot add location
This indicator evals json data (which is potentially dangerous) and the evaluated data has ['ResultSet']['Error'] as "0" (string value) while the code checks for 0, a number. >>> '0' == 0 False So the quick and dirty fix in this case is to modify the condition at line 367 in indicator-weather to read: if (yahoo_woeid_result['ResultSet']['Error'] != '0') and (yahoo_woeid_result['ResultSet']['Results'] != None): But the proper fix is to rewrite the evals using json module. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1093769 Title: indicator-weather Cannot add location To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/indicator-weather/+bug/1093769/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1093769] Re: indicator-weather Cannot add location
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: indicator-weather (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1093769 Title: indicator-weather Cannot add location To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/indicator-weather/+bug/1093769/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1093769] Re: indicator-weather Cannot add location
Running from console, these errors are returned: Traceback (most recent call last): File "/usr/bin/indicator-weather", line 1892, in on_apply (location_code, location_details) = self.location.export_location_details() File "/usr/bin/indicator-weather", line 405, in export_location_details return (self.location_code, self.location_details) AttributeError: Location instance has no attribute 'location_code' -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1093769 Title: indicator-weather Cannot add location To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/indicator-weather/+bug/1093769/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs