Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm using Eclipse's PyDev extension to develop python plugins for Qgis. I did the required configs for the interpreter in Eclipse to be able to use python. When I start a PyDev project, all the Python code and imports are correct but it is still giving me errors about the Qt & Qgis objects!

I did all the necessary imports :
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from qgis.core import *
from qgis.gui import *

And I still get errors "UNDEFINED VRIALBE" for objects like QgsApplication, QFileInfo..

How can I fix this ?

share|improve this question
Do the errors you mention happen when you run the code or are these warnings shown within the editor of your IDE (Eclipse)? – Matthias Kuhn Apr 22 at 15:53

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.