[Qgis-user] Python error when trying to do a slope analysis in a DEM raster file

Nyall Dawson nyall.dawson at gmail.com
Mon Jul 9 18:33:02 PDT 2018


On Tue, 10 Jul 2018 at 03:29, larry mason <glmason.lm at gmail.com> wrote:
>
> I know I should read the documentation just not sure where to find it. I'm trying to do a slope analysis of a DEM raster layer... I get the following python stack trace:
>
> snip---------------
>
> An error has occurred while executing Python code:
>
> AttributeError: 'slope' object has no attribute 'preprocessParameters'
>
> Traceback (most recent call last):
>   File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\gui\menus.py", line 181, in
>     action.triggered.connect(lambda: _executeAlgorithm(alg))
>   File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\gui\menus.py", line 227, in _executeAlgorithm
>     dlg = alg.createCustomParametersWidget(None)
>   File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\algs\gdal\GdalAlgorithm.py", line 62, in createCustomParametersWidget
>     return GdalAlgorithmDialog(self)
>   File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\algs\gdal\GdalAlgorithmDialog.py", line 58, in __init__
>     self.mainWidget().parametersHaveChanged()
>   File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\algs\gdal\GdalAlgorithmDialog.py", line 110, in parametersHaveChanged
>     parameters = self.parent.getParameterValues()
>   File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\gui\AlgorithmDialog.py", line 119, in getParameterValues
>     return self.algorithm().preprocessParameters(parameters)
> AttributeError: 'slope' object has no attribute 'preprocessParameters'
>
>

I can't reproduce, but this error looks odd to me. Can you try a clean
install and see if it helps?

Nyall



More information about the Qgis-user mailing list