<div dir="ltr"><div class="gmail_extra">[returning the conversation to the mailing list]<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 31, 2016 at 7:35 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 am having problem with the launch session...<br><br></div><span class=""><div># launch session<br>rcfile = gscript.setup.init(gisbase, gisdb, location, mapset)<br><br></div></span><div>See the system response below..<br></div><div><br>/Programs/grass/rshade$ /home/alassane/Programs/grass/rshade/testing.py<br>Traceback (most recent call last):<br>  File "/home/alassane/Programs/grass/rshade/testing.py", line 70, in <module><span class=""><br>    rcfile = gscript.setup.init(gisbase, gisdb, location, mapset)<br></span>AttributeError: 'module' object has no attribute 'setup'</div></blockquote></div><br></div><div class="gmail_extra">The example was wrong. The `__init__.py` of `script` does not `import setup`:<br><br><a href="https://trac.osgeo.org/grass/browser/grass/trunk/lib/python/script/__init__.py">https://trac.osgeo.org/grass/browser/grass/trunk/lib/python/script/__init__.py</a><br><br>So, the import needs to be done explicitly:<br><br>import grass.script.setup as gsetup<br>rcfile = gsetup.init(gisbase, gisdb, location, mapset)<br><br></div><div class="gmail_extra">The documentation fixed in:<br></div><div class="gmail_extra"><br><a href="https://trac.osgeo.org/grass/changeset/68547">https://trac.osgeo.org/grass/changeset/68547</a><br><br></div><div class="gmail_extra">Please test.<br><br></div><div class="gmail_extra">Vaclav<br></div></div>