[GRASS-user] Using grass.script in Jupyter (Azure)
varedi at gmail.com
Sat Oct 20 11:25:35 PDT 2018
Thanks, I will check it out Vaclav.
I actually preferred to rewrite the scripts in R and run R from the grass
Thanks for your help. So much dedication to the group of users is really
Have a great one,
On Fri, Oct 19, 2018 at 4:30 PM Vaclav Petras <wenzeslaus at gmail.com> wrote:
> On Sat, Oct 13, 2018 at 9:09 PM Mehrdad Varedi <varedi at gmail.com> wrote:
> > ImportError Traceback (most recent call
> > <ipython-input-3-cd30798f91ed> in <module>()
> > ----> 1 import grass.script as gs
> > 2 import grass.script.setup as gsetup
> in <module>()
> > 3 from __future__ import absolute_import
> > 4
> > ----> 5 from .core import *
> > 6 from .db import *
> > 7 from .raster import *
> in <module>()
> > 42 # python3
> > 43 import builtins as __builtin__
> > ---> 44 from os import environb as environ
> > 45 unicode = str
> > 46 __builtin__.__dict__['_'] =
> > ImportError: cannot import name 'environb' from 'os'
> 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).
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the grass-user