[Qgis-developer] image show hide plugin error

Luiz Motta motta.luiz at gmail.com
Sun Oct 10 10:09:09 EDT 2010


Paolo,

Correction bug when initialize plugin already containing layer of polygon
Fix this bug at version 0.3 (QGIS User-Contributed Python Plugin 
Repository).

Thank



Paolo Cavallini escreveu:
> Just installed, I get an error:
> ===
> Couldn't load plugin imgshowhide due an error when calling its initGui() method
>
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/dist-packages/qgis/utils.py", line 147, in startPlugin
>     plugins[packageName].initGui()
>   File "/home/paolo/.qgis/python/plugins/imgshowhide/imgshowhide_qg.py", line 37, in
> initGui
>     self.__setDocWidget()
>   File "/home/paolo/.qgis/python/plugins/imgshowhide/imgshowhide_qg.py", line 31, in
> __setDocWidget
>     widget = ShowHideImgWidget(self.__iface)
>   File "/home/paolo/.qgis/python/plugins/imgshowhide/imgshowhidewidget.py", line 37,
> in __init__
>     self.__init()
>   File "/home/paolo/.qgis/python/plugins/imgshowhide/imgshowhidewidget.py", line 51,
> in __init
>     self.__populateCatalogTable(lstLyrPolygon)
>   File "/home/paolo/.qgis/python/plugins/imgshowhide/imgshowhidewidget.py", line 100,
> in __populateCatalogTable
>     if len(lstCatalog) > 0:
> TypeError: object of type 'NoneType' has no len()
>
> Python version:
> 2.6.6 (r266:84292, Sep 15 2010, 15:09:12)
> [GCC 4.4.5 20100909 (prerelease)]
>
>
> QGIS version:
> 1.6.0-Trunk Trunk, 14356M
> ===
> Anyone confirms?
> All the best.
>   



More information about the Qgis-developer mailing list