MichielvanBeers / Flow.Launcher.Plugin.ChatGPT

MIT License
37 stars 5 forks source link

Fail to Init Plugins (ChatGPT) #45

Closed VuSinatra closed 8 months ago

VuSinatra commented 10 months ago

12:58:15.8542+07:00 - INFO - App.OnStartup - Begin Flow Launcher startup ---------------------------------------------------- 12:58:15.8570+07:00 - INFO - App.OnStartup - Runtime info: Flow Launcher version: 1.16.1 OS Version: 22621.2134 IntPtr Length: 8 x64: True 12:58:17.5589+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <63ms> 12:58:17.5589+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <65ms> 12:58:17.5589+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <53ms> 12:58:17.5589+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <52ms> 12:58:17.5701+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <77ms> 12:58:17.5919+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <139ms> 12:58:17.5919+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <122ms> 12:58:17.6272+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <182ms> 12:58:17.7226+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <303ms> 12:58:17.7226+07:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://fastly.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 12:58:17.7318+07:00 - INFO - Flow.Launcher.Plugin.Program.Main - Preload programs cost <140ms> 12:58:17.7318+07:00 - INFO - Flow.Launcher.Plugin.Program.Main - Number of preload win32 programs <177> 12:58:17.7318+07:00 - INFO - Flow.Launcher.Plugin.Program.Main - Number of preload uwps <44> 12:58:17.7728+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <268ms> 12:58:17.7924+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <385ms> 12:58:17.9442+07:00 - INFO - ImageLoader.Initialize - Preload images cost <2008ms> 12:58:17.9442+07:00 - INFO - ImageLoader.Initialize - Number of preload images is <70>, Images Number: 70, Unique Items 38 12:58:18.0319+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <553ms> 12:58:18.0577+07:00 - ERROR - PluginManager.InitializePluginsAsync - Fail to Init plugin: ChatGPT EXCEPTION OCCURS: System.Text.Json.JsonException: '0x00' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0. ---> System.Text.Json.JsonReaderException: '0x00' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0. at void System.Text.Json.ThrowHelper.ThrowJsonReaderException(ref Utf8JsonReader json, ExceptionResource resource, byte nextByte, ReadOnlySpan bytes) at bool System.Text.Json.Utf8JsonReader.ConsumeValue(byte marker) at bool System.Text.Json.Utf8JsonReader.ReadFirstToken(byte first) at bool System.Text.Json.Utf8JsonReader.ReadSingleSegment() at bool System.Text.Json.Utf8JsonReader.Read() at T System.Text.Json.Serialization.JsonConverter.ReadCore(ref Utf8JsonReader reader, JsonSerializerOptions options, ref ReadStack state) --- End of inner exception stack trace --- at void System.Text.Json.ThrowHelper.ReThrowWithPath(ref ReadStack state, JsonReaderException ex) at T System.Text.Json.Serialization.JsonConverter.ReadCore(ref Utf8JsonReader reader, JsonSerializerOptions options, ref ReadStack state) at TValue System.Text.Json.JsonSerializer.ContinueDeserialize(ref ReadBufferState bufferState, ref JsonReaderState jsonReaderState, ref ReadStack readStack, JsonTypeInfo jsonTypeInfo) at async ValueTask System.Text.Json.JsonSerializer.ReadFromStreamAsync(Stream utf8Json, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at async Task Flow.Launcher.Core.Plugin.JsonRPCPlugin.InitSettingAsync() x 2 in C:/projects/flow-launcher/Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs:line 323 at async Task Flow.Launcher.Core.Plugin.JsonRPCPlugin.InitAsync(PluginInitContext context) in C:/projects/flow-launcher/Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs:line 345 at async Task Flow.Launcher.Core.Plugin.PythonPlugin.InitAsync(PluginInitContext context) in C:/projects/flow-launcher/Flow.Launcher.Core/Plugin/PythonPlugin.cs:line 57 at async Task Flow.Launcher.Infrastructure.Stopwatch.DebugAsync(string message, Func action) in C:/projects/flow-launcher/Flow.Launcher.Infrastructure/Stopwatch.cs:line 34 at async Task Flow.Launcher.Core.Plugin.PluginManager.InitializePluginsAsync(IPublicAPI api)+(?) => { } in C:/projects/flow-launcher/Flow.Launcher.Core/Plugin/PluginManager.cs:line 125

12:58:18.2548+07:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://gcore.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 12:58:18.2548+07:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://cdn.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 12:58:18.2548+07:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://raw.githubusercontent.com/Flow-Launcher/Flow.Launcher.PluginsManifest/plugin_api_v2/plugins.json 12:58:18.6370+07:00 - INFO - CommunityPluginSource.FetchAsync - Loaded 117 plugins from https://cdn.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 12:58:18.6430+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <1189ms> 12:58:19.3799+07:00 - INFO - App.OnStartup - Dependencies Info: Python Path: C:\Users\Asus\AppData\Roaming\FlowLauncher\Environments\Python\PythonEmbeddable-v3.8.9\pythonw.exe Node Path: 12:58:19.9722+07:00 - INFO - App.OnStartup - End Flow Launcher startup ----------------------------------------------------
12:58:19.9722+07:00 - INFO - App.OnStartup - Startup cost <4493ms> 12:58:21.6717+07:00 - INFO - Updater.UpdateApp - Future Release <{ "SHA1": "375B438F6693203DD599DDE0117294EF3AA743A0", "BaseUrl": null, "Filename": "FlowLauncher-1.16.1-full.nupkg", "Query": null, "Filesize": 93451616, "IsDelta": false, "StagingPercentage": null, "EntryAsString": "375B438F6693203DD599DDE0117294EF3AA743A0 FlowLauncher-1.16.1-full.nupkg 93451616", "Version": { "Version": "1.16.1.0", "SpecialVersion": "" }, "PackageName": "FlowLauncher" }> 12:59:13.9558+07:00 - INFO - App.OnStartup - Begin Flow Launcher startup ---------------------------------------------------- 12:59:13.9558+07:00 - INFO - App.OnStartup - Runtime info: Flow Launcher version: 1.16.1 OS Version: 22621.2134 IntPtr Length: 8 x64: True 12:59:15.2675+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <50ms> 12:59:15.2675+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <34ms> 12:59:15.2675+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <40ms> 12:59:15.2675+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <36ms> 12:59:15.2675+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <48ms> 12:59:15.2852+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <85ms> 12:59:15.2852+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <99ms> 12:59:15.3009+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <124ms> 12:59:15.4261+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <253ms> 12:59:15.5355+07:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://fastly.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 12:59:15.5355+07:00 - INFO - Flow.Launcher.Plugin.Program.Main - Preload programs cost <250ms> 12:59:15.5355+07:00 - INFO - Flow.Launcher.Plugin.Program.Main - Number of preload win32 programs <177> 12:59:15.5355+07:00 - INFO - Flow.Launcher.Plugin.Program.Main - Number of preload uwps <44> 12:59:15.5797+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <408ms> 12:59:15.5797+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <409ms> 12:59:15.6951+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <467ms> 12:59:15.7142+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <506ms> 12:59:15.7264+07:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://gcore.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 12:59:15.7264+07:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://cdn.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 12:59:15.7264+07:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://raw.githubusercontent.com/Flow-Launcher/Flow.Launcher.PluginsManifest/plugin_api_v2/plugins.json 12:59:15.7320+07:00 - ERROR - PluginManager.InitializePluginsAsync - Fail to Init plugin: ChatGPT EXCEPTION OCCURS: System.Text.Json.JsonException: '0x00' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0. ---> System.Text.Json.JsonReaderException: '0x00' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0. at void System.Text.Json.ThrowHelper.ThrowJsonReaderException(ref Utf8JsonReader json, ExceptionResource resource, byte nextByte, ReadOnlySpan bytes) at bool System.Text.Json.Utf8JsonReader.ConsumeValue(byte marker) at bool System.Text.Json.Utf8JsonReader.ReadFirstToken(byte first) at bool System.Text.Json.Utf8JsonReader.ReadSingleSegment() at bool System.Text.Json.Utf8JsonReader.Read() at T System.Text.Json.Serialization.JsonConverter.ReadCore(ref Utf8JsonReader reader, JsonSerializerOptions options, ref ReadStack state) --- End of inner exception stack trace --- at void System.Text.Json.ThrowHelper.ReThrowWithPath(ref ReadStack state, JsonReaderException ex) at T System.Text.Json.Serialization.JsonConverter.ReadCore(ref Utf8JsonReader reader, JsonSerializerOptions options, ref ReadStack state) at TValue System.Text.Json.JsonSerializer.ContinueDeserialize(ref ReadBufferState bufferState, ref JsonReaderState jsonReaderState, ref ReadStack readStack, JsonTypeInfo jsonTypeInfo) at async ValueTask System.Text.Json.JsonSerializer.ReadFromStreamAsync(Stream utf8Json, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at async Task Flow.Launcher.Core.Plugin.JsonRPCPlugin.InitSettingAsync() x 2 in C:/projects/flow-launcher/Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs:line 323 at async Task Flow.Launcher.Core.Plugin.JsonRPCPlugin.InitAsync(PluginInitContext context) in C:/projects/flow-launcher/Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs:line 345 at async Task Flow.Launcher.Core.Plugin.PythonPlugin.InitAsync(PluginInitContext context) in C:/projects/flow-launcher/Flow.Launcher.Core/Plugin/PythonPlugin.cs:line 57 at async Task Flow.Launcher.Infrastructure.Stopwatch.DebugAsync(string message, Func action) in C:/projects/flow-launcher/Flow.Launcher.Infrastructure/Stopwatch.cs:line 34 at async Task Flow.Launcher.Core.Plugin.PluginManager.InitializePluginsAsync(IPublicAPI api)+(?) => { } in C:/projects/flow-launcher/Flow.Launcher.Core/Plugin/PluginManager.cs:line 125

12:59:15.7599+07:00 - INFO - ImageLoader.Initialize - Preload images cost <1749ms> 12:59:15.7599+07:00 - INFO - ImageLoader.Initialize - Number of preload images is <83>, Images Number: 83, Unique Items 46 12:59:15.9377+07:00 - INFO - CommunityPluginSource.FetchAsync - Loaded 118 plugins from https://fastly.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 12:59:15.9377+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <745ms> 12:59:16.2236+07:00 - INFO - App.OnStartup - Dependencies Info: Python Path: C:\Users\Asus\AppData\Roaming\FlowLauncher\Environments\Python\PythonEmbeddable-v3.8.9\pythonw.exe Node Path: 12:59:16.5125+07:00 - INFO - App.OnStartup - End Flow Launcher startup ----------------------------------------------------
12:59:16.5130+07:00 - INFO - App.OnStartup - Startup cost <2849ms> 12:59:18.1621+07:00 - INFO - Updater.UpdateApp - Future Release <{ "SHA1": "375B438F6693203DD599DDE0117294EF3AA743A0", "BaseUrl": null, "Filename": "FlowLauncher-1.16.1-full.nupkg", "Query": null, "Filesize": 93451616, "IsDelta": false, "StagingPercentage": null, "EntryAsString": "375B438F6693203DD599DDE0117294EF3AA743A0 FlowLauncher-1.16.1-full.nupkg 93451616", "Version": { "Version": "1.16.1.0", "SpecialVersion": "" }, "PackageName": "FlowLauncher" }> 13:00:38.9093+07:00 - INFO - App.OnStartup - Begin Flow Launcher startup ---------------------------------------------------- 13:00:38.9093+07:00 - INFO - App.OnStartup - Runtime info: Flow Launcher version: 1.16.1 OS Version: 22621.2134 IntPtr Length: 8 x64: True 13:00:39.2154+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <4ms> 13:00:39.2154+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <17ms> 13:00:39.2154+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <4ms> 13:00:39.2154+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <6ms> 13:00:39.2154+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <5ms> 13:00:39.2304+07:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://fastly.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 13:00:39.2338+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <25ms> 13:00:39.2338+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <26ms> 13:00:39.2338+07:00 - INFO - Flow.Launcher.Plugin.Program.Main - Preload programs cost <7ms> 13:00:39.2338+07:00 - INFO - Flow.Launcher.Plugin.Program.Main - Number of preload win32 programs <177> 13:00:39.2338+07:00 - INFO - Flow.Launcher.Plugin.Program.Main - Number of preload uwps <44> 13:00:39.2667+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <57ms> 13:00:39.2667+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <62ms> 13:00:39.2667+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <68ms> 13:00:39.2965+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <90ms> 13:00:39.2965+07:00 - ERROR - PluginManager.InitializePluginsAsync - Fail to Init plugin: ChatGPT EXCEPTION OCCURS: System.Text.Json.JsonException: '0x00' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0. ---> System.Text.Json.JsonReaderException: '0x00' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0. at void System.Text.Json.ThrowHelper.ThrowJsonReaderException(ref Utf8JsonReader json, ExceptionResource resource, byte nextByte, ReadOnlySpan bytes) at bool System.Text.Json.Utf8JsonReader.ConsumeValue(byte marker) at bool System.Text.Json.Utf8JsonReader.ReadFirstToken(byte first) at bool System.Text.Json.Utf8JsonReader.ReadSingleSegment() at bool System.Text.Json.Utf8JsonReader.Read() at T System.Text.Json.Serialization.JsonConverter.ReadCore(ref Utf8JsonReader reader, JsonSerializerOptions options, ref ReadStack state) --- End of inner exception stack trace --- at void System.Text.Json.ThrowHelper.ReThrowWithPath(ref ReadStack state, JsonReaderException ex) at T System.Text.Json.Serialization.JsonConverter.ReadCore(ref Utf8JsonReader reader, JsonSerializerOptions options, ref ReadStack state) at TValue System.Text.Json.JsonSerializer.ContinueDeserialize(ref ReadBufferState bufferState, ref JsonReaderState jsonReaderState, ref ReadStack readStack, JsonTypeInfo jsonTypeInfo) at async ValueTask System.Text.Json.JsonSerializer.ReadFromStreamAsync(Stream utf8Json, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at async Task Flow.Launcher.Core.Plugin.JsonRPCPlugin.InitSettingAsync() x 2 in C:/projects/flow-launcher/Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs:line 323 at async Task Flow.Launcher.Core.Plugin.JsonRPCPlugin.InitAsync(PluginInitContext context) in C:/projects/flow-launcher/Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs:line 345 at async Task Flow.Launcher.Core.Plugin.PythonPlugin.InitAsync(PluginInitContext context) in C:/projects/flow-launcher/Flow.Launcher.Core/Plugin/PythonPlugin.cs:line 57 at async Task Flow.Launcher.Infrastructure.Stopwatch.DebugAsync(string message, Func action) in C:/projects/flow-launcher/Flow.Launcher.Infrastructure/Stopwatch.cs:line 34 at async Task Flow.Launcher.Core.Plugin.PluginManager.InitializePluginsAsync(IPublicAPI api)+(?) => { } in C:/projects/flow-launcher/Flow.Launcher.Core/Plugin/PluginManager.cs:line 125

13:00:39.2965+07:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://gcore.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 13:00:39.2965+07:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://cdn.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 13:00:39.2965+07:00 - INFO - CommunityPluginSource.FetchAsync - Loading plugins from https://raw.githubusercontent.com/Flow-Launcher/Flow.Launcher.PluginsManifest/plugin_api_v2/plugins.json 13:00:39.3140+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <109ms> 13:00:39.7591+07:00 - INFO - ImageLoader.Initialize - Preload images cost <800ms> 13:00:39.7591+07:00 - INFO - ImageLoader.Initialize - Number of preload images is <53>, Images Number: 53, Unique Items 33 13:00:41.0692+07:00 - INFO - CommunityPluginSource.FetchAsync - Loaded 118 plugins from https://fastly.jsdelivr.net/gh/Flow-Launcher/Flow.Launcher.PluginsManifest@plugin_api_v2/plugins.json 13:00:41.0692+07:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <1864ms> 13:00:41.3840+07:00 - INFO - App.OnStartup - Dependencies Info: Python Path: C:\Users\Asus\AppData\Roaming\FlowLauncher\Environments\Python\PythonEmbeddable-v3.8.9\pythonw.exe Node Path: 13:00:41.6662+07:00 - INFO - App.OnStartup - End Flow Launcher startup ----------------------------------------------------
13:00:41.6662+07:00 - INFO - App.OnStartup - Startup cost <2853ms> 13:00:43.4407+07:00 - INFO - Updater.UpdateApp - Future Release <{ "SHA1": "375B438F6693203DD599DDE0117294EF3AA743A0", "BaseUrl": null, "Filename": "FlowLauncher-1.16.1-full.nupkg", "Query": null, "Filesize": 93451616, "IsDelta": false, "StagingPercentage": null, "EntryAsString": "375B438F6693203DD599DDE0117294EF3AA743A0 FlowLauncher-1.16.1-full.nupkg 93451616", "Version": { "Version": "1.16.1.0", "SpecialVersion": "" }, "PackageName": "FlowLauncher" }> 13:01:43.0823+07:00 - FATAL - UnHandledException -

Exception

System.IO.InvalidDataException: Traceback (most recent call last):
  File "C:\Users\Asus\AppData\Roaming\FlowLauncher\Plugins\ChatGPT-1.1.2\main.py", line 11, in <module>
    from plugin.main import ChatGPT
  File "C:\Users\Asus\AppData\Roaming\FlowLauncher\Plugins\ChatGPT-1.1.2\plugin\main.py", line 7, in <module>
    from flox import Flox  # noqa: E402
  File "C:\Users\Asus\AppData\Roaming\FlowLauncher\Plugins\ChatGPT-1.1.2\lib\flox\__init__.py", line 51, in <module>
    raise FileNotFoundError(LAUNCHER_NOT_FOUND_MSG)
FileNotFoundError: Unable to locate Launcher directory
Current working directory: C:\Users\Asus\AppData\Local\FlowLauncher\app-1.16.1

   Source: Flow.Launcher.Core
   TargetAssembly: Flow.Launcher.Core, Version=1.16.1.0, Culture=neutral, PublicKeyToken=null
   TargetModule: Flow.Launcher.Core.dll
   TargetSite: Void MoveNext()
   at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 291
   at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 296
   at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 311
   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 194
--- 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 40
   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 216

Flow.Launcher.Core.ExternalPlugins.FlowPluginException: Traceback (most recent call last):
  File "C:\Users\Asus\AppData\Roaming\FlowLauncher\Plugins\ChatGPT-1.1.2\main.py", line 11, in <module>
    from plugin.main import ChatGPT
  File "C:\Users\Asus\AppData\Roaming\FlowLauncher\Plugins\ChatGPT-1.1.2\plugin\main.py", line 7, in <module>
    from flox import Flox  # noqa: E402
  File "C:\Users\Asus\AppData\Roaming\FlowLauncher\Plugins\ChatGPT-1.1.2\lib\flox\__init__.py", line 51, in <module>
    raise FileNotFoundError(LAUNCHER_NOT_FOUND_MSG)
FileNotFoundError: Unable to locate Launcher directory
Current working directory: C:\Users\Asus\AppData\Local\FlowLauncher\app-1.16.1

   Source: Flow.Launcher.Core
   TargetAssembly: Flow.Launcher.Core, Version=1.16.1.0, Culture=neutral, PublicKeyToken=null
   TargetModule: Flow.Launcher.Core.dll
   TargetSite: Void MoveNext()
   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 216
   at Flow.Launcher.ViewModel.MainViewModel.<>c__DisplayClass139_0.<<QueryResults>g__QueryTask|2>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 849
--- End of stack trace from previous location ---
   at Flow.Launcher.ViewModel.MainViewModel.QueryResults(Boolean isReQuery) in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 850
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_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)

Environment

Assemblies - Flow.Launcher

My Python version is Python 3.8.9 (tags/v3.8.9:a743f81, Apr 6 2021, 14:02:34) [MSC v.1928 64 bit (AMD64)] on win32 my file path is C:\Users\Asus\AppData\Roaming\FlowLauncher\Environments\Python\PythonEmbeddable-v3.8.9 and I have API code for it too

MichielvanBeers commented 10 months ago

Hi @VuSinatra,

Thanks for the feedback. I'm trying to see what is going on, but I am unsure. Check question: are you able to run any other plugin? For example the Python Hello World plugin?

VuSinatra commented 10 months ago

@MichielvanBeers I happened to use Python Hello World completely fine, for the ChatGPT I tried to reinstall it but it still doesn't work

Please open new issue in: https://github.com/MichielvanBeers/Flow.Launcher.Plugin.ChatGPT/issues

  1. upload log file: C:\Users\Asus\AppData\Roaming\FlowLauncher\Logs\1.16.1\2023-09-11.txt
  2. copy below exception message

Flow Launcher version: 1.16.1 OS Version: 22621.2134 IntPtr Length: 8 x64: True

Python Path: C:\Users\Asus\AppData\Roaming\FlowLauncher\Environments\Python\PythonEmbeddable-v3.8.9\pythonw.exe Node Path: Date: 09/11/2023 19:05:57 Exception: ChatGPT Exception: Websites: https://github.com/MichielvanBeers/Flow.Launcher.Plugin.ChatGPT Author: MichielvanBeers Version: 1.1.2 Flow.Launcher.Core.ExternalPlugins.FlowPluginException: Traceback (most recent call last): File "C:\Users\Asus\AppData\Roaming\FlowLauncher\Plugins\ChatGPT-1.1.2\main.py", line 11, in from plugin.main import ChatGPT File "C:\Users\Asus\AppData\Roaming\FlowLauncher\Plugins\ChatGPT-1.1.2\plugin\main.py", line 7, in from flox import Flox # noqa: E402 File "C:\Users\Asus\AppData\Roaming\FlowLauncher\Plugins\ChatGPT-1.1.2\lib\flox__init__.py", line 51, in raise FileNotFoundError(LAUNCHER_NOT_FOUND_MSG) FileNotFoundError: Unable to locate Launcher directory Current working directory: C:\Users\Asus\AppData\Local\FlowLauncher\app-1.16.1

---> System.IO.InvalidDataException: Traceback (most recent call last): File "C:\Users\Asus\AppData\Roaming\FlowLauncher\Plugins\ChatGPT-1.1.2\main.py", line 11, in from plugin.main import ChatGPT File "C:\Users\Asus\AppData\Roaming\FlowLauncher\Plugins\ChatGPT-1.1.2\plugin\main.py", line 7, in from flox import Flox # noqa: E402 File "C:\Users\Asus\AppData\Roaming\FlowLauncher\Plugins\ChatGPT-1.1.2\lib\flox__init__.py", line 51, in raise FileNotFoundError(LAUNCHER_NOT_FOUND_MSG) FileNotFoundError: Unable to locate Launcher directory Current working directory: C:\Users\Asus\AppData\Local\FlowLauncher\app-1.16.1

at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 291 at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 296 at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 311 at Flow.Launcher.Core.Plugin.PluginManager.<>cDisplayClass22_0.<b0>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 194 --- 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 40 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 216 --- End of inner exception stack trace --- 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 216 at Flow.Launcher.ViewModel.MainViewModel.<>cDisplayClass139_0.<gQueryTask|2>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 849 --- End of stack trace from previous location --- at Flow.Launcher.ViewModel.MainViewModel.QueryResults(Boolean isReQuery) in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 813 at System.Threading.Tasks.Task.<>c.b__128_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)

MichielvanBeers commented 10 months ago

Thanks for getting back to me @VuSinatra. I'm still researching this. I do notice that this might not be related to my plugin specifically since there are some issues reported with other Plugins as well (see this issue on the Flow Launcher Github). I'll let you know when I have more info.

MichielvanBeers commented 8 months ago

Hi @VuSinatra, not sure if this an issue for you, but I've read in this Github issue on the Flowlauncher Github, that removing the Settings.json and Restarting Flowlauncher might fix the issue.

VuSinatra commented 8 months ago

Hi @VuSinatra, not sure if this an issue for you, but I've read in this Github issue on the Flowlauncher Github, that removing the Settings.json and Restarting Flowlauncher might fix the issue.

thanks for the reply, and it works! i was checking the files when I restart flow launcher but I still the same Setting.json so I think it has to be something wrong with the code that conflict with flow launcher. But again thank you for your reply and solution, have a very nice day!