I was experiencing issues similar to yours while running a Python program on my MacBook. Additionally, due to these errors, I could not view the buttons I created for my Tkinter GUI once I completed the following.
Error:
2024-12-14 10:16:16.092 Python[89542:11677896] +[IMKClient subclass]: chose IMKClient_Modern
2024-12-14 10:16:16.092 Python[89542:11677896] +[IMKInputSession subclass]: chose IMKInputSession_Modern
Actions performed:
brew uninstall python
https://www.python.org/downloads/
After running through the installation prompt, I could view the buttons for my calculator project successfully. Let me know if this helps; thanks!