{"action":"created","issue":{"url":"https://api.github.com/repos/AIFDR/inasafe/issues/2257","labels_url":"https://api.github.com/repos/AIFDR/inasafe/issues/2257/labels{/name}","comments_url":"https://api.github.com/repos/AIFDR/inasafe/issues/2257/comments","events_url":"https://api.github.com/repos/AIFDR/inasafe/issues/2257/events","html_url":"https://github.com/AIFDR/inasafe/issues/2257","id":103281005,"number":2257,"title":"Tsunami: UnboundLocalError","user":{"login":"roscoeKartoza","id":10434570,"avatar_url":"https://avatars.githubusercontent.com/u/10434570?v=3","gravatar_id":"","url":"https://api.github.com/users/roscoeKartoza","html_url":"https://github.com/roscoeKartoza","followers_url":"https://api.github.com/users/roscoeKartoza/followers","following_url":"https://api.github.com/users/roscoeKartoza/following{/other_user}","gists_url":"https://api.github.com/users/roscoeKartoza/gists{/gist_id}","starred_url":"https://api.github.com/users/roscoeKartoza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roscoeKartoza/subscriptions","organizations_url":"https://api.github.com/users/roscoeKartoza/orgs","repos_url":"https://api.github.com/users/roscoeKartoza/repos","events_url":"https://api.github.com/users/roscoeKartoza/events{/privacy}","received_events_url":"https://api.github.com/users/roscoeKartoza/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-26T14:19:01Z","updated_at":"2015-08-26T14:24:46Z","closed_at":null,"body":"# Problem\r\nGetting a 'UnboundLocalError' when running Tsunami function with Building Centroids.\r\n![tsunami_building_centroid_error](https://cloud.githubusercontent.com/assets/10434570/9495910/18c45e4c-4c0e-11e5-8db1-0abc2043f4a1.jpg)\r\n\r\n\r\n# Environment\r\nWindows 8.1 64 bit\r\nQGIS 2.8.3\r\n\r\n# Scenario\r\nHazard layer: Tsunami\r\nExposure Layer: Building Centroid\r\n\r\n# Traceback\r\n```\r\n2015-08-27T04:03:40\t1\twarning:C:/Users/Roscoe/.qgis2/python/plugins\\inasafe-develop\\safe\\utilities\\utilities.py:76: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6\r\n\t\t\t  if isinstance(exception.message, Message):\r\n\t\t\t\r\ntraceback:  File \"C:/Users/Roscoe/.qgis2/python/plugins\\inasafe-develop\\safe\\gui\\widgets\\dock.py\", line 1198, in accept\r\n\tself.analysis.run_analysis()\r\n  File \"C:/Users/Roscoe/.qgis2/python/plugins\\inasafe-develop\\safe\\utilities\\analysis.py\", line 1015, in run_analysis\r\n\t'An exception occurred when running the impact analysis.'))\r\n  File \"C:/Users/Roscoe/.qgis2/python/plugins\\inasafe-develop\\safe\\utilities\\analysis.py\", line 756, in analysis_error\r\n\tmessage = get_error_message(exception, context=message)\r\n\t\t\t\r\n2015-08-27T04:03:40\t1\twarning:C:/Users/Roscoe/.qgis2/python/plugins\\inasafe-develop\\safe\\utilities\\utilities.py:79: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6\r\n\t\t\t  problem.append = m.Text(exception.message)\r\n\t\t\t\r\ntraceback:  File \"C:/Users/Roscoe/.qgis2/python/plugins\\inasafe-develop\\safe\\gui\\widgets\\dock.py\", line 1198, in accept\r\n\tself.analysis.run_analysis()\r\n  File \"C:/Users/Roscoe/.qgis2/python/plugins\\inasafe-develop\\safe\\utilities\\analysis.py\", line 1015, in run_analysis\r\n\t'An exception occurred when running the impact analysis.'))\r\n  File \"C:/Users/Roscoe/.qgis2/python/plugins\\inasafe-develop\\safe\\utilities\\analysis.py\", line 756, in analysis_error\r\n\tmessage = get_error_message(exception, context=message)\r\n```"},"comment":{"url":"https://api.github.com/repos/AIFDR/inasafe/issues/comments/135038731","html_url":"https://github.com/AIFDR/inasafe/issues/2257#issuecomment-135038731","issue_url":"https://api.github.com/repos/AIFDR/inasafe/issues/2257","id":135038731,"user":{"login":"timlinux","id":178003,"avatar_url":"https://avatars.githubusercontent.com/u/178003?v=3","gravatar_id":"","url":"https://api.github.com/users/timlinux","html_url":"https://github.com/timlinux","followers_url":"https://api.github.com/users/timlinux/followers","following_url":"https://api.github.com/users/timlinux/following{/other_user}","gists_url":"https://api.github.com/users/timlinux/gists{/gist_id}","starred_url":"https://api.github.com/users/timlinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timlinux/subscriptions","organizations_url":"https://api.github.com/users/timlinux/orgs","repos_url":"https://api.github.com/users/timlinux/repos","events_url":"https://api.github.com/users/timlinux/events{/privacy}","received_events_url":"https://api.github.com/users/timlinux/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T14:24:46Z","updated_at":"2015-08-26T14:24:46Z","body":"```\r\n[Tsunami]\r\nexposure = ../home/timlinux/.qgis2/python/plugins/inasafe/safe/test/data/exposure/building-points.shp\r\nhazard = ../home/timlinux/.qgis2/python/plugins/inasafe/safe/test/data/hazard/tsunami_wgs84.tif\r\nfunction = FloodRasterBuildingFunction\r\nextent = 106.804038, -6.189098, 106.833959, -6.161012\r\nextent_crs = EPSG:4326\r\naggregation = ../home/timlinux/.qgis2/python/plugins/inasafe/safe/test/data/boundaries/district_osm_jakarta.shp\r\n```"}}