<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Miguel<br>
</p>
<p>or you can use also "processing.runAndLoadResults(...)" to load
the result directly into QGIS</p>
<p>regards</p>
<p>Stefan<br>
</p>
<div class="moz-cite-prefix">Am 07.07.2020 um 06:25 schrieb
Christoph Jung:<br>
</div>
<blockquote type="cite"
cite="mid:AD258BEB-6F95-487F-B315-8DA6A70A404A@gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">Hi Miguel,</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">You call the run-method on an variable called
„general“. But using the processing framework will be realised
by calling “processing.run(...)”. Maybe this is the problem?</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Sincerely,</div>
<div dir="ltr">Christoph</div>
</div>
<div dir="ltr"><br>
<blockquote type="cite">Am 07.07.2020 um 00:18 schrieb Miguel
Eduardo Rincon De Hoyos <a class="moz-txt-link-rfc2396E" href="mailto:merinconh@unal.edu.co"><merinconh@unal.edu.co></a>:<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<p>Dears members<br>
</p>
<p> I am using Python for my postgraduate studies and I am
having
trouble running my code when I try to use processing in <span
class="" style="" id=":16i.1" tabindex="-1">Qgis</span>
using the command-line interface.</p>
<p>I think the error is really easy to fix it but right now
I do not know how to fix it. When I run my code I have
this</p>
<pre class="gmail-lang-py gmail-prettyprint gmail-prettyprinted"><code><span class="gmail-typ"><span class="" style="" id=":16i.2" tabindex="-1">Traceback</span></span><span class="gmail-pln"> </span><span class="gmail-pun">(</span><span class="gmail-pln">most recent call last</span><span class="gmail-pun">):</span><span class="gmail-pln">
</span><span class="gmail-typ">File</span><span class="gmail-pln"> </span><span class="gmail-str">"urban_canopy_element.<span class="" style="" id=":16i.3" tabindex="-1">py</span>"</span><span class="gmail-pun">,</span><span class="gmail-pln"> line </span><span class="gmail-lit">100</span><span class="gmail-pun">,</span><span class="gmail-pln"> </span><span class="gmail-kwd">in</span><span class="gmail-pln"> </span><span class="gmail-pun"><</span><span class="gmail-pln">module</span><span class="gmail-pun">></span><span class="gmail-pln">
output</span><span class="gmail-pun">=</span><span class="gmail-pln">general</span><span class="gmail-pun">.</span><span class="gmail-pln">run</span><span class="gmail-pun">(</span><span class="gmail-str">'qgis:clip'</span><span class="gmail-pun">,{</span><span class="gmail-str">'INPUT'</span><span class="gmail-pun">:</span><span class="gmail-pln"> input_layer</span><span class="gmail-pun">,</span><span class="gmail-pln"> \
</span><span class="gmail-typ"><span class="" style="" id=":16i.4" tabindex="-1">NameError</span></span><span class="gmail-pun">:</span><span class="gmail-pln"> name </span><span class="gmail-str">'run'</span><span class="gmail-pln"> </span><span class="gmail-kwd">is</span><span class="gmail-pln"> </span><span class="gmail-kwd">not</span><span class="gmail-pln"> defined
</span></code></pre>
<pre class="gmail-lang-py gmail-prettyprint gmail-prettyprinted"><code><span class="gmail-pln">Thanks for the help
</span></code></pre>
<pre class="gmail-lang-py gmail-prettyprint gmail-prettyprinted"><code><span class="gmail-pln">Regards
</span></code></pre>
</div>
<span>_______________________________________________</span><br>
<span>Qgis-user mailing list</span><br>
<span><a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a></span><br>
<span>List info:
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></span><br>
<span>Unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></span></div>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Mit freundlichen Grüßen
Stefan Giese
Projektleiter/Consultant
------------------------------------------------------
Aufwind durch Wissen!
Jetzt neu: Webinare und Online-Schulungen
bei der <a class="moz-txt-link-abbreviated" href="http://www.foss-academy.com">www.foss-academy.com</a>
------------------------------------------------------
WhereGroup GmbH
Schwimmbadstr. 2
79100 Freiburg
Germany
Fon: +49 (0)761 / 519 102 - 61
Fax: +49 (0)761 / 519 102 - 11
<a class="moz-txt-link-abbreviated" href="mailto:stefan.giese@wheregroup.com">stefan.giese@wheregroup.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.wheregroup.com">www.wheregroup.com</a>
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885</pre>
</body>
</html>