Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Store install of Python does not show up in status bar #5926

Closed
brettcannon opened this issue Jun 5, 2019 · 3 comments
Closed

Windows Store install of Python does not show up in status bar #5926

brettcannon opened this issue Jun 5, 2019 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug windows

Comments

@brettcannon
Copy link
Member

While the symlink we find and list in the interpreter list is C:\Users\brcan\AppData\Local\Microsoft\WindowsApps\python3.7, the actual executable is C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.7_3.7.1008.0_x64__qbz5n2kfra8p0\\python.exe which we don't have access to (triggers an EPERM when trying to query the interpreter for details because we directly execute the latter path and not the former which what we send to the terminal).

@brettcannon brettcannon added bug Issue identified by VS Code Team member as probable bug needs PR labels Jun 5, 2019
@DonJayamanne
Copy link

DonJayamanne commented Jun 12, 2019

Prescribed solution:

const pythonPathFromProcExec = this.procService.exec(....)
if (pythonPath.contains('Program Files\\WindowsApps') && this.pythonPath is a fully qualified path {
    // return existing value for pythoNPath
    return this.pythonPath;
}
return pythonPathFromProcExec;
  • And make sure not to list the Program Files\WindowsApps option.

@brettcannon
Copy link
Member Author

And make sure not to list the Program Files\WindowsApps option.

@karrtikr
Copy link

validated

@ghost ghost removed the needs PR label Sep 19, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Sep 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug windows
Projects
None yet
Development

No branches or pull requests

3 participants