-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Gauge could not initialize. Install 'ms-python.python' extension for code insights. #1895
Comments
Hi Same issue at my end. Any update on this please ? Did a work around by running the project in IntelliJ... but not an idle solution. Thanks for your help |
My guess is that for some reason the python runner crashed (could be a missing dependency, incompatible version etc) - did you check the logs directory and see if there's any error reported? Usually |
Thank you Sriv, yes it did direct me to resolve the issue. Issue :
Fix : Based on the suggestion from this link : Fixed the issue by copy two paths of Python These are the path where your python is installed. Now add this path into your environmental variable. and if there is any other instances of python in the system variable remove it. Then reload the VS code and run the spec.. boom.. it works. Thanks |
I just rolled back to my previous versions.
Pluginshtml-report (4.0.12)
appdirs 1.4.4 I checked my System variables, and it doesn't have the scripts. But still works on this setup. Maybe ill delay upgrading my versions for now. |
you have this error in the log "python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases" In your project root under |
I saw this error trying to run specification and the output log showed: I resolved the issue by issuing the command in a terminal as: '"C:\Program Files\Python37\python.exe" -m pip install getgauge==0.3.14 --user It appears the placement of the double quotes was causing the error. |
i solved this issue just manually did the installation : 'C:\Program Files\Python37\python.exe" -m pip install getgauge==0.3.14 --user". Right after it worked fine. |
I had same problem. In my case I fixed python path with simply remove it and install it again (check option include python into path). Then after updating all the packages I had to downgrade protobuf package to version 3.20 (check gauge.log). |
I upgraded to Gauge 1.1.7 from 1.1.1 then I encounter this error whenever I run a spec.
Gauge could not initialize. Install 'ms-python.python' extension for code insights.
To Reproduce
Run a spec

Expected behavior
Must be able to run specs
Screenshots

Versions:
gauge -v
Gauge version: 1.1.7
Commit Hash: 5d86b72
Plugins
html-report (4.0.12)
json-report (0.3.5)
python (0.3.14)
screenshot (0.0.1)
spectacle (0.1.4)
xml-report (0.2.3)
The text was updated successfully, but these errors were encountered: