<br clear="all"><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">how to run a custom grass viewer outside grass shell<div>

eg</div><div>python gui_modules/render.py </div><div><br></div><div>but it gives me error</div><div><div>Initializing...</div><div>Traceback (most recent call last):</div><div>  File &quot;grass-qt/render.py&quot;, line 1308, in &lt;module&gt;</div>

<div>    image = map.Render(force = True)</div><div>  File &quot;grass-qt/render.py&quot;, line 865, in Render</div><div>    os.environ[&quot;GRASS_REGION&quot;] = self.SetRegion(windres)</div><div>  File &quot;grass-qt/render.py&quot;, line 697, in SetRegion</div>

<div>    region = self.AdjustRegion()</div><div>  File &quot;grass-qt/render.py&quot;, line 484, in AdjustRegion</div><div>    mapwidth    = abs(self.region[&quot;e&quot;] - self.region[&quot;w&quot;])</div><div>KeyError: &#39;e&#39;</div>

<div>Exception AttributeError: &quot;&#39;NoneType&#39; object has no attribute &#39;GetCmdString&#39;&quot; in &lt;bound method MapLayer.__del__ of &lt;__main__.MapLayer object at 0xa40f08c&gt;&gt; ignored</div><div>Exception AttributeError: &quot;&#39;NoneType&#39; object has no attribute &#39;GetCmdString&#39;&quot; in &lt;bound method MapLayer.__del__ of &lt;__main__.MapLayer object at 0xa3ebfec&gt;&gt; ignored</div>

</div><div><br></div></span>-- <br><div>Thanks &amp;&amp; Regards</div>Rashad<br>