I have been trying to build a plugin through Plugin Builder 3 and been facing this issue then.
I have been facing the pyrcc5
issue but I was able to solve it through this link:
Fixing “The resource compiler pyrcc5 was not found”
This is the Python error:
Couldn't load plugin split_layer' due to an error when calling its classFactory() method
ModuleNotFoundError: No module named 'split_layer.resources'
Traceback (most recent call last):
File "C:/PROGRA-1/QGIS3~1.3/apps/qgis/./python\qgis\utils.py", line 334, in _startPlugin
plugins [packageName] = package.classFactory (iface)
File "C:/Users/pabla/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\split_layer\ _init_ .py", line 35, in classFactory
from .split_layer import Split_Layer
File "C:/PROGRA~1/QGIS3~1.8/apps/qgis/./pychon\qgis\utils.py", line 737, in _import
mod = _builtin_import (name, globals, locals, fromlist, level)
File "C:/Users/pabla/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\splic_layer\splic_layer.py", line 26, in
from .resources import *
File "C:/PROGRA~1/QGIS3~1.8/apps/qgis/./pychon\qgis\utils.py", line 737, in _import
mod = _builtin_import (name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'split_layer.resources'
Can anyone help me how to solve this error?
resources.py
exist in your plugin folder?resources.py
in folder created by pluginbuilder into QGIS plugin folder.