nextgis / qgis_molusce

Modules for Land Use Change Simulations
https://github.com/nextgis/molusce
GNU General Public License v2.0
43 stars 15 forks source link

can not use in qgis3.x #51

Closed liuchangmai closed 1 week ago

liuchangmai commented 1 year ago

i can't install succesfully image Traceback (most recent call last): File "D:\QGIS/apps/qgis-ltr/./python\qgis\utils.py", line 423, in _startPlugin plugins[packageName] = package.classFactory(iface) File "C:\Users/Administrator.DESKTOP-0LBSACG/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\molusce__init.py", line 29, in classFactory from molusce import MoluscePlugin ImportError: cannot import name 'MoluscePlugin' from 'molusce' (C:\Users/Administrator.DESKTOP-0LBSACG/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\molusce\init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 1, in File "D:\QGIS/apps/qgis-ltr/./python\pyplugin_installer\installer.py", line 672, in installFromZipFile if startPlugin(pluginName): File "D:\QGIS/apps/qgis-ltr/./python\qgis\utils.py", line 443, in startPlugin if not _startPlugin(packageName): File "D:\QGIS/apps/qgis-ltr/./python\qgis\utils.py", line 425, in _startPlugin _unloadPluginModules(packageName) File "D:\QGIS/apps/qgis-ltr/./python\qgis\utils.py", line 537, in _unloadPluginModules mods = _plugin_modules[packageName] KeyError: 'molusce'

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.28.7-Firenze 'Firenze', fedae0eb52

Python path: ['D:/QGIS/apps/qgis-ltr/./python', 'C:/Users/Administrator.DESKTOP-0LBSACG/AppData/Roaming/QGIS/QGIS3\profiles\default/python', 'C:/Users/Administrator.DESKTOP-0LBSACG/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins', 'D:/QGIS/apps/qgis-ltr/./python/plugins', 'D:\QGIS\apps\grass\grass82\etc\python', 'C:\Program Files\Hexagon\ERDAS IMAGINE 2015\usr\lib\Win32Release\python', 'D:\QGIS\bin\python39.zip', 'D:\QGIS\apps\Python39\DLLs', 'D:\QGIS\apps\Python39\lib', 'D:\QGIS\bin', 'D:\QGIS\apps\Python39', 'D:\QGIS\apps\Python39\lib\site-packages', 'D:\QGIS\apps\Python39\lib\site-packages\win32', 'D:\QGIS\apps\Python39\lib\site-packages\win32\lib', 'D:\QGIS\apps\Python39\lib\site-packages\Pythonwin', 'C:/Users/Administrator.DESKTOP-0LBSACG/AppData/Roaming/QGIS/QGIS3\profiles\default/python']

Geosphatial commented 11 months ago

i am also having similar problem. is there any fix or alternative?

gomalhunzai commented 10 months ago

please note the plugin can be only used in qgis2.x not qgis.3x. i also faced the issue with qgis.3x then i installed the 2.18 version.

ivanbarsukov commented 1 week ago

MOLUSCE 4.0 is available now. It works with QGIS 3