<div dir="ltr">Richard;<div>No I am not the Author, it is available through a tool I found called giswater (<a href="https://www.giswater.org/?lang=en">https://www.giswater.org/?lang=en</a>), the tool kit is downloaded into qgis through a repository they reference on their website. I am assuming then that AttributeForm is not part of a pyQT4/5 or another python package then.</div><div>Since I installed QGIS3.0 alongside my 2.18.X I thought things might have gone wrong wit the python environments since one is 2.7 and the newer QGIS is using 3.6.</div><div>Tyler </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 5, 2018 at 10:57 AM, Richard Duivenvoorde <span dir="ltr"><<a href="mailto:rdmailings@duif.net" target="_blank">rdmailings@duif.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi Tyler,<br>
<br>
I reckon this is not a public plugin?<br>
<br>
But to my experience, and in my words: your plugin instance does not<br>
have (and therefor KEEP) an handle to some object (QgsAttributeForm?)<br>
which you try to retrieve.<br>
<br>
Your python code tries to retrieve an (cpp) object, but the widget you<br>
are referring to is not there (anymore in the cpp world, probably<br>
garbage collected).<br>
Note that all python references are actually references to cpp objects.<br>
See<br>
<a href="http://pyqt.sourceforge.net/Docs/PyQt5/gotchas.html#garbage-collection" rel="noreferrer" target="_blank">http://pyqt.sourceforge.net/<wbr>Docs/PyQt5/gotchas.html#<wbr>garbage-collection</a><br>
for probably a better explanation :-)<br>
<br>
Are you the author of the code? Then add a reference to it in your<br>
plugin constructor: like:<br>
self.attr_form = ...<br>
This makes<br>
<br>
Hope this helps,<br>
<br>
Richard Duivenvoorde<br>
<div><div class="h5"><br>
<br>
On 05-03-18 15:18, Tyler Veinot wrote:<br>
> Hi All;<br>
> I am running a plugin called GISwater and it was working a few months<br>
> ago but now I started getting an error. I posted the error with the<br>
> giswater group but I think it might be something missing in my QGIS<br>
> Environment so I thought I would send it out to the list in the hopes<br>
> someone can explain it to me.<br>
><br>
> An error occurred during execution of following code:<br>
> formOpen( _qgis_featureform_1_0,<br>
> _qgis_layer_v_edit_man_<wbr>source20161013122934199_0,<br>
> _qgis_feature_<wbr>20180305101453496)<br>
><br>
><br>
> Traceback (most recent call last):<br>
>   File "", line 1, in<br>
>   File "", line 23, in formOpen<br>
>   File "", line 44, in __init__<br>
>   File "", line 73, in init_config_form<br>
>   File<br>
> "C:\Users\tveinot\.qgis2\<wbr>python\plugins\giswater\utils_<wbr>giswater.py",<br>
> line 113, in getWidgetText<br>
>     widget = _dialog.findChild(QWidget, widget)<br>
> RuntimeError: wrapped C/C++ object of type QgsAttributeForm has been deleted<br>
><br>
> Python version:<br>
> 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]<br>
><br>
> QGIS version:<br>
> 2.18.17 'Las Palmas', 98e769f70e<br>
><br>
><br>
> Thanks;<br>
> Tyler<br>
><br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
><br>
<br>
</blockquote></div><br></div>