1

In 3.2 and now 3.2.1 I get a Python error:

ImportError
cannot import name 'QCoreApplication'

I also see a yellow line highlighted as the problem line: from qgis.core import

Any ideas?

  • 2
    QCoreApplication should be imported from PyQt, not from qgis itself. Try from qgis.PyQt.QtCore import QCoreApplication – Germán Carrillo Jul 25 '18 at 23:57
1

As German said in a comment, you need to change your imports from

from qgis.core import QCoreApplication

to

from qgis.PyQt.QtCore import QCoreApplication

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.