[Qgis-user] Installing GeoHealth Plugin: ImportError, cannot import name NavigationToolbar2Qt

嘉田 卜 pujiatian at icloud.com
Mon Mar 5 23:28:12 PST 2018


My QGIS was installed then. Error term shows "ImportError: cannot import name NavigationToolbar2Qt" when install of 'GeoHealth' of plugins .

Details:
Couldn't load plugin 'GeoHealth' 

ImportError: cannot import name NavigationToolbar2Qt

Traceback (most recent call last):
  File "D:/Program Files/QGIS 2.14/apps/qgis-ltr/./python\qgis\utils.py", line 281, in loadPlugin
    __import__(packageName)
  File "D:/Program Files/QGIS 2.14/apps/qgis-ltr/./python\qgis\utils.py", line 572, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/Users/pujiatian/.qgis2/python/plugins\GeoHealth\__init__.py", line 23, in 
    from GeoHealth.src.plugin import GeoHealthPlugin
  File "D:/Program Files/QGIS 2.14/apps/qgis-ltr/./python\qgis\utils.py", line 572, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/Users/pujiatian/.qgis2/python/plugins\GeoHealth\src\plugin.py", line 30, in 
    from GeoHealth.src.gui.main_window import MainDialog
  File "D:/Program Files/QGIS 2.14/apps/qgis-ltr/./python\qgis\utils.py", line 572, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/Users/pujiatian/.qgis2/python/plugins\GeoHealth\src\gui\main_window.py", line 50, in 
    from GeoHealth.src.gui.analysis.stats_dialog import StatsWidget
  File "D:/Program Files/QGIS 2.14/apps/qgis-ltr/./python\qgis\utils.py", line 572, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/Users/pujiatian/.qgis2/python/plugins\GeoHealth\src\gui\analysis\stats_dialog.py", line 35, in 
    from GeoHealth.src.core.graph_toolbar import CustomNavigationToolbar
  File "D:/Program Files/QGIS 2.14/apps/qgis-ltr/./python\qgis\utils.py", line 572, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/Users/pujiatian/.qgis2/python/plugins\GeoHealth\src\core\graph_toolbar.py", line 27, in 
    from matplotlib.backends.backend_qt4agg import \
ImportError: cannot import name NavigationToolbar2Qt

Python version: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] 
QGIS version: 2.14.22-Essen Essen, 6af20113ec 
Python Path:

C:/Users/pujiatian/.qgis2/python/plugins\ClusterPoints
D:/Program Files/QGIS 2.14/apps/qgis-ltr/./python/plugins\processing
D:/Program Files/QGIS 2.14/apps/qgis-ltr/./python
C:/Users/pujiatian/.qgis2/python
C:/Users/pujiatian/.qgis2/python/plugins
D:/Program Files/QGIS 2.14/apps/qgis-ltr/./python/plugins
C:\Anaconda3
D:\Program Files\QGIS 2.14\bin\python27.zip
D:\Program Files\QGIS 2.14\apps\Python27\DLLs
D:\Program Files\QGIS 2.14\apps\Python27\lib
D:\Program Files\QGIS 2.14\apps\Python27\lib\plat-win
D:\Program Files\QGIS 2.14\apps\Python27\lib\lib-tk
D:\Program Files\QGIS 2.14\bin
D:\Program Files\QGIS 2.14\apps\Python27
D:\Program Files\QGIS 2.14\apps\Python27\lib\site-packages
D:\Program Files\QGIS 2.14\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg
D:\Program Files\QGIS 2.14\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win-amd64.egg
D:\Program Files\QGIS 2.14\apps\Python27\lib\site-packages\win32
D:\Program Files\QGIS 2.14\apps\Python27\lib\site-packages\win32\lib
D:\Program Files\QGIS 2.14\apps\Python27\lib\site-packages\Pythonwin
D:\Program Files\QGIS 2.14\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win-amd64.egg
D:\Program Files\QGIS 2.14\apps\Python27\lib\site-packages\wx-2.8-msw-unicode
D:\Program Files\QGIS 2.14\apps\Python27\lib\site-packages\xlrd-0.9.2-py2.7.egg
D:\Program Files\QGIS 2.14\apps\Python27\lib\site-packages\xlwt-0.7.5-py2.7.egg
C:/Users/pujiatian/.qgis2//python
D:\Program Files\QGIS 2.14\apps\qgis-ltr\python\plugins\fTools\tools
C:\Users\pujiatian\.qgis2\python\plugins\DigitizingTools\tools
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20180306/e69f900b/attachment.html>


More information about the Qgis-user mailing list