ModuleNotFoundError: No module named 'force4qgis'
Issue #1
resolved
zipped Repository cannot get installed as QGIS plugin due.
Seems the plugin folder needs to be added to the sys.path
Error:
Couldn't load plugin 'hu-geomatics-force4qgis-9aed7d6fc05a'
ModuleNotFoundError: No module named 'force4qgis'
Traceback (most recent call last):
File "C:/PROGRA~1/QGIS3~1.10/apps/qgis/./python\qgis\utils.py", line 312, in loadPlugin
__import__(packageName)
File "C:/PROGRA~1/QGIS3~1.10/apps/qgis/./python\qgis\utils.py", line 744, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/geo_beja/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\hu-geomatics-force4qgis-9aed7d6fc05a\__init__.py", line 1, in
from .force4qgis.plugin import Plugin
File "C:/PROGRA~1/QGIS3~1.10/apps/qgis/./python\qgis\utils.py", line 744, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/geo_beja/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\hu-geomatics-force4qgis-9aed7d6fc05a\force4qgis\plugin.py", line 4, in
from .interface import Interface
File "C:/PROGRA~1/QGIS3~1.10/apps/qgis/./python\qgis\utils.py", line 744, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/geo_beja/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\hu-geomatics-force4qgis-9aed7d6fc05a\force4qgis\interface.py", line 7, in
from .dockwidget import DockWidget
File "C:/PROGRA~1/QGIS3~1.10/apps/qgis/./python\qgis\utils.py", line 744, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/geo_beja/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\hu-geomatics-force4qgis-9aed7d6fc05a\force4qgis\dockwidget.py", line 12, in
from force4qgis.force4qgis.script import Parameters, BinningOption, OpenOption, main
File "C:/PROGRA~1/QGIS3~1.10/apps/qgis/./python\qgis\utils.py", line 744, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'force4qgis'
Comments (7)
-
-
- changed status to invalid
should work without adding plugin folder to sys.path
-
reporter - changed status to open
Can be closed first plugin installation via *.zip works.
-
reporter Zipping the repo leads to the following installation error:
Couldn't load plugin 'force4qgis/.git' ModuleNotFoundError: No module named 'force4qgis/' Traceback (most recent call last): File "C:/PROGRA~1/QGIS3~1.10/apps/qgis/./python\qgis\utils.py", line 312, in loadPlugin __import__(packageName) File "C:/PROGRA~1/QGIS3~1.10/apps/qgis/./python\qgis\utils.py", line 744, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ModuleNotFoundError: No module named 'force4qgis/'
-
- changed status to resolved
-
- changed status to open
-
- changed status to resolved
- Log in to comment
@Benjamin Jakimow this problem is gone on your system, right?