MichielvanBeers / Flow.Launcher.Plugin.ChatGPT

MIT License
37 stars 5 forks source link

error #13

Closed yudadabing closed 1 year ago

yudadabing commented 1 year ago

Flow Launcher version: 1.13.0 OS Version: Microsoft Windows NT 10.0.22624.0 IntPtr Length: 8 x64: True

Python Path: C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\pythonw.exe Node Path: Date: 03/31/2023 10:38:02 Exception: ChatGPT Exception: Websites: https://github.com/MichielvanBeers/Flow.Launcher.Plugin.ChatGPT Author: MichielvanBeers Version: 1.1.0 Flow.Launcher.Core.ExternalPlugins.FlowPluginException: Traceback (most recent call last): File "C:\Users\yudadabing\AppData\Roaming\FlowLauncher\Plugins\ChatGPT-1.1.0\main.py", line 11, in from plugin.main import ChatGPT File "C:\Users\yudadabing\AppData\Roaming\FlowLauncher\Plugins\ChatGPT-1.1.0\plugin\main.py", line 7, in from flox import Flox # noqa: E402 File "C:\Users\yudadabing\AppData\Roaming\FlowLauncher\Plugins\ChatGPT-1.1.0\lib\flox__init__.py", line 13, in from functools import wraps, cached_property ImportError: cannot import name 'cached_property'

---> System.IO.InvalidDataException: Traceback (most recent call last): File "C:\Users\yudadabing\AppData\Roaming\FlowLauncher\Plugins\ChatGPT-1.1.0\main.py", line 11, in from plugin.main import ChatGPT File "C:\Users\yudadabing\AppData\Roaming\FlowLauncher\Plugins\ChatGPT-1.1.0\plugin\main.py", line 7, in from flox import Flox # noqa: E402 File "C:\Users\yudadabing\AppData\Roaming\FlowLauncher\Plugins\ChatGPT-1.1.0\lib\flox__init__.py", line 13, in from functools import wraps, cached_property ImportError: cannot import name 'cached_property'

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 811 --- End of stack trace from previous location --- at Flow.Launcher.ViewModel.MainViewModel.QueryResults() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 785 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 1 year ago

Thanks for the feedback! Are you running the standalone version of Flow Launcher? And if so, how did you install the plugin?

LLLLLC commented 1 year ago

Tried two methods. First method: installed according to the steps in README.md. Second method: download the zip file from your repository and unzip it to C:\Users\myusername\AppData\Local\FlowLauncher\app-1.14.0\Plugins\Flow.Launcher.Plugin.ChatGPT This error is reported for all.

MichielvanBeers commented 1 year ago

Allright, thanks for the input. I'll do some more research in that case.

MichielvanBeers commented 1 year ago

@yudadabing it looks like the 'cached_property' is not supported in Python 3.6, which you are using. Since the error is from a library I'm using and thus cannot directly control, could you upgrade to Python 3.8 or higher to see if that resolves the issue?

MichielvanBeers commented 1 year ago

Marking this issue as stale as there hasn't been any activity on this in a while. Please reopen if you need additional help. Thanks for your contribution!