Closed josephricafort closed 2 years ago
Same issue, QGis LTR version 3.22.9.
Couldn't load plugin 'batch_hillshader-master' due to an error when calling its classFactory() method
ModuleNotFoundError: No module named 'gdal' Traceback (most recent call last): File "C:\PROGRA~1/QGIS32~1.9/apps/qgis-ltr/./python\qgis\utils.py", line 423, in _startPlugin plugins[packageName] = package.classFactory(iface) File "C:\Users/oguer/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\batch_hillshader-master__init__.py", line 47, in classFactory from .batch_hillshader import batchHillshader File "C:\PROGRA~1/QGIS32~1.9/apps/qgis-ltr/./python\qgis\utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:\Users/oguer/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\batch_hillshader-master\batch_hillshader.py", line 45, in from .batch_hillshader_dialog import batchHillshaderDialog File "C:\PROGRA~1/QGIS32~1.9/apps/qgis-ltr/./python\qgis\utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:\Users/oguer/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\batch_hillshader-master\batch_hillshader_dialog.py", line 53, in from . import laspy_utils File "C:\PROGRA~1/QGIS32~1.9/apps/qgis-ltr/./python\qgis\utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:\Users/oguer/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\batch_hillshader-master\laspy_utils.py", line 40, in from gdal import gdalconst File "C:\PROGRA~1/QGIS32~1.9/apps/qgis-ltr/./python\qgis\utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ModuleNotFoundError: No module named 'gdal'
Python version: 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] QGIS version: 3.22.9-Białowieża Białowieża, a8e9e6fa
Python Path: C:/PROGRA~1/QGIS32~1.9/apps/qgis-ltr/./python C:/Users/oguer/AppData/Roaming/QGIS/QGIS3\profiles\default/python C:/Users/oguer/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins C:/PROGRA~1/QGIS32~1.9/apps/qgis-ltr/./python/plugins C:\Program Files\QGIS 3.22.9\bin\python39.zip C:\PROGRA~1\QGIS32~1.9\apps\Python39\DLLs C:\PROGRA~1\QGIS32~1.9\apps\Python39\lib C:\Program Files\QGIS 3.22.9\bin C:\PROGRA~1\QGIS32~1.9\apps\Python39 C:\PROGRA~1\QGIS32~1.9\apps\Python39\lib\site-packages C:\PROGRA~1\QGIS32~1.9\apps\Python39\lib\site-packages\win32 C:\PROGRA~1\QGIS32~1.9\apps\Python39\lib\site-packages\win32\lib C:\PROGRA~1\QGIS32~1.9\apps\Python39\lib\site-packages\Pythonwin C:/Users/oguer/AppData/Roaming/QGIS/QGIS3\profiles\default/python C:\Users/oguer/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\joinmultiplelines C:\Users\oguer\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\kmltools\libs C:\Users\oguer\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mmqgis/forms
I've prepared a little modification in code to run it again in QGIS and pulled into repo. I only needs merging.
This should be fixed on version 2.4.3 thanks to @czalaviek contribution. You can install it from the github repository or wait until 2.4.3 gets approved on QGIS official repository.
Hi, I'm trying to install Batch Hillshader plugin in QGIS but experiencing this problem. I've been looking around for a solution to this:
Couldn't load plugin 'batch_hillshader-master' due to an error when calling its classFactory() method
ModuleNotFoundError: No module named 'gdal'