Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pycharm unable to debug the Python Flask project

I have a simple Flask based project in Pycharm. I am trying to debug this by right clicking and selecting debug option. But keeps getting below error:

Connected to pydev debugger (build 232.9559.58)
 * Serving Flask app 'app'
 * Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:8000
 * Running on http://192.168.0.29:8000
Press CTRL+C to quit
 * Restarting with stat
C:\Python311\python.exe: can't open file 'C:\\Program': [Errno 2] No such file or directory

Process finished with exit code 2

I am unable to understand why and what it is looking for in 'C:\\Program'. I am able to run the file perfectly fine and only having issues in debug. What can I try next?

like image 901
S Andrew Avatar asked May 26 '26 15:05

S Andrew


1 Answers

This appears to be a bug in Pycharm. Multiple issues have been raised for the same in the JetBrains bug tracker.

You can follow this comment(or this comment) to get a temporary workaround.

like image 139
Abdul Niyas P M Avatar answered May 28 '26 04:05

Abdul Niyas P M



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!