IDLE Program is not running properly

I have the Python package installed on my Mac. The whole package was working properly until IDLE stopped working.
I get constantly this error:

IDLE’s subprocess didn’t make connection.

See the ‘Startup failure’ section of the IDLE doc, online at

IDLE — Python 3.12.1 documentation

While checking the link below, I only can use Python through terminal. I can write codes on terminal, but I can’t open Python files I receive from my classmates as a group project.

Can anyone please help with this?

Hi !

The link you provide lists several possible causes for your problem, did you have a look at them ?
A common cause for this error is a name conflict between one of your Python files and a standard library package. Maybe a Python file that you received from your classmates ? Can you double-check the names of your Python files ?