Pycharm launch issue: Error:Cannot start process, the working directory 'C:\Users\ranab\PycharmProjects\3DNN\test3D.py' is not a directory
Whenever I start pycharm, I have this error in the python console:
Error:Cannot start process, the working directory 'C:\Users\ranab\PycharmProjects\3DNN\test3D.py' is not a directory.
I have to update the source section to remove the error and the directory for the file shows in AppData\Local\Temp folder which I think is also part of the problem

Can anyone help me to solve it?
Please sign in to leave a comment.
Are you sure you're getting this error when you start PyCharm, or when you run your python script? Please check what you have as working directory in your run/debug configuration.
See here if you're not familiar with run/debug configurations: https://www.jetbrains.com/help/pycharm/run-debug-configuration.html
I'm getting this error when I try to open a "Python or Debug Console" in CLion.
Error:Cannot start process, the working directory '/home/username/BuildArea/cmake/AllProjects/Release/path/to/file/that/doesn't/exist.c' is not a directory
I don't know where it's grabbing that path from. I've grepped through all .idea and .config/jetbrains/clion... files without finding it.
Please check File | Settings | Build, Execution, Deployment | Console | Python Console
Here is a screenshot of my Python console settings. Let me know if there's anything more that you need.
Do you have a python interpreter in the drop down list under "Use specified interpreter"? If no, make sure you have a python interpreter configured for the project and provide a screenshot of the python interpreter settings.