Fermiz / Flow.Launcher.Snippets

Snippets for Flow Launcher
MIT License
5 stars 2 forks source link

Snippets: Failed to respond! #10

Open FrostyNick opened 7 months ago

FrostyNick commented 7 months ago

Not sure why the error is happening (possibly Python 3.11.6 is incompatible?). This is the exception message:

Flow Launcher version: 1.17.1 OS Version: 22621.3155 IntPtr Length: 8 x64: True

Python Path: C:\Users\fight\scoop\apps\python311\current\pythonw.exe Node Path: C:\Users\fight\scoop\apps\nodejs\current\node.exe Date: 03/02/2024 16:18:46 Exception: Snippets Exception: Websites: https://github.com/Fermiz/Flow.Launcher.Snippets Author: Fermi Shuangqi Li Version: 1.1.1 Flow.Launcher.Core.ExternalPlugins.FlowPluginException: Traceback (most recent call last): File "C:\Users\fight\scoop\apps\flow-launcher\current\app-1.17.1\UserData\Plugins\Snippets-1.1.1\plugin\snippets.py", line 66, in query value = getValue(self.dbName, query.strip()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\fight\scoop\apps\flow-launcher\current\app-1.17.1\UserData\Plugins\Snippets-1.1.1\plugin\snippets.py", line 19, in getValue cursor.execute("SELECT value FROM snippets WHERE key=?", (key,)) sqlite3.OperationalError: no such table: snippets

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\fight\scoop\apps\flow-launcher\current\app-1.17.1\UserData\Plugins\Snippets-1.1.1\main.py", line 36, in Snippets(dbName=dbName) File "C:\Users\fight\scoop\apps\flow-launcher\current\app-1.17.1\UserData\Plugins\Snippets-1.1.1\plugin\snippets.py", line 51, in init super().init() File "C:\Users\fight\scoop\apps\flow-launcher\current\app-1.17.1\UserData\Plugins\Snippets-1.1.1\lib\flowlauncher\FlowLauncher.py", line 33, in init results = request_method(*request_parameters) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\fight\scoop\apps\flow-launcher\current\app-1.17.1\UserData\Plugins\Snippets-1.1.1\plugin\snippets.py", line 87, in query print('Error opening %s: %s' % (value.filename, value.strerror)) ^^^^^^^^^^^^^^ AttributeError: 'tuple' object has no attribute 'filename'

---> System.IO.InvalidDataException: Traceback (most recent call last): File "C:\Users\fight\scoop\apps\flow-launcher\current\app-1.17.1\UserData\Plugins\Snippets-1.1.1\plugin\snippets.py", line 66, in query value = getValue(self.dbName, query.strip()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\fight\scoop\apps\flow-launcher\current\app-1.17.1\UserData\Plugins\Snippets-1.1.1\plugin\snippets.py", line 19, in getValue cursor.execute("SELECT value FROM snippets WHERE key=?", (key,)) sqlite3.OperationalError: no such table: snippets

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\fight\scoop\apps\flow-launcher\current\app-1.17.1\UserData\Plugins\Snippets-1.1.1\main.py", line 36, in Snippets(dbName=dbName) File "C:\Users\fight\scoop\apps\flow-launcher\current\app-1.17.1\UserData\Plugins\Snippets-1.1.1\plugin\snippets.py", line 51, in init super().init() File "C:\Users\fight\scoop\apps\flow-launcher\current\app-1.17.1\UserData\Plugins\Snippets-1.1.1\lib\flowlauncher\FlowLauncher.py", line 33, in init results = request_method(*request_parameters) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\fight\scoop\apps\flow-launcher\current\app-1.17.1\UserData\Plugins\Snippets-1.1.1\plugin\snippets.py", line 87, in query print('Error opening %s: %s' % (value.filename, value.strerror)) ^^^^^^^^^^^^^^ AttributeError: 'tuple' object has no attribute 'filename'

at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 243 at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 248 at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 261 at Flow.Launcher.Core.Plugin.PluginManager.<>cDisplayClass23_0.<b0>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 196 --- 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 230 --- End of inner exception stack trace --- at Flow.Launcher.Core.Plugin.PluginManager.<>cDisplayClass23_1.b1(ActionContext ) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 224 at Flow.Launcher.Plugin.Result.ExecuteAsync(ActionContext context) in //Flow.Launcher.Plugin/Result.cs:line 221 at Flow.Launcher.ViewModel.MainViewModel.OpenResultAsync(String index) in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 294 at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask) 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)