MichielvanBeers / Flow.Launcher.Plugin.ChatGPT

MIT License
37 stars 5 forks source link

Crashing after typing "ai" + spacebar #12

Closed Alessiop4m closed 1 year ago

Alessiop4m commented 1 year ago

EXCEPTION MESSAGE:

Flow Launcher version: 1.14.0 OS Version: Microsoft Windows NT 10.0.22000.0 IntPtr Length: 8 x64: True

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

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

at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 294 at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 299 at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 314 at Flow.Launcher.Core.Plugin.PluginManager.<>cDisplayClass22_0.<b0>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 191 --- 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 190 --- 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 210 at Flow.Launcher.ViewModel.MainViewModel.<>cDisplayClass135_0.<gQueryTask|2>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 829 --- End of stack trace from previous location --- at Flow.Launcher.ViewModel.MainViewModel.QueryResults() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 803 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)

LOG FILE:

09:03:29.0211+02:00 - INFO - App.OnStartup - Begin Flow Launcher startup ---------------------------------------------------- 09:03:29.0527+02:00 - INFO - App.OnStartup - Runtime info: Flow Launcher version: 1.14.0 OS Version: Microsoft Windows NT 10.0.22000.0 IntPtr Length: 8 x64: True 09:03:29.2155+02:00 - INFO - ImageLoader.Initialize - Preload images cost <12ms> 09:03:29.2155+02:00 - INFO - ImageLoader.Initialize - Number of preload images is <2>, Images Number: 2, Unique Items 2 09:03:34.6661+02:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <163ms> 09:03:34.6661+02:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <297ms> 09:03:34.6661+02:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <88ms> 09:03:34.6661+02:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <167ms> 09:03:34.6970+02:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <238ms> 09:03:34.6970+02:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <337ms> 09:03:34.7445+02:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <369ms> 09:03:34.8501+02:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <500ms> 09:03:34.8588+02:00 - INFO - Flow.Launcher.Plugin.Program.Main - Preload programs cost <153ms> 09:03:34.8588+02:00 - INFO - Flow.Launcher.Plugin.Program.Main - Number of preload win32 programs <106> 09:03:34.8588+02:00 - INFO - Flow.Launcher.Plugin.Program.Main - Number of preload uwps <49> 09:03:34.8845+02:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <329ms> 09:03:35.1434+02:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <476ms> 09:03:35.3284+02:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <897ms> 09:03:35.4330+02:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <1054ms> 09:03:35.4745+02:00 - INFO - PluginManager.InitializePlugins - Total init cost for is <998ms> 09:03:36.6361+02:00 - INFO - App.OnStartup - Dependencies Info: Python Path: C:\Users\AlessioLicheri\AppData\Roaming\FlowLauncher\Environments\Python\PythonEmbeddable-v3.8.9\pythonw.exe Node Path: 09:03:36.7977+02:00 - ERROR - - ------------- BEGIN Flow.Launcher.Plugin.Program exception ------------- 09:03:36.7977+02:00 - ERROR - - Exception full name: System.IO.FileNotFoundException Error status: KNOWN Class name: UWP Calling method: LogoPathFromUri Program path: C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe InnerException number: 1 Exception message: Unable to find the specified file. Exception error type: HResult -2147024894 Exception thrown in called method: Not available Possible interpretation of the error: Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge can't find logo uri for Assets\MicrosoftEdgeSquare44x44.png in package location (logo name or directory not found): C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe Possible resolution: Can be ignored and Flow Launcher should still continue, however the program may not be loaded 09:03:36.7977+02:00 - ERROR - - ------------- END Flow.Launcher.Plugin.Program exception ------------- 09:03:36.7977+02:00 - ERROR - - ------------- BEGIN Flow.Launcher.Plugin.Program exception ------------- 09:03:36.7977+02:00 - ERROR - - Exception full name: System.IO.FileNotFoundException Error status: KNOWN Class name: UWP Calling method: LogoPathFromUri Program path: C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe InnerException number: 1 Exception message: Unable to find the specified file. Exception error type: HResult -2147024894 Exception thrown in called method: Not available Possible interpretation of the error: Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge can't find logo uri for Assets\MicrosoftEdgeSquare44x44.png in package location (logo name or directory not found): C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe Possible resolution: Can be ignored and Flow Launcher should still continue, however the program may not be loaded 09:03:36.7977+02:00 - ERROR - - ------------- END Flow.Launcher.Plugin.Program exception ------------- 09:03:36.7977+02:00 - ERROR - - ------------- BEGIN Flow.Launcher.Plugin.Program exception ------------- 09:03:36.7977+02:00 - ERROR - - Exception full name: System.IO.FileNotFoundException Error status: KNOWN Class name: UWP Calling method: LogoPathFromUri Program path: C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe InnerException number: 1 Exception message: Unable to find the specified file. Exception error type: HResult -2147024894 Exception thrown in called method: Not available Possible interpretation of the error: Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge can't find logo uri for Assets\MicrosoftEdgeSquare44x44.png in package location (logo name or directory not found): C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe Possible resolution: Can be ignored and Flow Launcher should still continue, however the program may not be loaded 09:03:36.7977+02:00 - ERROR - - ------------- END Flow.Launcher.Plugin.Program exception ------------- 09:03:36.7977+02:00 - ERROR - - ------------- BEGIN Flow.Launcher.Plugin.Program exception ------------- 09:03:36.7977+02:00 - ERROR - - Exception full name: System.IO.FileNotFoundException Error status: KNOWN Class name: UWP Calling method: LogoPathFromUri Program path: C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe InnerException number: 1 Exception message: Unable to find the specified file. Exception error type: HResult -2147024894 Exception thrown in called method: Not available Possible interpretation of the error: Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge can't find logo uri for Assets\MicrosoftEdgeSquare44x44.png in package location (logo name or directory not found): C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe Possible resolution: Can be ignored and Flow Launcher should still continue, however the program may not be loaded 09:03:36.7977+02:00 - ERROR - - ------------- END Flow.Launcher.Plugin.Program exception ------------- 09:03:36.9714+02:00 - ERROR - - ------------- BEGIN Flow.Launcher.Plugin.Program exception ------------- 09:03:36.9714+02:00 - ERROR - - Exception full name: System.Runtime.InteropServices.COMException Error status: UNKNOWN Class name: IShellLinkW Calling method: retrieveTargetPath Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories\Windows Media Player.lnk InnerException number: 1 Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component. Exception error type: HResult -2147467259 Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32) Possible interpretation of the error: Error caused likely due to trying to get the description of the program Possible resolution: Not yet known 09:03:36.9714+02:00 - ERROR - - ------------- END Flow.Launcher.Plugin.Program exception ------------- 09:03:37.0806+02:00 - ERROR - - ------------- BEGIN Flow.Launcher.Plugin.Program exception ------------- 09:03:37.0806+02:00 - ERROR - - Exception full name: System.Runtime.InteropServices.COMException Error status: UNKNOWN Class name: IShellLinkW Calling method: retrieveTargetPath Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\ODBC Data Sources (32-bit).lnk InnerException number: 1 Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component. Exception error type: HResult -2147467259 Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32) Possible interpretation of the error: Error caused likely due to trying to get the description of the program Possible resolution: Not yet known 09:03:37.0806+02:00 - ERROR - - ------------- END Flow.Launcher.Plugin.Program exception ------------- 09:03:41.3636+02:00 - INFO - Flow.Launcher.Plugin.Program.Main - Win32Program index cost <4171ms> 09:03:41.5160+02:00 - INFO - PluginsManifest.UpdateManifestAsync - Fetched plugins from manifest repo 09:03:42.1380+02:00 - INFO - App.OnStartup - End Flow Launcher startup ----------------------------------------------------
09:03:42.1380+02:00 - INFO - App.OnStartup - Startup cost <11668ms> 09:03:42.2715+02:00 - INFO - Flow.Launcher.Plugin.Program.Main - UWPPRogram index cost <5073ms> 15:03:29.0955+02:00 - ERROR - - ------------- BEGIN Flow.Launcher.Plugin.Program exception ------------- 15:03:29.0955+02:00 - ERROR - - Exception full name: System.Runtime.InteropServices.COMException Error status: UNKNOWN Class name: IShellLinkW Calling method: retrieveTargetPath Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories\Windows Media Player.lnk InnerException number: 1 Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component. Exception error type: HResult -2147467259 Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32) Possible interpretation of the error: Error caused likely due to trying to get the description of the program Possible resolution: Not yet known 15:03:29.0955+02:00 - ERROR - - ------------- END Flow.Launcher.Plugin.Program exception ------------- 15:03:29.1346+02:00 - ERROR - - ------------- BEGIN Flow.Launcher.Plugin.Program exception ------------- 15:03:29.1346+02:00 - ERROR - - Exception full name: System.Runtime.InteropServices.COMException Error status: UNKNOWN Class name: IShellLinkW Calling method: retrieveTargetPath Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\ODBC Data Sources (32-bit).lnk InnerException number: 1 Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component. Exception error type: HResult -2147467259 Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32) Possible interpretation of the error: Error caused likely due to trying to get the description of the program Possible resolution: Not yet known 15:03:29.1346+02:00 - ERROR - - ------------- END Flow.Launcher.Plugin.Program exception ------------- 15:17:19.1592+02:00 - FATAL - UnHandledException -

Exception

System.IO.InvalidDataException: Traceback (most recent call last):
  File "C:\Users\AlessioLicheri\AppData\Local\FlowLauncher\app-1.14.0\Plugins\Flow.Launcher.Plugin.ChatGPT\main.py", line 11, in <module>
    from plugin.main import ChatGPT
  File "C:\Users\AlessioLicheri\AppData\Local\FlowLauncher\app-1.14.0\Plugins\Flow.Launcher.Plugin.ChatGPT\plugin\main.py", line 5, in <module>
    from flox import Flox  # noqa: E402
  File "C:\Users\AlessioLicheri\AppData\Local\FlowLauncher\app-1.14.0\Plugins\Flow.Launcher.Plugin.ChatGPT\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\AlessioLicheri\AppData\Local\FlowLauncher\app-1.14.0\Plugins\Flow.Launcher.Plugin.ChatGPT

   Source: Flow.Launcher.Core
   TargetAssembly: Flow.Launcher.Core, Version=1.14.0.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 294
   at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 299
   at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 314
   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 191
--- 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 190

Flow.Launcher.Core.ExternalPlugins.FlowPluginException: Traceback (most recent call last):
  File "C:\Users\AlessioLicheri\AppData\Local\FlowLauncher\app-1.14.0\Plugins\Flow.Launcher.Plugin.ChatGPT\main.py", line 11, in <module>
    from plugin.main import ChatGPT
  File "C:\Users\AlessioLicheri\AppData\Local\FlowLauncher\app-1.14.0\Plugins\Flow.Launcher.Plugin.ChatGPT\plugin\main.py", line 5, in <module>
    from flox import Flox  # noqa: E402
  File "C:\Users\AlessioLicheri\AppData\Local\FlowLauncher\app-1.14.0\Plugins\Flow.Launcher.Plugin.ChatGPT\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\AlessioLicheri\AppData\Local\FlowLauncher\app-1.14.0\Plugins\Flow.Launcher.Plugin.ChatGPT

   Source: Flow.Launcher.Core
   TargetAssembly: Flow.Launcher.Core, Version=1.14.0.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 210
   at Flow.Launcher.ViewModel.MainViewModel.<>c__DisplayClass135_0.<<QueryResults>g__QueryTask|2>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 829
--- End of stack trace from previous location ---
   at Flow.Launcher.ViewModel.MainViewModel.QueryResults() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 803
   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

Alessiop4m commented 1 year ago

Solved with new release