<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 18, 2016 at 9:56 AM, r.bushroot <span dir="ltr"><<a href="mailto:r.bushroot@outlook.com" target="_blank">r.bushroot@outlook.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 id=":sc" class="" style="overflow:hidden">In Linux I managed to do that by simply typing the following command in the<br>
GRASS Command Shell:<br>
/spyder -w . 2>/dev/null &./<br></div></blockquote><div><br></div><div>On Linux there is one Python managed by the Linux distribution. Both GRASS and Spyder are using it including its installed/associated packages. GRASS just adds some extra packages to the PYTHONPATH. This is why it *just works* on Linux.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div id=":sc" class="" style="overflow:hidden">
<br>
In Windows I tried typing the following command in the GRASS Command Shell:<br>
/\Users\<a href="http://user.name" rel="noreferrer" target="_blank">user.name</a>\Anaconda2\Scripts\spyder.exe/<br>
<br>
However, I got this error message:<br>
/Traceback (most recent call last):<br>
  File "C:\Users\<a href="http://user.name" rel="noreferrer" target="_blank">user.name</a>\Anaconda2\Scripts\spyder-script.py", line 1, in<br>
(module)<br>
    from spyderlib import start_app<br>
Import Error: No module named spyderlib/<br>
<br>
Typing the same command (/\Users\<a href="http://user.name" rel="noreferrer" target="_blank">user.name</a>\Anaconda2\Scripts\spyder.exe/) in<br>
the default Windows Command Shell (cmd.exe) lauches Spyder without any<br>
problems.<br>
<br>
*Question:<br>
What I am doing wrong?<br></div></blockquote><div><br></div><div>On MS Windows, every application usually installs its own Python. Each Python has its own set of installed packages. OSGeo4W has some and Anaconda has some other. spyder.exe probably expects to find spyderlib in the installed packages but it is using Python installed with OSGeo4W.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div id=":sc" class="" style="overflow:hidden">
How can I start spyder from the GRASS Shell in Windows?*<br></div></blockquote><div><br>You can try to add the path to spyderlib (and any other package needed) to PYTHONPATH. This will mix both Python installations and may not work.<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div id=":sc" class="" style="overflow:hidden">
<br>
<br>
System specifications:<br>
Operating system: Windows 7<br>
GRASS GIS: Version 7.0.3 using the OSGeo4W installer<br>
Spyder: installed as part of Anaconda 4.0.0<br>
</div></blockquote></div><br><br></div></div>