Sounds like an issue with your IDE. If the executable works and the source works in IDLE, it's on your end.