Flow-Launcher / Flow-Launcher/Flow.Launcher

BUG: FlowLauncher doesn't recognize Python if installed via MS Store

Open
#1,951 9 comments 0 reactions 0 assignees View on GitHub
bug help wanted keep-fresh
Dominant language
C#
Stars
15.6k
Forks
644
Avg merge
16h 51m
Merged PRs (30d)
3

Description

### Checks

- [X] I have checked that this issue has not already been reported.

### Problem Description

I installed Python 3.11 on Windows 11 via MS Store, then tried to add it to my Python Path in Flow Launcher; several attempts caused errors, until I finally found a workaround.

### To Reproduce

1. In General -> Python Path, try to choose a folder via Select
2. Navigate to the folder `C:\Users\\AppData\Local\Microsoft\WindowsApps`, then select pythonw.exe
3. Error: "pythonw The file cannot be accessed by the system."

Alternatively:

4. In General -> Python Path, try to choose a folder via Select
5. Navigate to the folder `\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.752.0_x64__qbz5n2kfra8p0\`, then select pythonw.exe
6. Close and restart Flow Launcher
7. Try to use a plugin based on Python -> Flow Launcher throws an error message indicating it thinks that the error lies with the Python plugin, rather than Flow Launcher itself. But the error itself is just an Access Denied error: "Flow.Launcher.Core.ExternalPlugins.FlowPluginException: An error occurred trying to start process 'C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.752.0_x64__qbz5n2kfra8p0\pythonw.exe'"

Workaround:

9. In General -> Python Path, manually enter the path `C:\Users\\AppData\Local\Microsoft\WindowsApps\pythonw.exe`
10. Close and restart Flow Launcher
11. Try to use a plugin based on Python -> it works

Side note to this workaround: entering the path "`%LOCALAPPDATA%\Microsoft\WindowsApps\pythonw.exe`" somehow does *not* work; on restart, Flow Launcher thinks no Python path is set and asks me to set a Python path via the dialog from step 1, which does not work.

### Screenshots

_No response_

### Flow Launcher Version

1.14.0

### Windows Build Number

10.0.22621.1265

### Error Log

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.