You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ModuleNotFoundError: No module named 'rasterio'
Traceback (most recent call last):
File "C:\PROGRA1/QGIS321.10/apps/qgis-ltr/./python\qgis\utils.py", line 401, in loadPlugin import(packageName)
File "C:\PROGRA1/QGIS321.10/apps/qgis-ltr/./python\qgis\utils.py", line 888, in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Geo-SAM_init.py", line 7, in
from .geo_sam_tool import Geo_SAM
File "C:\PROGRA1/QGIS321.10/apps/qgis-ltr/./python\qgis\utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Geo-SAM\geo_sam_tool.py", line 24, in
from .tools.SAMTool import SAM_Model
File "C:\PROGRA1/QGIS321.10/apps/qgis-ltr/./python\qgis\utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Geo-SAM\tools\SAMTool.py", line 7, in
import rasterio
File "C:\PROGRA1/QGIS321.10/apps/qgis-ltr/./python\qgis\utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'rasterio'
Could you help me to fix it ?
Thanks
The text was updated successfully, but these errors were encountered:
I had the same issue. In my case, I mistakenly installed the dependencies using the Windows 'Powershell', which installed the packages to my OS environment (Python 3.11 in my case).
However, QGIS is using Python 3.9... so I was getting the 'module not found error'. Check your error further, and you will notice which version of Python QGIS is using.
My solution was to open the OSGeo4W Shell and install the necessary dependencies there using $ python -m pip install torch torchvision.
When I finish installation I get this error.
_```
Impossible de charger l'extension 'Geo-SAM'
ModuleNotFoundError: No module named 'rasterio'
Traceback (most recent call last):
File "C:\PROGRA
1/QGIS321.10/apps/qgis-ltr/./python\qgis\utils.py", line 401, in loadPluginimport(packageName)
File "C:\PROGRA
1/QGIS321.10/apps/qgis-ltr/./python\qgis\utils.py", line 888, in _importmod = builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Geo-SAM_init.py", line 7, in
from .geo_sam_tool import Geo_SAM
File "C:\PROGRA
1/QGIS321.10/apps/qgis-ltr/./python\qgis\utils.py", line 888, in _importmod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Geo-SAM\geo_sam_tool.py", line 24, in
from .tools.SAMTool import SAM_Model
File "C:\PROGRA
1/QGIS321.10/apps/qgis-ltr/./python\qgis\utils.py", line 888, in _importmod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Geo-SAM\tools\SAMTool.py", line 7, in
import rasterio
File "C:\PROGRA
1/QGIS321.10/apps/qgis-ltr/./python\qgis\utils.py", line 888, in _importmod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'rasterio'
The text was updated successfully, but these errors were encountered: