I am using PyCharm 4.5 with QGIS 2.2 and continue having problems with unresolved references.
Currently I am getting an unresolved reference on "from qgis.core import *" (see UnresolvedReference.pdf attached).
A couple things I tried:
- Under Settings; Project:python; Project Interpreter I added several paths (see PyCharmInterpreterPaths.pdf attached).
- I also checked my environment path which includes:
C:\Program Files (x86)\QGIS Valmiera\bin
C:\Program Files (x86)\QGIS Valmiera\apps\Python27
- I have also done "Invalidate and Restart" several times hoping it would rebuild references, but no luck.
- I also have ActivePython 2.7.8 64 bit installed. For this reason the system path also includes:
Could this be the reason for unresolved references?
One interesting aspect that may be a cause is when I use the Python interpreter from QGIS, no packages are installed, but when I use the ActivePython interpreter, lots of packages automatically are installed. When I try and manually install packages on Python from QGIS, it gives me an error: "Cannot set up a python SDK at C:\Program Files (x86)\QGIS Valmiera\bin\python.exe. The SDK seems invalid." (see PythonPackages.pdf attached). I'm not sure how having no packages affects things since I am able to use PyCharm to do remote debugging on QGIS plugins.
Any help or direction on how to resolved these references issues would be most appreciated.