Flow-Launcher/Flow.Launcher

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

オープン

#1,951 opened on 2023/03/03

 (9 件のコメント) (0 件のリアクション) (0 人の担当者)C# (598 件のフォーク)batch import
bughelp wantedkeep-fresh

Repository metrics

Stars
 (14,678 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Checks

  • 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\<user>\AppData\Local\Microsoft\WindowsApps, then select pythonw.exe
  3. Error: "pythonw The file cannot be accessed by the system."

Alternatively:

  1. In General -> Python Path, try to choose a folder via Select
  2. Navigate to the folder \Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.752.0_x64__qbz5n2kfra8p0\, then select pythonw.exe
  3. Close and restart Flow Launcher
  4. 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:

  1. In General -> Python Path, manually enter the path C:\Users\<user>\AppData\Local\Microsoft\WindowsApps\pythonw.exe
  2. Close and restart Flow Launcher
  3. 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

コントリビューターガイド