<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.HTMLVorformatiertZchn
        {mso-style-name:"HTML Vorformatiert Zchn";
        mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert";
        font-family:"Consolas",serif;
        mso-fareast-language:DE;}
span.E-MailFormatvorlage21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Hi Larry,<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='mso-fareast-language:EN-US'>it’s difficult to tell what went wrong without knowing the steps and the data you used. I just tried all the slope algorithms in the toolbox (gdal:slope, qgis:slope) and all work nicely here. I use QGIS 3 from the OSGeo4W-Installation … used a projected (in meters) SRTM scene and had no troubles running the slope algorithms.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='mso-fareast-language:EN-US'>Frank<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Dipl. Geogr. Frank Broniewski<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Waldhölzbacher Str. 51<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>66679 Losheim am See<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>06872 509 068 4<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>0176 611 26 9 2 6<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><a href="http://www.frankbroniewski.com"><span style='color:#0563C1'>www.frankbroniewski.com</span></a><o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-GB style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><b>Von:</b> Qgis-user <qgis-user-bounces@lists.osgeo.org> <b>Im Auftrag von </b>larry mason<br><b>Gesendet:</b> Montag, 9. Juli 2018 19:29<br><b>An:</b> qgis-user@lists.osgeo.org<br><b>Betreff:</b> [Qgis-user] Python error when trying to do a slope analysis in a DEM raster file<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal><img border=0 id="_x0000_i1025" src="https://mailtrack.io/trace/mail/4790cfbaf39d64c696d840259962559ef60d0b91.png?u=651070"><o:p></o:p></p><p class=MsoNormal><span style='font-size:9.5pt;font-family:"Helvetica",sans-serif;color:#202124'>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:</span><o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>snip---------------<o:p></o:p></p></div><div><p style='margin:0cm;margin-bottom:.0001pt;white-space:pre-wrap'><b><span style='color:red'>An error has occurred while executing Python code:</span></b> <o:p></o:p></p><p style='mso-margin-top-alt:10.5pt;margin-right:0cm;margin-bottom:9.0pt;margin-left:0cm;white-space:pre-wrap'><b><span style='font-size:18.0pt'>AttributeError: 'slope' object has no attribute 'preprocessParameters' </span></b><o:p></o:p></p><pre style='mso-margin-top-alt:9.0pt;margin-right:0cm;margin-bottom:9.0pt;margin-left:0cm'>Traceback (most recent call last):<br>  File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\gui\menus.py", line 181, in <br>    action.triggered.connect(lambda: _executeAlgorithm(alg))<br>  File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\gui\menus.py", line 227, in _executeAlgorithm<br>    dlg = alg.createCustomParametersWidget(None)<br>  File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\algs\gdal\GdalAlgorithm.py", line 62, in createCustomParametersWidget<br>    return GdalAlgorithmDialog(self)<br>  File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\algs\gdal\GdalAlgorithmDialog.py", line 58, in __init__<br>    self.mainWidget().parametersHaveChanged()<br>  File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\algs\gdal\GdalAlgorithmDialog.py", line 110, in parametersHaveChanged<br>    parameters = self.parent.getParameterValues()<br>  File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\gui\AlgorithmDialog.py", line 119, in getParameterValues<br>    return self.algorithm().preprocessParameters(parameters)<br>AttributeError: 'slope' object has no attribute 'preprocessParameters'<o:p></o:p></pre><p style='margin:0cm;margin-bottom:.0001pt;white-space:pre-wrap'><br><b>Python version:</b> 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)] <br><b>QGIS version:</b> 3.0.0-Girona Girona, 001c80b0c3 <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>end snip-----------------------<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>So I'm wondering if I need to set anything up for QGIS is use python modules. Or where one sets up preprocessing Parameters. Any good tutorials on loading DEMs. configuring properties, and running analysis. Thanks,<o:p></o:p></p></div><div><p class=MsoNormal>Larry<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p></div><p class=MsoNormal><o:p> </o:p></p><div><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 style='user-select: none'><tr><td style='padding:6.0pt 6.0pt 6.0pt 6.0pt'><p class=MsoNormal><a href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality6&"><span style='text-decoration:none'><img border=0 width=32 height=32 style='width:.3333in;height:.3333in' id="_x0000_i1026" src="https://s3.amazonaws.com/mailtrack-signature/sender_notified.gif" alt=Mailtrack></span></a><o:p></o:p></p></td><td style='padding:6.0pt 6.0pt 6.0pt 6.0pt'><p class=MsoNormal><span style='color:#777777'>Sender notified by</span> <br><a href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality6&"><span style='color:#4374F7'>Mailtrack</span></a> <span style='font-size:1.0pt'>07/09/18, 12:25:29 PM</span> <o:p></o:p></p></td><td style='padding:6.0pt 6.0pt 6.0pt 6.0pt'></td></tr></table><p class=MsoNormal><o:p> </o:p></p></div></div></div></div></body></html>