[gdal-dev] QGIS - No module named GDAL

Bill Eggers beggers359 at gmail.com
Tue Jun 8 11:11:27 PDT 2021


Somewhere between installing BlenderGIS, OSGEO4W testing version, and
ArcGISPro, the QGIS plugins that relied on GDAL quit working. I’ve tried
uninstalling and re-installing OSGEO4W and the standalone QGIS 3.18..3-2
and a few other tips like specifying the Python path, but nothing worked. I
suspect something happened when I was installing the BlenderGIS addon. It
called for a separate installation of Python and GDAL wheel. I’ve copied
the error message below. The problem isn’t just related to the QGIS CWSI
plugin, this is just an example of what I see from several plugins. Can
anyone help me fix this?


Kind regards,


Bill


Couldn't load plugin 'cwsi' due to an error when calling its classFactory()
method
ModuleNotFoundError: No module named 'gdal'

Traceback (most recent call last):
  File "C:\PROGRA~1/QGIS31~1.3/apps/qgis/./python\qgis\utils.py", line
335, in _startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "C:\Users/beggers/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\cwsi\__init__.py",
line 35, in classFactory
    from .cwsi import CWSI
  File "C:\PROGRA~1/QGIS31~1.3/apps/qgis/./python\qgis\utils.py", line
799, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:\Users/beggers/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\cwsi\cwsi.py",
line 43, in
    import gdal
  File "C:\PROGRA~1/QGIS31~1.3/apps/qgis/./python\qgis\utils.py", line
799, 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.18.3-Zürich Zürich, 735cc85be9
Python Path:

   - C:/PROGRA~1/QGIS31~1.3/apps/qgis/./python
   - C:/Users/beggers/AppData/Roaming/QGIS/QGIS3\profiles\default/python
   -
   C:/Users/beggers/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
   - C:/PROGRA~1/QGIS31~1.3/apps/qgis/./python/plugins
   - C:\Program Files\QGIS 3.18.3\binC:\Program Files (x86)\ArcGIS\bin
   - C:\Program Files\QGIS 3.18.3\bin\python39.zip
   - C:\PROGRA~1\QGIS31~1.3\apps\Python39\DLLs
   - C:\PROGRA~1\QGIS31~1.3\apps\Python39\lib
   - C:\Program Files\QGIS 3.18.3\bin
   - C:\PROGRA~1\QGIS31~1.3\apps\Python39
   - C:\PROGRA~1\QGIS31~1.3\apps\Python39\lib\site-packages
   - C:\PROGRA~1\QGIS31~1.3\apps\Python39\lib\site-packages\win32
   - C:\PROGRA~1\QGIS31~1.3\apps\Python39\lib\site-packages\win32\lib
   - C:\PROGRA~1\QGIS31~1.3\apps\Python39\lib\site-packages\Pythonwin
   - C:/Users/beggers/AppData/Roaming/QGIS/QGIS3\profiles\default/python
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210608/54219212/attachment.html>


More information about the gdal-dev mailing list