This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients andrei.avk, becky07, paul.moore, shreyanavigyan, steve.dower, steven.daprano, tim.golden, zach.ware
Date 2021-05-10.00:14:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20210510001353.GV20346@ando.pearwood.info>
In-reply-to <1620604556.22.0.274346818825.issue44076@roundup.psfhosted.org>
Content
On Sun, May 09, 2021 at 11:55:56PM +0000, Mohamed wrote:

> Please find attached, the demo with dummy data. As I mentioned, it was working fine until May 1st. 

If it was working fine until May 1st, I would start my investigation by 
looking at what changes where made to the source code on April 29, 30 
and May 1st.

Is your source code in a source control repository? Can you compare it 
to a backup?

> Also, As I mentioned, in case I call MasterApp at the end of add 
> function data appears correctly. This means a malfunction occurred 
> after Windows Update, and it relates to mainloop

Your traceback involves a keyerror and an index error. What makes you 
think this is a problem with the Tkinter mainloop rather than your own 
code?

You are trying to delete a module from sys.modules:

    del sys.modules['cm_asset_add']

(why?) but the key is not found. That exception is then caught and 
another exception raised.

It really looks to me that your callback function fun_asset_current is 
buggy. Why is it messing with sys.modules?

>     class MasterApp(object):
>         def __init__(self, root):
>         ....
> 
>         def fun_astinfo_add(self):
> 	    ...
> 	    assetinfo_lst.append(lst_values)
> 	    ...
> 	    MasterApp(root)

I'm not an expert at tkinter, but creating a new MasterApp object 
every single time you call the fun_astinfo_add method doesn't look 
right to me -- especially since you create that object, but then 
immediately discard it and it is instantly garbage collected.
History
Date User Action Args
2021-05-10 00:14:35steven.dapranosetrecipients: + steven.daprano, paul.moore, tim.golden, zach.ware, steve.dower, andrei.avk, shreyanavigyan, becky07
2021-05-10 00:14:35steven.dapranolinkissue44076 messages
2021-05-10 00:14:35steven.dapranocreate