Pycharm debugging not working

In PyCharm, running debugger:
…Python310\python.exe: can’t open file ‘C:\Users\andre\AppData\Local\Programs\PyCharm’: [Errno 2] No such file or directory
this error is coming from running:
“C:\Users\andre\Documents\Course\Udemy\PythonAngYu\clean-blog - capstone2\venv\Scripts\python.exe” -X pycache_prefix=C:\Users\andre\AppData\Local\JetBrains\PyCharmCE2024.1\cpython-cache “C:/Users/andre/AppData/Local/Programs/PyCharm Community/plugins/python-ce/helpers/pydev/pydevd.py” --multiprocess --qt-support=auto --client 127.0.0.1 --port 51536 --file “C:\Users\andre\Documents\Course\Udemy\PythonAngYu\clean-blog - capstone2\main.py”

Which seems to indicate that the whitespace between PyCharm and Community is preventing the call that works with debug mode. Weirdly normal running works fine, ive been using python and pycharm for only a couple of months and not sure exactly what is going on

…additionally. I added Python3.12 and the debugger caught the exception thrown when flask isnt installed but the first line of main = from flask import Flask, render_template.
However when I install flask it shows the same error message but for the new version of python.
Could this be a pycharm issue?