<div dir="ltr">Hi Anita,<div><br></div><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\o4w_env.bat"<br>call "%OSGEO4W_ROOT%\bin\py3_env.bat"<br>call "%OSGEO4W_ROOT%\bin\qt5_env.bat"<br><br>set PYTHONPATH=%PYTHONPATH%;%OSGEO4W_ROOT%\apps\qgis-dev\python;%OSGEO4W_ROOT%\apps\qgis-dev\python\plugins<br>set PATH=%OSGEO4W_ROOT%\apps\qgis-dev\bin;%PATH%<br><br>start "eclipse" C:\eclipse\eclipse.exe<br>-----------</div><div><br>And then I have added 'qgis' and 'PyQt5' to the Forced Builtins in eclipse interpreter settings.<br>Of course if you are developing on 2.18 you need to remove from the bat py3_env.bat and qt5_env.bat calls and add to the forcedbuiltins PyQt4 instead PyQt5</div><div><br></div><div>I have always used python.exe found from C:\OSGeo4W64\apps\Python36\python.exe as a pydev interpreter. Don't know if that matters.</div><div><br></div><div><br></div><div>Let's hope this helps!</div><div><br></div><div><br></div><div>-Lauri</div><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-01-15 22:23 GMT+02:00 Clemens Raffler <span dir="ltr"><<a href="mailto:clemens.raffler@gmail.com" target="_blank">clemens.raffler@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Anita,<br>
<br>
after some headaches I managed to enable full code-completion in eclipse/pydev for pyqgis and PyQt5 for the current development version. I hope sharing my setup (similar to yours on OSGeo4W64) with you may help:<br>
<br>
-) First I configured my PYTHONHOME and PYTHONPATH environment variables in the Windows configuration:<br>
<br>
PYTHONHOME="C:\OSGeo4W64\apps\<wbr>Python36\python.exe"<br>
PYTHONPATH="C:\OSGeo4W64\bin;C<wbr>:\OSGe‌​o4W64\apps\qgis\‌​bin;<wbr>%Path%"<br>
<br>
-) In the windows Path variable I entered following paths to all the libs:<br>
<br>
C:\OSGeo4W64\bin<br>
C:\OSGeo4W64\apps\Qt5\bin<br>
C:\OSGeo4W64\apps\qgis-dev\bin<br>
C:\OSGeo4W64\apps\qgis-dev\pyt<wbr>hon<br>
C:\OSGeo4W64\apps\‌​qgis-dev\p<wbr>ython\plug‌​ins<br>
C:\OSGeo4W64\apps\‌​qgis-dev\p<wbr>ython\plug‌​ins\processing<br>
<br>
With this system-side setup you can start eclipse even without .bat file and finish the configuration with the following steps:<br>
-) Window>Preferences>Pydev>Inter<wbr>preters>Python Interpreter<br>
-) Add your Python interpreter at C:\OSGeo4W64\apps\Python36\pyt<wbr>hon.exe<br>
-) Configure the interpreters environment variables at the tab "Environment" and there again set (yet) another variable named PATH with the following values:<br>
<br>
PATH="C:\OSGeo4W64\bin;C:\OSGe<wbr>o4W64\apps\qgis-dev\bin;C:\<wbr>OSGeo4W64\apps\Qt5\bin;C:\OSGe<wbr>o4W64\apps\qgis-dev\python\<wbr>plugins\processing"<br>
<br>
-) Then enter two new "Forced Builtins" under the respective tab. Enter "qgis" and "PyQt5".<br>
-) Finish by applying all your changes.<br>
<br>
The code-completion should now work - maybe reload eclipse by using File > Restart (sometimes simple closing doesn't help...).<br>
I hope there are no typos in this guide, however I wish you good luck with the setup!<br>
<br>
Regards,<br>
Clemens<br>
<br>
______________________________<wbr>_________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a></blockquote></div><br></div></div>