<div dir="ltr">Maris, thank you for checking this!! Was my mistake, I hadn't noticed that I had a duplication of import<span style="font-size:12.8px"> grass.script as grass, the one throwing the error was at the top of the script before declaring GISBASE..... need holidays I guess.. sorry for the noise.</span><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 30, 2017 at 11:59 AM, Maris Nartiss <span dir="ltr"><<a href="mailto:maris.gis@gmail.com" target="_blank">maris.gis@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">Works just fine here.<br>
What is the output of os.getenv("GISBASE")? Are you trying to run this<br>
code outside of GRASS GIS session (this could explain lack of GISBASE<br>
environmental setting)?<br>
<br>
Māris.<br>
<div><div class="gmail-h5"><br>
<br>
2017-06-29 18:00 GMT+03:00 Margherita Di Leo <<a href="mailto:diregola@gmail.com">diregola@gmail.com</a>>:<br>
> Hi,<br>
><br>
> I have GRASS 7.3.svn (r71212). In python , calling grass.script I get:<br>
><br>
>>>> import grass.script as grass<br>
> Traceback (most recent call last):<br>
> File "<stdin>", line 1, in <module><br>
> File "/usr/local/grass-7.3.svn/etc/<wbr>python/grass/script/__init__.<wbr>py", line<br>
> 5, in <module><br>
> from .core import *<br>
> File "/usr/local/grass-7.3.svn/etc/<wbr>python/grass/script/core.py", line 35,<br>
> in <module><br>
> gettext.install('grasslibs', os.path.join(os.getenv("<wbr>GISBASE"),<br>
> 'locale'))<br>
> File "/usr/lib64/python2.7/<wbr>posixpath.py", line 70, in join<br>
> elif path == '' or path.endswith('/'):<br>
> AttributeError: 'NoneType' object has no attribute 'endswith'<br>
><br>
> Anyone can reproduce this error?<br>
><br>
> Thank you in advance<br>
><br>
><br>
> --<br>
> Margherita Di Leo<br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> grass-dev mailing list<br>
> <a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/grass-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/grass-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font color="#666666">Margherita Di Leo</font></div></div></div></div></div></div></div></div></div>
</div></div>