I haven’t been able to find anything recent on this issue (I.e. since ~2021), which makes me think it was solved but somehow I missed it.
I am trying to call filedialog.askdirectory() (with filedialog imported from tkinter) within the Spyder IDE on Mac OS X (Ventura 13.6).
This worked fine on my Windows machine, but now crashes python anytime I try to run the code that has this call in it. I have tried creating different environments with different versions of Python (specifically Python 3.9.18 and 3.10.13, which are the only lower versions than 3.11.4 available on Anaconda Navigator), and they all behave the same.