Brice Roberts22,415 Points
For anyone getting EOF errors when trying to use PyCharm
In your menu bar
Select Run>Edit Configurations
Tick the box for Emulate Terminal in Output Console under the Execution header.
ReRun diary.py, and then add your entry. When you are finished, enter CTRL+D and then hit enter. Your application will run as intended.
This will stop PyCharm from sending the incorrect EOF signal to the console.
My solution for Mac users.
In menu bar select PyCharm>Preferences>Keymap , search for EOF. Click Add Keyboard Shortcut. I used ⌘I because there is conflict with ⌘D.
After you run diary.py , type your entry, hit ⌘I and after that hit Enter.