<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 30, 2016 at 6:45 PM, alassane toure <span dir="ltr"><<a href="mailto:atourej@gmail.com" target="_blank">atourej@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>I need help to run a python-grass script outside grass.  I executed the following suggested program with the errors <br><br>line 1: import: command not found<br>/home/alassane/Programs/pythonGrass-example.py: line 2: import: command not found<br>/home/alassane/Programs/pythonGrass-example.py: line 3: import: command not found</div></blockquote></div><br><br></div><div class="gmail_extra">Hi, this sounds like you are running Python script with an interpreter like Bash. Look at shebang. Taking example from GRASS source code, scripts/r.shade/<a href="http://r.shade.py">r.shade.py</a> starts with:<br><br>#!/usr/bin/env python<br><br></div><div class="gmail_extra">Vaclav<br></div></div>