Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tsunami: UnboundLocalError #2257

Closed
roscoeKartoza opened this issue Aug 26, 2015 · 4 comments
Closed

Tsunami: UnboundLocalError #2257

roscoeKartoza opened this issue Aug 26, 2015 · 4 comments
Labels
Milestone

Comments

@roscoeKartoza
Copy link

Problem

Getting a 'UnboundLocalError' when running Tsunami function with Building Centroids.
tsunami_building_centroid_error

Environment

Windows 8.1 64 bit
QGIS 2.8.3

Scenario

Hazard layer: Tsunami
Exposure Layer: Building Centroid

Traceback

2015-08-27T04:03:40 1   warning:C:/Users/Roscoe/.qgis2/python/plugins\inasafe-develop\safe\utilities\utilities.py:76: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
              if isinstance(exception.message, Message):

traceback:  File "C:/Users/Roscoe/.qgis2/python/plugins\inasafe-develop\safe\gui\widgets\dock.py", line 1198, in accept
    self.analysis.run_analysis()
  File "C:/Users/Roscoe/.qgis2/python/plugins\inasafe-develop\safe\utilities\analysis.py", line 1015, in run_analysis
    'An exception occurred when running the impact analysis.'))
  File "C:/Users/Roscoe/.qgis2/python/plugins\inasafe-develop\safe\utilities\analysis.py", line 756, in analysis_error
    message = get_error_message(exception, context=message)

2015-08-27T04:03:40 1   warning:C:/Users/Roscoe/.qgis2/python/plugins\inasafe-develop\safe\utilities\utilities.py:79: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
              problem.append = m.Text(exception.message)

traceback:  File "C:/Users/Roscoe/.qgis2/python/plugins\inasafe-develop\safe\gui\widgets\dock.py", line 1198, in accept
    self.analysis.run_analysis()
  File "C:/Users/Roscoe/.qgis2/python/plugins\inasafe-develop\safe\utilities\analysis.py", line 1015, in run_analysis
    'An exception occurred when running the impact analysis.'))
  File "C:/Users/Roscoe/.qgis2/python/plugins\inasafe-develop\safe\utilities\analysis.py", line 756, in analysis_error
    message = get_error_message(exception, context=message)
@timlinux
Copy link
Contributor

[Tsunami]
exposure = ../home/timlinux/.qgis2/python/plugins/inasafe/safe/test/data/exposure/building-points.shp
hazard = ../home/timlinux/.qgis2/python/plugins/inasafe/safe/test/data/hazard/tsunami_wgs84.tif
function = FloodRasterBuildingFunction
extent = 106.804038, -6.189098, 106.833959, -6.161012
extent_crs = EPSG:4326
aggregation = ../home/timlinux/.qgis2/python/plugins/inasafe/safe/test/data/boundaries/district_osm_jakarta.shp

@ismailsunni ismailsunni added this to the Version 3.2 milestone Aug 26, 2015
@ismailsunni ismailsunni self-assigned this Aug 26, 2015
@ismailsunni
Copy link
Member

Same scenario, but in Ubuntu, all is fine. Can't replicate this. Is it windows specific?

Can you try it @lucernae

@ismailsunni ismailsunni assigned lucernae and unassigned ismailsunni Aug 26, 2015
@lucernae
Copy link
Collaborator

I tried it:

Windows 10 64bit
QGIS 2.10 (Pisa)

Can't replicate this. Perhaps we need more details?

@timlinux
Copy link
Contributor

Tested again - can't replicate. @roscoeKartoza please pull and re-test - reopen if you still experience the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants