<div dir="ltr">I have a custom repo and a custom plugin that I'm developing for QGIS. I recently updated the plugin in the repo to a new version and tried to upgrade on my local QGIS install. When I did so, I received the following error:<div><br><div><p style="margin:0px"><span style="font-size:large;font-weight:600">AttributeError: 'module' object has no attribute 'classFactory' </span></p>
<pre style="margin-top:12px;margin-bottom:12px"><span style="font-family:'Courier New,courier'">Traceback (most recent call last):<br> File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 306, in startPlugin<br> plugins[packageName] = package.classFactory(iface)<br>AttributeError: 'module' object has no attribute 'classFactory'</span></pre><pre style="margin-top:12px;margin-bottom:12px"><span style="font-family:arial,sans-serif;white-space:normal">I've seen this issue before in my plugin (most notably when I try to use the Plugin Reloader tool) but I've never been able to figure it out. Is my plugin missing something in the init.py or in the main plugin class?</span></pre><pre style="margin-top:12px;margin-bottom:12px"><span style="font-family:arial,sans-serif;white-space:normal">For reference, my plugin code can be found here:</span></pre><pre style="margin-top:12px;margin-bottom:12px"><font face="arial, sans-serif"><span style="white-space:normal"><a href="https://github.com/spencerrecneps/TDG-Tools/tree/master/TDGAlgorithmProviderPlugin">https://github.com/spencerrecneps/TDG-Tools/tree/master/TDGAlgorithmProviderPlugin</a></span></font></pre><pre style="margin-top:12px;margin-bottom:12px"><span style="font-family:arial,sans-serif;white-space:normal">Thanks for any input!</span></pre></div></div></div>