When I open idle through the terminal, idle opens fine but as soon as I try to scroll over the idle window or make any slightly quick movements of the idle window, it immediately crashes with error:
Traceback (most recent call last):
File "/usr/local/bin/idle3", line 5, in <module>
main()
File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/idlelib/pyshell.py", line 1552, in main
root.mainloop()
File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tkinter/__init__.py", line 1283, in mainloop
self.tk.mainloop(n)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
I have tried the command brew reinstall python --with-tcl-tk
with no luck. I only get the error Error: invalid option: --with-tcl-tk
.
I have tried to uninstall and reinstall completely a few times with no luck. I am using Tk version 8.5.9, I have updated that with brew but it seems that python is still using the old version.