My code doesn't run
If I try to run my code, I always get this error: Cannot run program "/Users/simonsteppe/PycharmProjects/programmeren/venv/bin/python" (in directory "/Users/simonsteppe/PycharmProjects/programmeren/Reeks 08"): error=2, No such file or directory
Please sign in to leave a comment.
Could you please take a screenshot of your project structure, upload it along with your idea.log(Help | Show logs in...), upload it here: https://uploads.services.jetbrains.com/ and tell me the ID?
Also, how do you run your app, from the terminal or via the Run menu in PyCharm?
Ok! I uploaded the screenshot and the idea.log but I don't know what you mean with the ID. Thank you for the help!!
Oh, unfortunately, I can't access the upload without its ID. It will show up right after your upload is finished and looks like this:
Ok, thanks. I uploaded it again and my ID is: Upload ID: 2023_02_15_2CJSR9EEExw2TnY8xZGnAH
I've checked logs, and it seems like venvs are corrupted. Could you please try running /Users/simonsteppe/PycharmProjects/pythonProject2/venv/bin/python or /Users/simonsteppe/PycharmProjects/programmeren/venv/bin/python from the system terminal?
If it shows the same errors as PyCharm, then please try re-creating the virtual environment. There is a slight chance that the Python installation is also broken (this might happen with MacOS updates) and generates corrupted venvs; in this case, Python reinstallation is also advised.