My Python app runs on Windows and OS X/macOS successfully... on Ubuntu, however, I get a Tcl_AsyncDelete error!
I know how threading works in Python with Tk, and that Tk should only be accessed from the main thread, but when my logic thread tries to open a URL with urllib.urlopen
, the error apepars and Python panics. Once I remove the urlopen
call to test it, the program does not crash. Happens on both, Python 2 and Python 3.
Here is the code for my project:
I tried everything I could, setting logging level to DEBUG (in my code), debugging the app with pdb... No useful information.
It’s not a problem of Tk being accessed from a separate thread, or running within a thread – Tk runs within the main thread, and all communication with the logic thread happens through a shared queue...
Or maybe I am missing something? Thanks in advance!