I\'m having trouble with a function that shows an image for two seconds on screen, and then is destroyed. When the program runs the functions initial call procedurely works
I had been getting the same error, and the above methods work well to fix it, but i also found that if you aren't going to be changing all of this, then you can restart the kernel (in jupyter notebook) or restart your python interpreter
And that should make it work the next time. I am not entirely sure how and why this works tho, but it does and is a simple solution for the time being