Flow.Launcher icon indicating copy to clipboard operation
Flow.Launcher copied to clipboard

Failed to warn incorrect python path

Open Jessi810 opened this issue 3 years ago • 7 comments

General Converter: https://github.com/deefrawley/Flow.Launcher.Plugin.GenConvert

2022-08-23.txt

Flow Launcher version: 1.9.4 OS Version: Microsoft Windows NT 10.0.19044.0 IntPtr Length: 8 x64: True

Python Path: Date: 08/23/2022 21:24:53 Exception: System.ComponentModel.Win32Exception (2): The system cannot find the file specified. at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 247 at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 322 at Flow.Launcher.Core.Plugin.PluginManager.<>c__DisplayClass22_0.<<QueryForPluginAsync>b__0>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 192 --- End of stack trace from previous location --- at Flow.Launcher.Infrastructure.Stopwatch.DebugAsync(String message, Func`1 action) in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Stopwatch.cs:line 34 at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 191 at Flow.Launcher.ViewModel.MainViewModel.<>c__DisplayClass137_0.<<QueryResults>g__QueryTask|2>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 613 --- End of stack trace from previous location --- at Flow.Launcher.ViewModel.MainViewModel.QueryResults() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 587 at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_0(Object state) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Jessi810 avatar Aug 23 '22 13:08 Jessi810

Similar to #1342

taooceros avatar Aug 23 '22 21:08 taooceros

Hi Jess. Are you using an existing Python install or did you let Flow install python the first time you installed the plugin?

deefrawley avatar Aug 24 '22 02:08 deefrawley

Existing Python installation.

Jessi810 avatar Aug 25 '22 13:08 Jessi810

Existing Python installation.

Could you share the setting and your python version? I think the error is because flow cannot find specific python executable.

taooceros avatar Aug 25 '22 23:08 taooceros

I fixed it already. You are right, the Python path I had doesn't have the exe files. And it was using this path for my Python: C:\Users<user>\AppData\Local\Programs\Python\Python310

Jessi810 avatar Aug 26 '22 17:08 Jessi810

Perhaps we should display a more constructive error message in these cases?

Garulf avatar Aug 26 '22 17:08 Garulf

Perhaps we should display a more constructive error message in these cases?

Yeah good idea, let's add a fix to check for exe during python path selection.

jjw24 avatar Aug 26 '22 22:08 jjw24

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Oct 11 '22 02:10 github-actions[bot]

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Nov 26 '22 02:11 github-actions[bot]

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Jan 12 '23 02:01 github-actions[bot]

Fixed and available in current release.

jjw24 avatar Jan 15 '23 20:01 jjw24