When i try to run any kind of script, i get this error.

transcription of error:
Argument for @NotNull parameter 'module' of com/intellij/openapi/roots/ModuleRootManager.getInstance must not be null
When i try to run any kind of script, i get this error.

transcription of error:
Argument for @NotNull parameter 'module' of com/intellij/openapi/roots/ModuleRootManager.getInstance must not be null
Same in IntelliJ IDEA 2022.2 (Ultimate Edition) Build #IU-222.3345.118, built on July 26, 2022 with plugin Python (222.3345.131).
Solved by:
Solved by:
Select the desired script
Click on the button "-" (Tip "Remove Configuration")
4) Close "Edit Configurations"
Select the desired script on left panel (Where your project files)
Click Right mouse and select "Run ..."