Pycharm gets error “can’t find ‘__main__’ module” May 30, 2023 by Tarik Figured out whats wrong. In the configuration window in pycharm, I had to select proper script path: