gustavowillam / SmartMapPlugin

Plugin Qgis3.10.x para interpolação utilizando Krigagem Ordinária (OK), Machine Learning (ML) e Geração de Zonas de Manejo
https://github.com/gustavowillam/SmartMapPlugin
GNU General Public License v3.0
52 stars 13 forks source link

Impossível carregar complemento 'Smart_Map' Devido a um erro ao chamar o método Class Factory(). #64

Closed araujomatheu closed 4 months ago

araujomatheu commented 6 months ago

Boa tarde. Estou com dificuldades para usar o plugin smart-map.

Aparece a seguinte mensagem: Impossível carregar complemento 'Smart_Map' Devido a um erro ao chamar o método Class Factory().

smartmap

Como resolver o problema?

sarviovalente commented 6 months ago

Precisamos de mais informações para tenter lhe ajudar.

Está usando Windows? Qual versão do QGIS está usando? é Versão LTR QGIS 3.28, por exemplo? A mensagem aparece em que momento?

Att

Em seg., 12 de fev. de 2024 às 17:38, araujomatheu @.***> escreveu:

Boa tarde. Estou com dificuldades para usar o plugin smart-map.

Aparece a seguinte mensagem: Impossível carregar complemento 'Smart_Map' Devido a um erro ao chamar o método Class Factory().

smartmap.png (view on web) https://github.com/gustavowillam/SmartMapPlugin/assets/159830274/f23dc6dc-5694-4d56-aca0-1b0d4fd152ce

Como resolver o problema?

— Reply to this email directly, view it on GitHub https://github.com/gustavowillam/SmartMapPlugin/issues/64, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF5V7PX5FIXBPDTA3HERLYLYTJ4U7AVCNFSM6AAAAABDFLMYIGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEZTAOJUGUZDIMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

araujomatheu commented 6 months ago

Olá, professor. Estou usando o Windows 11 home language e QGIS 3.28. A mensagem começou a aparecer na tela inicial do QGIS, conforme a imagem abaixo, após excluir a pasta Smart-map que é criada depois de gerar um mapa interpolado. Captura de tela 2024-02-15 074513

E aparece também após tentar habilitar o plugin quando clico em "Complementos --> Gerenciar e instalar complementos" e seleciono o Smart-Map.

Já tentei desinstalar e instalar novamente o Qgis mas mesmo assim continuo com esse problema.

sarviovalente commented 6 months ago

Obrigado pelas informações.

Experiemente executar os passos para desistalar o QGIS conforme esse vídeo. https://youtu.be/Z3IsTdxe0w4?si=KIhKxTLupRgKa7j_

Por favor, veja até o final.

Abraço Sárvio

Em qui., 15 de fev. de 2024 às 08:52, araujomatheu @.***> escreveu:

Olá, professor. Estou usando o Windows 11 home language e QGIS 3.28. A mensagem começou a aparecer na tela inicial do QGIS, conforme a imagem abaixo, após excluir a pasta Smart-map que é criada depois de gerar um mapa interpolado. Captura.de.tela.2024-02-15.074513.png (view on web) https://github.com/gustavowillam/SmartMapPlugin/assets/159830274/088fa705-5f6c-498d-9976-344b1a060d21

E aparece também após tentar habilitar o plugin quando clico em "Complementos --> Gerenciar e instalar complementos" e seleciono o Smart-Map.

Já tentei desinstalar e instalar novamente o Qgis mas mesmo assim continuo com esse problema.

— Reply to this email directly, view it on GitHub https://github.com/gustavowillam/SmartMapPlugin/issues/64#issuecomment-1945946423, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF5V7PUJST74ALPHT65LUV3YTXZJNAVCNFSM6AAAAABDFLMYIGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBVHE2DMNBSGM . You are receiving this because you commented.Message ID: @.***>

araujomatheu commented 6 months ago

Fiz todo o procedimento descrito no vídeo, mas o problema continua.

smartmap

Impossível carregar complemento 'Smart_Map' Devido a um erro ao chamar o método Class Factory().

ImportError: No module named 'sklearn.check_build._checkbuild' ____ Contents of C:\Users\55659\AppData\Roaming\QGIS\QGIS3\profiles\default\python\site-packages\sklearn__check_build: setup.py _check_build.cp37-win_amd64.pydinit.py pycache _____ It seems that scikit-learn has not been built correctly. If you have installed scikit-learn from source, please do not forget to build the package before using it: run python setup.py install or make in the source directory. If you have used an installer, please check that it is suited for your Python version, your operating system and your platform. Traceback (most recent call last): File "C:\Users\55659\AppData\Roaming\QGIS\QGIS3\profiles\default\python\site-packages\sklearn__check_build\init.py", line 44, in from ._check_build import check_build # noqa File "C:\PROGRA~1/QGIS 3.28.15/apps/qgis-ltr/./python\qgis\utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ModuleNotFoundError: No module named 'sklearn.check_build._check_build'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\PROGRA~1/QGIS 3.28.15/apps/qgis-ltr/./python\qgis\utils.py", line 423, in _startPlugin plugins[packageName] = package.classFactory(iface) File "C:\Users/55659/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Smart_Map__init.py", line 36, in classFactory from .Smart_Map import smart_map File "C:\PROGRA~1/QGIS 3.28.15/apps/qgis-ltr/./python\qgis\utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:\Users/55659/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Smart_Map\Smart_Map.py", line 94, in from .utils import functions #Utility functions -> file functions.py File "C:\PROGRA~1/QGIS 3.28.15/apps/qgis-ltr/./python\qgis\utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:\Users/55659/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Smart_Map\utils\functions.py", line 26, in from sklearn import svm File "C:\PROGRA~1/QGIS 3.28.15/apps/qgis-ltr/./python\qgis\utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:\Users\55659\AppData\Roaming\QGIS\QGIS3\profiles\default\python\site-packages\sklearn__init.py", line 81, in from . import check_build # noqa: F401 File "C:\PROGRA~1/QGIS 3.28.15/apps/qgis-ltr/./python\qgis\utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:\Users\55659\AppData\Roaming\QGIS\QGIS3\profiles\default\python\site-packages\sklearn__check_build__init.py", line 46, in raise_build_error(e) File "C:\Users\55659\AppData\Roaming\QGIS\QGIS3\profiles\default\python\site-packages\sklearn\check_build\init.py", line 31, in raise_build_error raise ImportError("""%s ImportError: No module named 'sklearn.check_build._check_build'


Contents of C:\Users\55659\AppData\Roaming\QGIS\QGIS3\profiles\default\python\site-packages\sklearn__check_build: setup.py _check_build.cp37-win_amd64.pydinit.py pycache


It seems that scikit-learn has not been built correctly.

If you have installed scikit-learn from source, please do not forget to build the package before using it: run python setup.py install or make in the source directory.

If you have used an installer, please check that it is suited for your Python version, your operating system and your platform.

Versão do Python: 3.9.18 (heads/master:c290dc6, Jan 14 2024, 01:36:02) [MSC v.1929 64 bit (AMD64)] Versão do QGIS: 3.28.15-Firenze Firenze, 252ad49ddc

Caminho do Python: C:/PROGRA~1/QGIS 3.28.15/apps/qgis-ltr/./python C:/Users/55659/AppData/Roaming/QGIS/QGIS3\profiles\default/python C:/Users/55659/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins C:/PROGRA~1/QGIS 3.28.15/apps/qgis-ltr/./python/plugins C:\PROGRA~1\QGIS 3.28.15\apps\grass\grass83\etc\python C:\Users\55659\Documents C:\Program Files\QGIS 3.28.15\bin\python39.zip C:\PROGRA~1\QGIS 3.28.15\apps\Python39\DLLs C:\PROGRA~1\QGIS 3.28.15\apps\Python39\lib C:\Program Files\QGIS 3.28.15\bin C:\PROGRA~1\QGIS 3.28.15\apps\Python39 C:\PROGRA~1\QGIS 3.28.15\apps\Python39\lib\site-packages C:\PROGRA~1\QGIS 3.28.15\apps\Python39\lib\site-packages\win32 C:\PROGRA~1\QGIS 3.28.15\apps\Python39\lib\site-packages\win32\lib C:\PROGRA~1\QGIS 3.28.15\apps\Python39\lib\site-packages\Pythonwin C:/Users/55659/AppData/Roaming/QGIS/QGIS3\profiles\default/python C:\Users\55659\AppData\Roaming\QGIS\QGIS3\profiles\default\python\site-packages C:\Users\55659\AppData\Roaming\QGIS\QGIS3\profiles\default\python\site-packages

araujomatheu commented 5 months ago

Boa tarde, professor.

O smartmap ainda não está funcionando, poderia ajudar novamente?

gustavowillam commented 5 months ago

Uma nova versão do Smart-Map está disponível no repositório do QGIS. Instale a nova versão (1.4) juntamente com a ultima versão estável do QGIS (3.34 LTR).

Antes de instalar o QGIS, faça a remoção completa da versão instalada através do Painel de Controles -> Programas e Recursos -> Desistalar

Após desinstalado o QGIS remova as seguintes pastas:

1) Delete a pasta "site-packages" que se encontra dentro da pasta: C:\Users\\AppData\Roaming\QGIS\QGIS3\profiles\default\python

2) Delete a pasta "Python3xx" que se encontra dentor da pasta: C:\Users\\AppData\Roaming\Python

Após remover estas pastas instale o QGIS 3.34 e o plugin Smart-Map.

araujomatheu commented 4 months ago

Bom dia,

Obrigado, pessoal. Vou a funcionar.

Att,