[GIS] AttributeError: ‘module’ object has no attribute ‘classFactory’

cythonosxpythonqgisqgis-plugins

I'm trying to compile a cython plugin for QGIS.
The plugin is working on windows (32/64) machines but was never used on Mac before.

I compiled the cython for python as described here but there are still issues and code now returns above error.

File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 306, in startPlugin
plugins[packageName] = package.classFactory(iface)
AttributeError: 'module' object has no attribute 'classFactory'

Best Answer

I rearranged the folder structure, bringing all modules from sub folders to main folder and adjusted code accordingly. - Current problem solved.

Related Question