<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">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">https://docs.python.org/3/library/os.html#os.environb</a><br></div></div></div>