Monday 23 April 2018

python - import qgis.core problem with QgsFeature and QgsGeometry ImportError: DLL load failed: The specified procedure could not be found



I've tried several previous answers to similar questions - no luck. I've tried everything, nothing seems to work. This is the error I'm getting:


Traceback (most recent call last):
File "D:\Projects\Python\test\script.py", line 3, in
from qgis.core import QgsApplication
File "C:\Program Files\QGIS Wien\apps\qgis\python\qgis\__init__.py", line 36, in
from qgis.core import QgsFeature, QgsGeometry
File "C:\Program Files\QGIS Wien\apps\qgis\python\qgis\core\__init__.py", line 3, in
from qgis._core import *

ImportError: DLL load failed: The specified procedure could not be found.

My PYTHONPATH contains


C:\Program Files\QGIS Wien;C:\Program Files\QGIS Wien\lib;C:\Program Files\QGIS Wien\bin;C:\Program Files\QGIS Wien\apps\qgis\python\plugins;C:\Program Files\QGIS Wien\apps\Python27;C:\Program Files\QGIS Wien\apps\Python27\Lib;C:\Program Files\QGIS Wien\apps\Python27\Lib\site-packages;C:\Program Files\QGIS Wien\apps\qg is\python;C:\Program Files\QGIS Wien\apps\Python27\DLLs;C:\Program Files\QGIS Wi en\apps\qgis\bin;C:\Program Files\QGIS Wien\apps\qgis\plugins;C:\Program Files\QGIS Wien\bin\gdalplugins;C:\Program Files\QGIS Wien\apps\saga\modules;C:\Program Files\QGIS Wien\apps\Qt4\plugins;C:\Program Files\QGIS Wien\apps\grass\grass-6.4.3\lib;C:\Program Files\QGIS Wien\apps\grass\grass-6.4.3\bin;

My PATH variable also contains all the paths of PYTHONPATH. I don't know what I am doing wrong.




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...