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 "", line 2, in
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
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 "", line 1, in
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
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
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
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
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
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
@_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 "", line 1, in
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