<div dir="ltr"><div>Thanks, I will check it out Vaclav. </div><div>I actually preferred to rewrite the scripts in R and run R from the grass command line.</div><div>Thanks for your help. So much dedication to the group of users is really appreciated.</div><div><br></div><div>Have a great one,</div><div><br></div><div>Mehrdad</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 19, 2018 at 4:30 PM Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com">wenzeslaus@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><br><br>On Sat, Oct 13, 2018 at 9:09 PM Mehrdad Varedi <<a href="mailto:varedi@gmail.com" target="_blank">varedi@gmail.com</a>> wrote:<br>><br>> ImportError                               Traceback (most recent call last)<br>> <ipython-input-3-cd30798f91ed> in <module>()<br>> ----> 1 import grass.script as gs<br>>       2 import grass.script.setup as gsetup<br>><br>> f:\PROGRA~1\QGIS2~1.18\apps\grass\grass-7.4.1\etc\python\grass\script\__init__.py in <module>()<br>>       3 from __future__ import absolute_import<br>>       4 <br>> ----> 5 from .core   import *<br>>       6 from .db     import *<br>>       7 from .raster import *<br>><br>> f:\PROGRA~1\QGIS2~1.18\apps\grass\grass-7.4.1\etc\python\grass\script\core.py in <module>()<br>>      42     # python3<br>>      43     import builtins as __builtin__<br>> ---> 44     from os import environb as environ<br>>      45     unicode = str<br>>      46 __builtin__.__dict__['_'] = __builtin__.__dict__['_'].__self__.lgettext<br>><br>> ImportError: cannot import name 'environb' from 'os' (f:\ProgramData\Anaconda3\lib\os.py)<br><div><br></div><div>You are trying to run it in Python 3 which is the first part of the traceback (that is actually fine if you want to run it in Python 3 - but note that the support is experimental).</div><div><br></div><div>As for the error itself, environb is a part of os in Python 3, so I don't understand why that would be missing in your Anaconda Python. You can check the files manually and confirm that all is an expected Python version.<br></div><div><br></div><div><a href="https://docs.python.org/3/library/os.html#os.environb" target="_blank">https://docs.python.org/3/library/os.html#os.environb</a><br></div></div></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Mehrdad Varedi</div>