Hi Sylvain, Thank you for your tipps! I've added a PATH to the Environment. Had to adjust for an OSGeo4W install:
https://www.dropbox.com/s/57ywuz4mt65gy1e/Screenshot%202018-01-15%2019.46.55.png?dl=0 Also, my eclipse.bat looks like this: call "C:\OSGeo4W64\bin\o4w_env.bat" set PATH=%PATH%;C:\OSGeo4W64\apps\qgis-rel-dev;C:\OSGeo4W64\apps\qgis-rel-dev\bin;C:\OSGeo4W64\bin;C:\OSGeo4W64\apps\Python27\DLLs;C:\Program Files\Java\jre1.8.0_91\bin C:\Users\anita\ide-latest-released\eclipse\eclipse.exe Unfortunately, imports are still unresolved. Regards, Anita On Mon, Jan 15, 2018 at 9:00 AM, PIERRE Sylvain <[email protected]> wrote: > Hi Anita, > > I’m using Eclipse with QGIS API without problems (with Essen old release) > . Import works. > > Did you set a PATH variable in the Environment tab? (for me value is: > C:\Program Files\QGIS Essen;C:\Program Files\QGIS Essen\bin;C:\Program > Files\QGIS Essen\apps\qgis-ltr\bin;C:\Program Files\QGIS > Essen\apps\python27\DLLs) > > > > Sylvain > > > > > > *De :* QGIS-Developer [mailto:[email protected]] *De > la part de* Anita Graser > *Envoyé :* dimanche 14 janvier 2018 15:07 > *À :* qgis-dev > *Objet :* [QGIS-Developer] Eclipse config for QGIS API > > > > Hi, > > > > I've been following https://docs.qgis.org/testing/ > en/docs/pyqgis_developer_cookbook/ide_debugging.html to set up Eclipse > including "Making eclipse understand the [QGIS] API" > > > > When I import from qgis.core: > > > > from qgis.core import qgsfunction, QgsExpression > > > > qgsfunction is recognized but QgsExpression is not: > > > > https://www.dropbox.com/s/zmbzllwu2egijbq/Screenshot% > 202018-01-14%2014.52.52.png?dl=0 > > > > My Python interpreter is set up as shown here > > > > https://www.dropbox.com/s/ztnr4e6zbjkk35z/Screenshot% > 202018-01-14%2014.54.08.png?dl=0 > > > > Am I missing something to get full PyQGIS code completion? > > > > Regards, > > Anita > > > > >
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
