azure-functions-python-worker icon indicating copy to clipboard operation
azure-functions-python-worker copied to clipboard

During debugging a different version of python is selected without any feedback.

Open LuckyLub opened this issue 2 years ago • 0 comments

Description of the problem:

I created a virtual environment with python 3.10, unaware at the time that it can be no higher than 3.9. When trying to start the debug functionality I got ModuleNotFound errors, which confused me a lot, since I installed everything in my venv, double checked, and even have the debugging script check if my venv has all of the modules specified in the requirements.txt.

I noticed when initiating the debug mode the python version is mentioned. Clearly stating Python version 3.9. I did not understand where it was getting this version from, and also not why it would take this version. When I deleted 3.9 from my machine, it tried to do the trick with 3.10, resulting in an error message saying it did not support it.

image

Proposed solution

Please just kill the debug mode saying it does not support a version of python when it does not support that version, instead of picking another version without any feedback.

LuckyLub avatar Aug 04 '22 14:08 LuckyLub