Hi devs,
I found some plugins which throw an error if there are unsatisfied
dependencies.

ThanI investigate the problem and I found that the error is due to
the position of the "import" clause in the __init__.py file.

To resolve it, the "import plugin_name" should be moved into the
classFactory function.

Here an example:

def classFactory(iface):
    from plugin import Plugin
    return Plugin(iface)

I guess this could help to avoid the error installing plugins.
Would be useful if everyone checks his plugins.

In this moment I found Contour and HomeRange_plugin, but could
be more than 2.

Cheers.

-- 
Giuseppe Sucameli
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to