I just develop a custom plugin in QGIS. It folder located here
C:\Users(user).qgis2\python\Plugins\PluginTest
But it is not showing the plugin in QGIS, although a downloaded plugin VectorCompare showing correctly in plugin dropdown. I have no warning or error log.
I just saw an error in Plugin > Installed tab.
Couldn't load plugin TaskAutomation due to an error when calling its classFactory() method
> ImportError: No module named resources
> Traceback (most recent call last):
> File "E:/QGISSE~1/apps/qgis/./python\qgis\utils.py", line 306, in startPlugin
> plugins[packageName] = package.classFactory(iface)
> File "C:/Users/FK/.qgis2/python/plugins\TaskAutomation\__init__.py", line 34, in
> classFactory
> from .TLL_Task import TaskAutomation
> File "E:/QGISSE~1/apps/qgis/./python\qgis\utils.py", line 572, in _import
> mod = _builtin_import(name, globals, locals, fromlist, level)
> File "C:/Users/FK/.qgis2/python/plugins\TaskAutomation\TLL_Task.py", line 26, in
> import resources
> File "E:/QGISSE~1/apps/qgis/./python\qgis\utils.py", line 572, in _import
> mod = _builtin_import(name, globals, locals, fromlist, level)
> ImportError: No module named resources
Best Answer
I run this command in my qgis plugin through OSGeo4W to resolve this error
Complete command run on OSGeo4W Shell
QGIS Doucmentation provided the details