TransWikia.com

Why do I get a classFactory error when I run the PlanHeat QGIS plugin?

Geographic Information Systems Asked on July 17, 2021

I am getting the error below when I try to load the PlanHeat plugin for QGIS.

"Couldn't load plugin 'planheat' due to an error when calling its classFactory() method "
"ImportError: cannot import name 'check_array_indexer' from 'pandas.core.indexers' "

The plugin is a fresh copy from http://planheat.eu/tool-download, and I am running QGIS 3.10.14. I have reinstalled both QGIS and the PlanHeat plugin.

Full Error here:

Couldn't load plugin 'planheat' due to an error when calling its classFactory() method 

ImportError: cannot import name 'check_array_indexer' from 'pandas.core.indexers' (C:PROGRA~1QGIS3~1.10appsPython37libsite-packagespandascoreindexers.py) 
Traceback (most recent call last):
  File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./pythonqgisutils.py", line 334, in _startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./python/pluginsplanheat__init__.py", line 43, in classFactory
    from .planheat import PlanHeat
  File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./pythonqgisutils.py", line 792, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./python/pluginsplanheatplanheat.py", line 34, in 
    from .PlanheatMappingModule.planheat_integration import PlanheatIntegration
  File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./pythonqgisutils.py", line 792, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./python/pluginsplanheatPlanheatMappingModuleplanheat_integration.py", line 30, in 
    from .PLANHEAT import PLANHEAT as cmm
  File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./pythonqgisutils.py", line 792, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./python/pluginsplanheatPlanheatMappingModulePLANHEATPLANHEAT.py", line 10, in 
    from .dialog_utils import node_preferences_action, load_tree_dialog, open_right_click_menu, run_all_nodes, show_result_dialog
  File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./pythonqgisutils.py", line 792, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./python/pluginsplanheatPlanheatMappingModulePLANHEATdialog_utils.py", line 2, in 
    import pandas
  File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./pythonqgisutils.py", line 792, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:PROGRA~1QGIS3~1.10appsPython37libsite-packagespandas__init__.py", line 55, in 
    from pandas.core.api import (
  File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./pythonqgisutils.py", line 792, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:PROGRA~1QGIS3~1.10appsPython37libsite-packagespandascoreapi.py", line 23, in 
    from pandas.core.arrays import Categorical, array
  File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./pythonqgisutils.py", line 792, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:PROGRA~1QGIS3~1.10appsPython37libsite-packagespandascorearrays__init__.py", line 13, in 
    from .sparse import SparseArray  # noqa: F401
  File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./pythonqgisutils.py", line 792, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:PROGRA~1QGIS3~1.10appsPython37libsite-packagespandascorearrayssparse__init__.py", line 3, in 
    from pandas.core.arrays.sparse.accessor import SparseAccessor, SparseFrameAccessor
  File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./pythonqgisutils.py", line 792, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:PROGRA~1QGIS3~1.10appsPython37libsite-packagespandascorearrayssparseaccessor.py", line 10, in 
    from pandas.core.arrays.sparse.array import SparseArray
  File "C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./pythonqgisutils.py", line 792, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:PROGRA~1QGIS3~1.10appsPython37libsite-packagespandascorearrayssparsearray.py", line 46, in 
    from pandas.core.indexers import check_array_indexer
ImportError: cannot import name 'check_array_indexer' from 'pandas.core.indexers' (C:PROGRA~1QGIS3~1.10appsPython37libsite-packagespandascoreindexers.py)


Python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] 
QGIS version: 3.10.14-A Coruña A Coruña, 8374282d2a 

Python Path:
C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./python
C:/Users/Tom/AppData/Roaming/QGIS/QGIS3profilesdefault/python
C:/Users/Tom/AppData/Roaming/QGIS/QGIS3profilesdefault/python/plugins
C:/PROGRA~1/QGIS3~1.10/apps/qgis-ltr/./python/plugins
C:PROGRA~1QGIS3~1.10appsPython37
C:PROGRA~1QGIS3~1.10appsPython37Scripts
C:Program FilesQGIS 3.10binpython37.zip
C:PROGRA~1QGIS3~1.10appsPython37DLLs
C:PROGRA~1QGIS3~1.10appsPython37lib
C:Program FilesQGIS 3.10bin
C:PROGRA~1QGIS3~1.10appsPython37libsite-packages
C:PROGRA~1QGIS3~1.10appsPython37libsite-packageswin32
C:PROGRA~1QGIS3~1.10appsPython37libsite-packageswin32lib
C:PROGRA~1QGIS3~1.10appsPython37libsite-packagesPythonwin
C:/Users/Tom/AppData/Roaming/QGIS/QGIS3profilesdefault/python
C:/Users/Tom/Documents/KTH Masters/Thesis/GIS

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP