[Qgis-user] Fwd: Mapnik, QGIS and some other problems

Oliver Andjelkovic oliv14r at gmail.com
Mon Aug 22 05:09:16 PDT 2016


Hello,

I have problem or "lack of knowledge" related to the mapnik installation
over pip. I am using Win 8.1 and QGIS 2.14 and I have tried to install
mapnik package through OSGeo4W shell with simple command "pip install
mapnik". Well that went pretty well, but when I try to run script that call
mapnik from python commander in QGIS i get this message: "DLL load failed:
The specified module could not be found. See log for more details".

So, in log it stays:

 "Uncaught error while executing algorithm

Traceback (most recent call last):

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python/
plugins\processing\core\GeoAlgorithm.py", line 203, in execute

self.processAlgorithm(progress)

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python/
plugins\processing\script\ScriptAlgorithm.py", line 323, in processAlgorithm

exec((script), ns)

File "<string>", line 2, in <module>

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python\qgis\utils.py", line
572, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File "C:\mapnik-v2.2.0\python\2.7\site-packages\mapnik\__init__.py", line
69, in <module>

from _mapnik import *

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python\qgis\utils.py", line
572, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: DLL load failed: The specified module could not be found."

Also, I always get Python error and processing error when QGIS starting.

2016-08-21T19:12:06 1 warning:C:\PROGRA~2\QGIS
2.14.5\apps\Python27\lib\pkgutil.py:186:
ImportWarning: Not importing directory 'C:\PROGRA~2\QGIS
2.14.5\apps\Python27\lib\site-packages\ndg': missing __init__.py

file, filename, etc = imp.find_module(subname, path)

traceback: File "<string>", line 1, in <module>

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python\qgis\utils.py", line
306, in startPlugin

plugins[packageName] = package.classFactory(iface)

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python/
plugins\MetaSearch\__init__.py", line 29, in classFactory

from MetaSearch.plugin import MetaSearchPlugin

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python\qgis\utils.py", line
572, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File "C:/PROGRA~2/QGIS
2.14.5/apps/qgis-ltr/./python/plugins\MetaSearch\plugin.py",
line 31, in <module>

from MetaSearch.dialogs.maindialog import MetaSearchDialog

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python\qgis\utils.py", line
572, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python/
plugins\MetaSearch\dialogs\maindialog.py", line 44, in <module>

from owslib.csw import CatalogueServiceWeb

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python\qgis\utils.py", line
572, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python\owslib\csw.py", line
18, in <module>

from owslib.util import OrderedDict

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python\qgis\utils.py", line
572, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python\owslib\util.py", line
13, in <module>

import pytz

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python\qgis\utils.py", line
572, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File "C:\PROGRA~2\QGIS 2.14.5\apps\Python27\lib\site-
packages\pytz-2014.2-py2.7.egg\pytz\__init__.py", line 29, in <module>

from pkg_resources import resource_stream

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python\qgis\utils.py", line
572, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File "C:\PROGRA~2\QGIS 2.14.5\apps\Python27\lib\site-
packages\pkg_resources\__init__.py", line 2953, in <module>

@_call_aside

File "C:\PROGRA~2\QGIS 2.14.5\apps\Python27\lib\site-
packages\pkg_resources\__init__.py", line 2939, in _call_aside

f(*args, **kwargs)

File "C:\PROGRA~2\QGIS 2.14.5\apps\Python27\lib\site-
packages\pkg_resources\__init__.py", line 2981, in
_initialize_master_working_set

dist.activate(replace=False)

File "C:\PROGRA~2\QGIS 2.14.5\apps\Python27\lib\site-
packages\pkg_resources\__init__.py", line 2516, in activate

declare_namespace(pkg)

File "C:\PROGRA~2\QGIS 2.14.5\apps\Python27\lib\site-
packages\pkg_resources\__init__.py", line 2098, in declare_namespace

_handle_ns(packageName, path_item)

File "C:\PROGRA~2\QGIS 2.14.5\apps\Python27\lib\site-
packages\pkg_resources\__init__.py", line 2032, in _handle_ns

loader = importer.find_module(packageName)

2016-08-21T19:12:06 1 warning:C:\PROGRA~2\QGIS
2.14.5\apps\Python27\lib\pkgutil.py:186:
ImportWarning: Not importing directory 'c:\progra~2\qgis
2.14.5\apps\python27\lib\site-packages\ndg': missing __init__.py

file, filename, etc = imp.find_module(subname, path)

traceback: File "<string>", line 1, in <module>

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python\qgis\utils.py", line
306, in startPlugin

plugins[packageName] = package.classFactory(iface)

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python/
plugins\MetaSearch\__init__.py", line 29, in classFactory

from MetaSearch.plugin import MetaSearchPlugin

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python\qgis\utils.py", line
572, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File "C:/PROGRA~2/QGIS
2.14.5/apps/qgis-ltr/./python/plugins\MetaSearch\plugin.py",
line 31, in <module>

from MetaSearch.dialogs.maindialog import MetaSearchDialog

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python\qgis\utils.py", line
572, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python/
plugins\MetaSearch\dialogs\maindialog.py", line 44, in <module>

from owslib.csw import CatalogueServiceWeb

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python\qgis\utils.py", line
572, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python\owslib\csw.py", line
18, in <module>

from owslib.util import OrderedDict

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python\qgis\utils.py", line
572, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python\owslib\util.py", line
13, in <module>

import pytz

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python\qgis\utils.py", line
572, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File "C:\PROGRA~2\QGIS 2.14.5\apps\Python27\lib\site-
packages\pytz-2014.2-py2.7.egg\pytz\__init__.py", line 29, in <module>

from pkg_resources import resource_stream

File "C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/./python\qgis\utils.py", line
572, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File "C:\PROGRA~2\QGIS 2.14.5\apps\Python27\lib\site-
packages\pkg_resources\__init__.py", line 2953, in <module>

@_call_aside

File "C:\PROGRA~2\QGIS 2.14.5\apps\Python27\lib\site-
packages\pkg_resources\__init__.py", line 2939, in _call_aside

f(*args, **kwargs)

File "C:\PROGRA~2\QGIS 2.14.5\apps\Python27\lib\site-
packages\pkg_resources\__init__.py", line 2981, in
_initialize_master_working_set

dist.activate(replace=False)

File "C:\PROGRA~2\QGIS 2.14.5\apps\Python27\lib\site-
packages\pkg_resources\__init__.py", line 2513, in activate

fixup_namespace_packages(self.location)

File "C:\PROGRA~2\QGIS 2.14.5\apps\Python27\lib\site-
packages\pkg_resources\__init__.py", line 2108, in fixup_namespace_packages

subpath = _handle_ns(package, path_item)

File "C:\PROGRA~2\QGIS 2.14.5\apps\Python27\lib\site-
packages\pkg_resources\__init__.py", line 2032, in _handle_ns

loader = importer.find_module(packageName)


and some plugins failed to load:


2016-08-21T19:11:58 0 Loaded Coordinate Capture (Path: C:/PROGRA~2/QGIS
2.14.5/apps/qgis-ltr/plugins/coordinatecaptureplugin.dll)

2016-08-21T19:11:58 0 Loaded Dxf2Shp Converter (Path: C:/PROGRA~2/QGIS
2.14.5/apps/qgis-ltr/plugins/dxf2shpconverterplugin.dll)

2016-08-21T19:11:58 0 Loaded eVis (Path: C:/PROGRA~2/QGIS
2.14.5/apps/qgis-ltr/plugins/evis.dll)

2016-08-21T19:11:58 0 Loaded Georeferencer GDAL (Path: C:/PROGRA~2/QGIS
2.14.5/apps/qgis-ltr/plugins/georefplugin.dll)

2016-08-21T19:11:58 1 Failed to load C:/PROGRA~2/QGIS
2.14.5/apps/qgis-ltr/plugins/globeplugin.dll (Reason: Cannot load library
C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/plugins/globeplugin.dll: The
specified module could not be found.)

2016-08-21T19:11:58 0 Loaded GPS Tools (Path: C:/PROGRA~2/QGIS
2.14.5/apps/qgis-ltr/plugins/gpsimporterplugin.dll)

2016-08-21T19:11:58 1 Failed to load C:/PROGRA~2/QGIS
2.14.5/apps/qgis-ltr/plugins/grassplugin7.dll (Reason: Cannot load library
C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/plugins/grassplugin7.dll: The
specified module could not be found.)

2016-08-21T19:11:58 1 Failed to load C:/PROGRA~2/QGIS
2.14.5/apps/qgis-ltr/plugins/grassprovider7.dll (Reason: Cannot load
library C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/plugins/grassprovider7.dll:
The specified module could not be found.)

2016-08-21T19:11:58 1 Failed to load C:/PROGRA~2/QGIS
2.14.5/apps/qgis-ltr/plugins/grassrasterprovider7.dll (Reason: Cannot load
library C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/plugins/grassrasterprovider7.dll:
The specified module could not be found.)

2016-08-21T19:11:58 0 Loaded Heatmap (Path: C:/PROGRA~2/QGIS
2.14.5/apps/qgis-ltr/plugins/heatmapplugin.dll)

2016-08-21T19:11:58 0 Loaded Interpolation plugin (Path: C:/PROGRA~2/QGIS
2.14.5/apps/qgis-ltr/plugins/interpolationplugin.dll)

2016-08-21T19:11:58 0 Loaded OfflineEditing (Path: C:/PROGRA~2/QGIS
2.14.5/apps/qgis-ltr/plugins/offlineeditingplugin.dll)

2016-08-21T19:11:58 0 Loaded Oracle Spatial GeoRaster (Path:
C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/plugins/oracleplugin.dll)

2016-08-21T19:11:58 0 Loaded Raster Terrain Analysis plugin (Path:
C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/plugins/rasterterrainplugin.dll)

2016-08-21T19:11:58 0 Loaded Road graph plugin (Path: C:/PROGRA~2/QGIS
2.14.5/apps/qgis-ltr/plugins/roadgraphplugin.dll)

2016-08-21T19:11:58 0 Loaded Spatial Query Plugin (Path: C:/PROGRA~2/QGIS
2.14.5/apps/qgis-ltr/plugins/spatialqueryplugin.dll)

2016-08-21T19:11:58 0 Loaded Topology Checker (Path: C:/PROGRA~2/QGIS
2.14.5/apps/qgis-ltr/plugins/topolplugin.dll)

2016-08-21T19:11:58 0 Loaded Zonal statistics plugin (Path:
C:/PROGRA~2/QGIS 2.14.5/apps/qgis-ltr/plugins/zonalstatisticsplugin.dll)

2016-08-21T19:11:58 0 Loaded DB Manager (package: db_manager)

2016-08-21T19:12:01 0 Loaded fTools (package: fTools)

2016-08-21T19:12:02 0 Loaded GdalTools (package: GdalTools)

2016-08-21T19:12:12 0 Loaded MetaSearch Catalogue Client (package:
MetaSearch)

2016-08-21T19:12:40 0 Loaded Processing (package: processing)


I hope that I'm not too boring with this questions, but I am sticked with
that for a quite time.


Best regards,

Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20160822/89700004/attachment.html>


More information about the Qgis-user mailing list