<div dir="auto">Hi,<div dir="auto"><br></div><div dir="auto">`import gdal` was deprecated. It got removed in 3.3.</div><div dir="auto">Please use `from osgeo import gdal`</div><div dir="auto"><br></div><div dir="auto">Idan. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 8 Jun 2021, 21:11 Bill Eggers, <<a href="mailto:beggers359@gmail.com">beggers359@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><p style="margin:0px;white-space:pre-wrap"><span style="font-family:Garamond,serif;font-size:11pt">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?</span><br></p><p style="margin:0px;white-space:pre-wrap"><span style="font-family:Garamond,serif;font-size:11pt"><br></span></p><p style="margin:0px;white-space:pre-wrap"><span style="font-family:Garamond,serif;font-size:11pt">Kind regards,</span></p><p style="margin:0px;white-space:pre-wrap"><span style="font-family:Garamond,serif;font-size:11pt"><br></span></p><p style="margin:0px;white-space:pre-wrap"><span style="font-family:Garamond,serif;font-size:11pt">Bill</span></p><p style="margin:0px;white-space:pre-wrap"><span style="font-weight:600;color:rgb(255,0,0)"><br></span></p><p style="margin:0px;white-space:pre-wrap"><span style="font-weight:600;color:rgb(255,0,0)">Couldn't load plugin 'cwsi' due to an error when calling its classFactory() method</span> <br></p>
<h3 style="margin:14px 0px 12px"><span style="font-size:large">ModuleNotFoundError: No module named 'gdal' </span></h3>
<pre style="margin-top:12px;margin-bottom:12px"><span style="font-family:"Courier New"">Traceback (most recent call last):<br>  File "C:\PROGRA~1/QGIS31~1.3/apps/qgis/./python\qgis\utils.py", line 335, in _startPlugin<br>    plugins[packageName] = package.classFactory(iface)<br>  File "C:\Users/beggers/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\cwsi\__init__.py", line 35, in classFactory<br>    from .cwsi import CWSI<br>  File "C:\PROGRA~1/QGIS31~1.3/apps/qgis/./python\qgis\utils.py", line 799, in _import<br>    mod = _builtin_import(name, globals, locals, fromlist, level)<br>  File "C:\Users/beggers/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\cwsi\cwsi.py", line 43, in <br>    import gdal<br>  File "C:\PROGRA~1/QGIS31~1.3/apps/qgis/./python\qgis\utils.py", line 799, in _import<br>    mod = _builtin_import(name, globals, locals, fromlist, level)<br>ModuleNotFoundError: No module named 'gdal'<br></span></pre>
<p style="margin:0px;white-space:pre-wrap"><br><span style="font-weight:600">Python version:</span> 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] <br><span style="font-weight:600">QGIS version:</span> 3.18.3-Zürich Zürich, 735cc85be9 <br></p>
<h4 style="margin:12px 0px"><span style="font-size:medium">Python Path:</span></h4>
<ul style="margin:0px"><li style="margin:12px 0px 0px;white-space:pre-wrap">C:/PROGRA~1/QGIS31~1.3/apps/qgis/./python</li>
<li style="margin:0px;white-space:pre-wrap">C:/Users/beggers/AppData/Roaming/QGIS/QGIS3\profiles\default/python</li>
<li style="margin:0px;white-space:pre-wrap">C:/Users/beggers/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins</li>
<li style="margin:0px;white-space:pre-wrap">C:/PROGRA~1/QGIS31~1.3/apps/qgis/./python/plugins</li>
<li style="margin:0px;white-space:pre-wrap">C:\Program Files\QGIS 3.18.3\binC:\Program Files (x86)\ArcGIS\bin</li>
<li style="margin:0px;white-space:pre-wrap">C:\Program Files\QGIS 3.18.3\bin\python39.zip</li>
<li style="margin:0px;white-space:pre-wrap">C:\PROGRA~1\QGIS31~1.3\apps\Python39\DLLs</li>
<li style="margin:0px;white-space:pre-wrap">C:\PROGRA~1\QGIS31~1.3\apps\Python39\lib</li>
<li style="margin:0px;white-space:pre-wrap">C:\Program Files\QGIS 3.18.3\bin</li>
<li style="margin:0px;white-space:pre-wrap">C:\PROGRA~1\QGIS31~1.3\apps\Python39</li>
<li style="margin:0px;white-space:pre-wrap">C:\PROGRA~1\QGIS31~1.3\apps\Python39\lib\site-packages</li>
<li style="margin:0px;white-space:pre-wrap">C:\PROGRA~1\QGIS31~1.3\apps\Python39\lib\site-packages\win32</li>
<li style="margin:0px;white-space:pre-wrap">C:\PROGRA~1\QGIS31~1.3\apps\Python39\lib\site-packages\win32\lib</li>
<li style="margin:0px;white-space:pre-wrap">C:\PROGRA~1\QGIS31~1.3\apps\Python39\lib\site-packages\Pythonwin</li>
<li style="margin:0px 0px 12px;white-space:pre-wrap">C:/Users/beggers/AppData/Roaming/QGIS/QGIS3\profiles\default/python</li></ul></div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank" rel="noreferrer">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div>