I am a QGIS developer. We have been modifying the source code of QGIS for several months and have done good work in QGIS version 2.1. After that we tried to do the same modifications for QGIS version 2.5. A lot of code had to be modified, but we managed to build it. However, we encountered a problem in python, which is this:
Couldn't load PyQGIS. Python support will be disabled. Traceback (most recent call last): File "", line 1, in File "D:/qgis/build/x86/qgis2.5.0/./python\qgis\__init__.py", line 36, in from qgis.core import QgsFeature, QgsGeometry File "D:/qgis/build/x86/qgis2.5.0/./python\qgis\core\__init__.py", line 1, in from qgis._core import * ImportError: dynamic module does not define init function (init_core) Python version: 2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)] QGIS version: 2.5.0-Master 'Master', exported
I have looked up this error and found that it may be related to PYTHONPATH or PATH environment variables. I tried all possible values for both environmental variables without success.
I am working on a 64-bit Windows 7, and the QGIS build is 32 bit.