inasafe / inasafe

InaSAFE - QGIS plugin for estimating impact from natural disasters
www.inasafe.org
GNU General Public License v3.0
258 stars 134 forks source link

IOError in InaSAFE analysis through interaction with Processing plugin #2993

Closed griffij closed 8 years ago

griffij commented 8 years ago

Problem

Fresh install of QGIS, InaSAFE on Mac OSX and any analysis I have tried to run gives an IOError, details below. @timlinux @ismailsunni @lucernae

In file "/Users/PCUser/.qgis2/python/plugins/inasafe/safe/impact_functions/base.py", line 678, in run_analysis self._prepare() In file "/Users/PCUser/.qgis2/python/plugins/inasafe/safe/impact_functions/base.py", line 812, in _prepare self._setup_aggregator() In file "/Users/PCUser/.qgis2/python/plugins/inasafe/safe/impact_functions/base.py", line 1328, in _setup_aggregator self._aggregator = Aggregator(buffered_geo_extent, qgis_layer) In file "/Users/PCUser/.qgis2/python/plugins/inasafe/safe/impact_statistics/aggregator.py", line 143, in __init__ self.processing.initialize() In file "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py", line 148, in initialize Processing.loadFromProviders() In file "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py", line 165, in loadFromProviders Processing.loadAlgorithms() In file "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py", line 200, in loadAlgorithms Processing.updateProviders() In file "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py", line 173, in updateProviders provider.loadAlgorithms() In file "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/AlgorithmProvider.py", line 54, in loadAlgorithms self._loadAlgorithms() In file "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/algs/otb/OTBAlgorithmProvider.py", line 61, in _loadAlgorithms version = OTBUtils.getInstalledVersion(True) In file "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/algs/otb/OTBUtils.py", line 134, in getInstalledVersion out = executeOtb(commands, progress, False) In file "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/algs/otb/OTBUtils.py", line 163, in executeOtb for line in iter(proc.readline, ""): IOError

If I go to Plugins -> manage plugins and uncheck, then re-check the Processing plugin then I get this error, which seems only to happen after InaSAFE is installed:

processing error

Expected Behaviour

Expecting normal InaSAFE analysis instead.

Environment

Check if problem is in the processing plugin, InaSAFE or in their interaction.

timlinux commented 8 years ago

@ismailsunni would you take a look at this and back port to master for a 3.4.3 bug fix release if it is something we can fix on our side?

timlinux commented 8 years ago

(copied in @Gustry as he may ave more background knowledge about the processing side of the equation)

griffij commented 8 years ago

After deleting QGSI.app and .qgis2 folders and reinstallinga fresh QGIS installation, I am getting the same (second) error that the processing module can't load when it calls iniGUI(). i.e. This is without InaSAFE installed. So it is a problem with QGIS installation and the core processing plugin, not InaSAFE.