Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modelu "torchgeo" with problems #14

Open
ANDYAGUIRRE10 opened this issue Aug 7, 2023 · 1 comment
Open

Modelu "torchgeo" with problems #14

ANDYAGUIRRE10 opened this issue Aug 7, 2023 · 1 comment

Comments

@ANDYAGUIRRE10
Copy link

ANDYAGUIRRE10 commented Aug 7, 2023

Hello! Thanks a lot for your work.
I attached a problem when I am installing the plugin.
No se pudo cargar el complemento 'Geo-SAM'

ModuleNotFoundError: No module named 'torchgeo'
Traceback (most recent call last):
File "C:\PROGRA1/QGIS321.0/apps/qgis/./python\qgis\utils.py", line 401, in loadPlugin
import(packageName)
File "C:\PROGRA1/QGIS321.0/apps/qgis/./python\qgis\utils.py", line 888, in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/Usuario/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.0/apps/qgis/./python\qgis\utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/Usuario/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.0/apps/qgis/./python\qgis\utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/Usuario/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Geo-SAM\tools\SAMTool.py", line 13, in
from .torchgeo_sam import SamTestFeatureDataset, SamTestFeatureGeoSampler
File "C:\PROGRA1/QGIS321.0/apps/qgis/./python\qgis\utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/Usuario/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Geo-SAM\tools\torchgeo_sam.py", line 21, in
from torchgeo.datasets import unbind_samples, stack_samples, BoundingBox, RasterDataset, GeoDataset, IntersectionDataset
File "C:\PROGRA1/QGIS321.0/apps/qgis/./python\qgis\utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'torchgeo'

Versión de Python: 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)]
Versión de QGIS: 3.26.0-Buenos Aires Buenos Aires, 0aece2818e

Ruta de Python:
C:\Users/Usuario/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LAStools
C:\Users/Usuario/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geometric_attributes
C:/PROGRA1/QGIS321.0/apps/qgis/./python
C:/Users/Usuario/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/Usuario/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/PROGRA1/QGIS321.0/apps/qgis/./python/plugins
C:\Program Files\QGIS 3.26.0\bin\python39.zip
C:\PROGRA1\QGIS321.0\apps\Python39\DLLs
C:\PROGRA1\QGIS321.0\apps\Python39\lib
C:\Program Files\QGIS 3.26.0\bin
C:\Users\Usuario\AppData\Roaming\Python\Python39\site-packages
C:\PROGRA1\QGIS321.0\apps\Python39
C:\PROGRA1\QGIS321.0\apps\Python39\lib\site-packages
C:\PROGRA1\QGIS321.0\apps\Python39\lib\site-packages\win32
C:\PROGRA1\QGIS321.0\apps\Python39\lib\site-packages\win32\lib
C:\PROGRA1\QGIS321.0\apps\Python39\lib\site-packages\Pythonwin
C:/Users/Usuario/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:\Users\Usuario\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\DigitizingTools\tools
C:\Users\Usuario\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\DigitizingTools
C:\Users\Usuario\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\kmltools\libs

image

Grettings from Argentina!

@Fanchengyan
Copy link
Collaborator

Fanchengyan commented Aug 7, 2023

Hi @ANDYAGUIRRE10 , you are expected to have installed the dependencies before opening QGIS. Please follow the Installation in Readme.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants