<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 "grass-qt/render.py", line 1308, in <module></div>
<div> image = map.Render(force = True)</div><div> File "grass-qt/render.py", line 865, in Render</div><div> os.environ["GRASS_REGION"] = self.SetRegion(windres)</div><div> File "grass-qt/render.py", line 697, in SetRegion</div>
<div> region = self.AdjustRegion()</div><div> File "grass-qt/render.py", line 484, in AdjustRegion</div><div> mapwidth = abs(self.region["e"] - self.region["w"])</div><div>KeyError: 'e'</div>
<div>Exception AttributeError: "'NoneType' object has no attribute 'GetCmdString'" in <bound method MapLayer.__del__ of <__main__.MapLayer object at 0xa40f08c>> ignored</div><div>Exception AttributeError: "'NoneType' object has no attribute 'GetCmdString'" in <bound method MapLayer.__del__ of <__main__.MapLayer object at 0xa3ebfec>> ignored</div>
</div><div><br></div></span>-- <br><div>Thanks && Regards</div>Rashad<br>