<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<br><br></span></code></pre><pre class="gmail-lang-py gmail-prettyprint gmail-prettyprinted"><code><span class="gmail-pln">Thanks for the help<br></span></code></pre><pre class="gmail-lang-py gmail-prettyprint gmail-prettyprinted"><code><span class="gmail-pln">Regards<br></span></code></pre></div>