<div dir="ltr"><div class="gmail_extra" style="font-size:12.8px"><div class="gmail_quote"><span class="gmail-im">2018-01-20 15:29 GMT+02:00 Anita Graser <span dir="ltr"><<a href="mailto:anitagraser@gmx.at" target="_blank">anitagraser@gmx.at</a>></span>:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div style="font-size:small">​If I keep this call to o4w_env.bat in the starter, Eclipse fails to start. </div></div></div></div></blockquote></span><div>Any error message? </div><span class="gmail-im"><div><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 dir="ltr"><div class="gmail_extra"><div style="font-size:small">​Is it possible to configure Eclipse to have both a Python 2 and Python 3 interpreter? </div></div></div></blockquote></span><div>Yes it should be possible but you need two different starter bat files and you can't use those at the same time.</div><div><br></div><div>When working with QGIS 2.18 plugins my starter bat look like this:</div><div>--- qgis2-eclipse.bat</div><div><span class="gmail-im"><div>@echo off</div><div>set OSGEO4W_ROOT=C:\OSGeo4W64</div><div>call "%OSGEO4W_ROOT%\bin\o4w_env.<wbr>bat"</div><div><br></div></span><div>set PYTHONPATH=%PYTHONPATH%;%<wbr>OSGEO4W_ROOT%\apps\qgis\<wbr>python;%OSGEO4W_ROOT%\apps\<wbr>qgis\python\plugins</div><div>set PATH=%OSGEO4W_ROOT%\apps\qgis\<wbr>bin;%PATH%</div><span class="gmail-im"><div><br></div><div>start "eclipse" C:\eclipse\eclipse.exe</div></span></div><div>-----------</div><div><br></div><div>And for QGIS3 plugins:</div><div>--- qgis3-eclipse.bat</div><div><span class="gmail-im"><div>@echo off</div><div>set OSGEO4W_ROOT=C:\OSGeo4W64</div><div>call "%OSGEO4W_ROOT%\bin\o4w_env.<wbr>bat"</div></span><span class="gmail-im"><div>call "%OSGEO4W_ROOT%\bin\py3_env.<wbr>bat"</div><div>call "%OSGEO4W_ROOT%\bin\qt5_env.<wbr>bat"</div><div><br></div></span><div>set PYTHONPATH=%PYTHONPATH%;%<wbr>OSGEO4W_ROOT%\apps\qgis-dev\<wbr>python;%OSGEO4W_ROOT%\apps\<wbr>qgis-dev\python\plugins;C:\<wbr>Users\lauri\AppData\Roaming\<wbr>QGIS\QGIS3\profiles\default\<wbr>python\plugins</div><span class="gmail-im"><div>set PATH=%OSGEO4W_ROOT%\apps\qgis-<wbr>dev\bin;%PATH%</div><div><br></div><div>start "eclipse" C:\eclipse\eclipse.exe</div></span></div><div>----------</div><div> </div></div>When adding the interpreters. Try to add the same version python interpreter that was defined in the starter bat that was used to start eclipse.</div><div class="gmail_extra" style="font-size:12.8px">Your python 3 interpreter error message looks like that you tried to add it when python 2.7 environment was active.</div><div class="gmail_extra" style="font-size:12.8px"><br></div><div class="gmail_extra" style="font-size:12.8px"><br></div><div class="gmail_extra" style="font-size:12.8px"><br></div><div class="gmail_extra" style="font-size:12.8px">I don't know if it makes any difference but I always have used a bare Eclipse Platform Runtime Binary (that is without any plugins or development tools) and then added just Pydev. You also need to install JRE separately.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-01-20 15:29 GMT+02:00 Anita Graser <span dir="ltr"><<a href="mailto:anitagraser@gmx.at" target="_blank">anitagraser@gmx.at</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">My Eclipse setup for Python 2 is working but trying to add a Python 3 interpreter there are new issues.</div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Mon, Jan 15, 2018 at 10:18 PM, Lauri Kajan <span dir="ltr"><<a href="mailto:lauri.kajan@gmail.com" target="_blank">lauri.kajan@gmail.com</a>></span> wrote:</span><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>My eclipse starter bat look like this:</div><div>----------</div><div>@echo off<br>set OSGEO4W_ROOT=C:\OSGeo4W64<br>call "%OSGEO4W_ROOT%\bin\<a href="http://o4w_env.ba">o4w_env.ba</a><wbr>t"<br></div></div></blockquote><div><br></div></span><div><div class="gmail_default" style="font-size:small">​If I keep this call to o4w_env.bat in the starter, Eclipse fails to start. </div></div><span class=""><div class="gmail_default" style="font-size:small"><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 dir="ltr"><div>I have always used python.exe found from C:\OSGeo4W64\apps\Python3<wbr>6\python.exe as a pydev interpreter. Don't know if that matters.</div><div></div></div></blockquote></span></div></div><div class="gmail_extra"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">When trying to add this interpreter in PyDev, I run into the following issue:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default">No output was in the standard output when</div><div class="gmail_default">trying to create the interpreter info for: C:\OSGeo4W64\apps\Python36\<wbr>python.exe</div><div class="gmail_default">The error output contains:>><<</div><div class="gmail_default" style="font-size:small">​</div><div class="gmail_default" style="font-size:small">​Is it possible to configure Eclipse to have both a Python 2 and Python 3 interpreter? </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Regards,</div><div class="gmail_default" style="font-size:small">Anita​</div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>
</blockquote></div><br></div>