ivanipenburg / flow.launcher.plugin.googlecalendar Goto Github PK
View Code? Open in Web Editor NEWA plugin for Flow Launcher to see upcoming evens and add new events to Google Calendar.
License: MIT License
A plugin for Flow Launcher to see upcoming evens and add new events to Google Calendar.
License: MIT License
Hi there, how's it going.
Current Python version used by Flow is v3.8.9, we are looking to upgrade it to v3.11.4 in the upcoming release, in around a week's time.
This plugin has failed the v3.11.4 plugin test so thought I give you a heads up about this upgrade and see if this can be resolved. You can repro the error by using the pre-release version of flow here with your plugin: https://github.com/Flow-Launcher/Prereleases/releases.
Have you had a chance to implement Garulf's suggestion here #39?
2024-02-09.txt
Flow Launcher version: 1.17.1
OS Version: 22621.3007
IntPtr Length: 8
x64: True
Python Path: C:\Users\arthu\AppData\Roaming\FlowLauncher\Environments\Python\PythonEmbeddable-v3.11.4\pythonw.exe
Node Path:
Date: 02/09/2024 13:25:03
Exception:
Google Calendar Exception:
Websites: https://github.com/ivanipenburg/Flow.Launcher.Plugin.GoogleCalendar
Author: Ilja van Ipenburg
Version: 1.2.3
Flow.Launcher.Core.ExternalPlugins.FlowPluginException: Traceback (most recent call last):
File "C:\Users\arthu\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\main.py", line 9, in
from plugin.main import GoogleCalendar
File "C:\Users\arthu\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\plugin\main.py", line 6, in
from ctparse import ctparse
File "C:\Users\arthu\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\ctparse_init_.py", line 10, in
from ctparse.ctparse import ctparse, ctparse_gen # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\arthu\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\ctparse\ctparse.py", line 15, in
import regex
File "C:\Users\arthu\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\regex_init_.py", line 1, in
from .regex import *
File "C:\Users\arthu\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\regex\regex.py", line 421, in
import regex._regex_core as _regex_core
File "C:\Users\arthu\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\regex_regex_core.py", line 21, in
import regex._regex as _regex
ModuleNotFoundError: No module named 'regex._regex'
---> System.IO.InvalidDataException: Traceback (most recent call last):
File "C:\Users\arthu\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\main.py", line 9, in
from plugin.main import GoogleCalendar
File "C:\Users\arthu\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\plugin\main.py", line 6, in
from ctparse import ctparse
File "C:\Users\arthu\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\ctparse_init_.py", line 10, in
from ctparse.ctparse import ctparse, ctparse_gen # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\arthu\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\ctparse\ctparse.py", line 15, in
import regex
File "C:\Users\arthu\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\regex_init_.py", line 1, in
from .regex import *
File "C:\Users\arthu\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\regex\regex.py", line 421, in
import regex._regex_core as _regex_core
File "C:\Users\arthu\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\regex_regex_core.py", line 21, in
import regex._regex as _regex
ModuleNotFoundError: No module named 'regex._regex'
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.<>c__DisplayClass23_0.<b__0>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 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 195
--- End of inner exception stack trace ---
at Flow.Launcher.Core.Plugin.PluginManager.<>c__DisplayClass23_1.b__1(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)
I am not sure if this is related to the existing Python hard dependency. *+ also noticed a similar error previously closed, guess the fix did not work/Flow update borked it again?
but always getting the prompt to post this here.
As it showed: (also attaching the log file)
2023-02-22.txt
2. copy below exception message
Flow Launcher version: 1.13.0
OS Version: Microsoft Windows NT 10.0.22623.0
IntPtr Length: 8
x64: True
Python Path: C:\Program Files\Streamlink\Python\pythonw.exe
Node Path: C:\Users\suraj\AppData\Roaming\FlowLauncher\Environments\Node.js\Node-v16.18.0\node-v16.18.0-win-x64\node.exe
Date: 02/22/2023 16:40:14
Exception:
Google Calendar Exception:
Websites: https://github.com/ivanipenburg/Flow.Launcher.Plugin.GoogleCalendar
Author: Ilja van Ipenburg
Version: 1.2.2
Flow.Launcher.Core.ExternalPlugins.FlowPluginException: Traceback (most recent call last):
File "C:\Users\suraj\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.2\main.py", line 9, in
from plugin.main import GoogleCalendar
File "C:\Users\suraj\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.2\plugin\main.py", line 6, in
from ctparse import ctparse
File "C:\Users\suraj\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.2\lib\ctparse_init_.py", line 10, in
from ctparse.ctparse import ctparse, ctparse_gen # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\suraj\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.2\lib\ctparse\ctparse.py", line 15, in
import regex
File "C:\Users\suraj\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.2\lib\regex_init_.py", line 1, in
from .regex import *
File "C:\Users\suraj\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.2\lib\regex\regex.py", line 421, in
import regex._regex_core as _regex_core
File "C:\Users\suraj\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.2\lib\regex_regex_core.py", line 21, in
import regex._regex as _regex
ModuleNotFoundError: No module named 'regex._regex'
---> System.IO.InvalidDataException: Traceback (most recent call last):
File "C:\Users\suraj\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.2\main.py", line 9, in
from plugin.main import GoogleCalendar
File "C:\Users\suraj\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.2\plugin\main.py", line 6, in
from ctparse import ctparse
File "C:\Users\suraj\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.2\lib\ctparse_init_.py", line 10, in
from ctparse.ctparse import ctparse, ctparse_gen # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\suraj\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.2\lib\ctparse\ctparse.py", line 15, in
import regex
File "C:\Users\suraj\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.2\lib\regex_init_.py", line 1, in
from .regex import *
File "C:\Users\suraj\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.2\lib\regex\regex.py", line 421, in
import regex._regex_core as _regex_core
File "C:\Users\suraj\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.2\lib\regex_regex_core.py", line 21, in
import regex._regex as _regex
ModuleNotFoundError: No module named 'regex._regex'
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 300
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 300
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 316
at Flow.Launcher.Core.Plugin.PluginManager.<>c__DisplayClass22_0.<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 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 213
--- 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 213
at Flow.Launcher.ViewModel.MainViewModel.<>c__DisplayClass135_0.<g__QueryTask|2>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 821
--- End of stack trace from previous location ---
at Flow.Launcher.ViewModel.MainViewModel.QueryResults() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 822
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)
Please open new issue in: https://github.com/ivanipenburg/Flow.Launcher.Plugin.GoogleCalendar/issues
Flow Launcher version: 1.16.0
OS Version: 22631.1972
IntPtr Length: 8
x64: True
Python Path: C:\Users\ABC\AppData\Roaming\FlowLauncher\Environments\Python\PythonEmbeddable-v3.8.9\pythonw.exe
Node Path:
Date: 07/13/2023 18:56:35
Exception:
Google Calendar Exception:
Websites: https://github.com/ivanipenburg/Flow.Launcher.Plugin.GoogleCalendar
Author: Ilja van Ipenburg
Version: 1.2.3
Flow.Launcher.Core.ExternalPlugins.FlowPluginException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
---> System.Text.Json.JsonException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
---> System.Text.Json.JsonReaderException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0.
at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan1 bytes) at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.Serialization.JsonConverter
1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
--- End of inner exception stack trace ---
at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, JsonReaderException ex)
at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.JsonSerializer.ContinueDeserialize[TValue](ReadBufferState& bufferState, JsonReaderState& jsonReaderState, ReadStack& readStack, JsonTypeInfo jsonTypeInfo) at System.Text.Json.JsonSerializer.ReadFromStreamAsync[TValue](Stream utf8Json, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at Flow.Launcher.Core.Plugin.JsonRPCPlugin.DeserializedResultAsync(Stream output) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 90 at Flow.Launcher.Core.Plugin.JsonRPCPlugin.DeserializedResultAsync(Stream output) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 93 at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 312 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
--- 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.<>c__DisplayClass139_0.<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.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)
Flow Launcher version: 1.16.2
OS Version: 22621.2715
IntPtr Length: 8
x64: True
Python Path: C:\Users\swans\AppData\Roaming\FlowLauncher\Environments\Python\PythonEmbeddable-v3.11.4\pythonw.exe
Node Path:
Date: 12/10/2023 16:54:06
Exception:
Google Calendar Exception:
Websites: https://github.com/ivanipenburg/Flow.Launcher.Plugin.GoogleCalendar
Author: Ilja van Ipenburg
Version: 1.2.3
Flow.Launcher.Core.ExternalPlugins.FlowPluginException: Traceback (most recent call last):
File "C:\Users\swans\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\main.py", line 9, in
from plugin.main import GoogleCalendar
File "C:\Users\swans\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\plugin\main.py", line 4, in
from apiclient import discovery
ModuleNotFoundError: No module named 'apiclient'
---> System.IO.InvalidDataException: Traceback (most recent call last):
File "C:\Users\swans\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\main.py", line 9, in
from plugin.main import GoogleCalendar
File "C:\Users\swans\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\plugin\main.py", line 4, in
from apiclient import discovery
ModuleNotFoundError: No module named 'apiclient'
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.<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 193
--- 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 213
at Flow.Launcher.ViewModel.MainViewModel.<>c__DisplayClass139_0.<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 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)
exception:
Flow Launcher version: 1.16.2
OS Version: 23601.1000
IntPtr Length: 8
x64: True
Python Path: C:\Users\User\AppData\Roaming\FlowLauncher\Environments\Python\PythonEmbeddable-v3.11.4\pythonw.exe
Node Path:
Date: 12/12/2023 17:18:12
Exception:
Google Calendar Exception:
Websites: https://github.com/ivanipenburg/Flow.Launcher.Plugin.GoogleCalendar
Author: Ilja van Ipenburg
Version: 1.2.3
Flow.Launcher.Core.ExternalPlugins.FlowPluginException: Traceback (most recent call last):
File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\main.py", line 9, in
from plugin.main import GoogleCalendar
File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\plugin\main.py", line 6, in
from ctparse import ctparse
File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\ctparse_init_.py", line 10, in
from ctparse.ctparse import ctparse, ctparse_gen # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\ctparse\ctparse.py", line 15, in
import regex
File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\regex_init_.py", line 1, in
from .regex import *
File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\regex\regex.py", line 421, in
import regex._regex_core as _regex_core
File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\regex_regex_core.py", line 21, in
import regex._regex as _regex
ModuleNotFoundError: No module named 'regex._regex'
---> System.IO.InvalidDataException: Traceback (most recent call last):
File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\main.py", line 9, in
from plugin.main import GoogleCalendar
File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\plugin\main.py", line 6, in
from ctparse import ctparse
File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\ctparse_init_.py", line 10, in
from ctparse.ctparse import ctparse, ctparse_gen # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\ctparse\ctparse.py", line 15, in
import regex
File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\regex_init_.py", line 1, in
from .regex import *
File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\regex\regex.py", line 421, in
import regex._regex_core as _regex_core
File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\regex_regex_core.py", line 21, in
import regex._regex as _regex
ModuleNotFoundError: No module named 'regex._regex'
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.<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
--- 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.<>c__DisplayClass139_0.<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.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 12/12/2023
Just installed Flow launcher and added the google calendar addon, but does not work. It prompted me to open an issue.
Flow Launcher version: 1.16.2
OS Version: 19045.3448
IntPtr Length: 8
x64: True
Python Path: C:\Python310\pythonw.exe
Node Path:
Date: 10/10/2023 13:48:55
Exception:
Google Calendar Exception:
Websites: https://github.com/ivanipenburg/Flow.Launcher.Plugin.GoogleCalendar
Author: Ilja van Ipenburg
Version: 1.2.3
Flow.Launcher.Core.ExternalPlugins.FlowPluginException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
---> System.Text.Json.JsonException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
---> System.Text.Json.JsonReaderException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0.
at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan1 bytes) at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.Serialization.JsonConverter
1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
--- End of inner exception stack trace ---
at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, JsonReaderException ex)
at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.JsonSerializer.ContinueDeserialize[TValue](ReadBufferState& bufferState, JsonReaderState& jsonReaderState, ReadStack& readStack, JsonTypeInfo jsonTypeInfo) at System.Text.Json.JsonSerializer.ReadFromStreamAsync[TValue](Stream utf8Json, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at Flow.Launcher.Core.Plugin.JsonRPCPlugin.DeserializedResultAsync(Stream output) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 90 at Flow.Launcher.Core.Plugin.JsonRPCPlugin.DeserializedResultAsync(Stream output) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 93 at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 313 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
--- 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.<>c__DisplayClass139_0.<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.Threadin
2023-10-10.txt
g.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)
Python Path: C:\Users\Sam\AppData\Roaming\FlowLauncher\Environments\Python\PythonEmbeddable-v3.8.9\pythonw.exe
Node Path:
Date: 08/23/2023 20:55:35
Exception:
Google Calendar Exception:
Websites: https://github.com/ivanipenburg/Flow.Launcher.Plugin.GoogleCalendar
Author: Ilja van Ipenburg
Version: 1.2.3
Flow.Launcher.Core.ExternalPlugins.FlowPluginException: An error occurred trying to start process 'C:\Users\Sam\AppData\Roaming\FlowLauncher\Environments\Python\PythonEmbeddable-v3.8.9\pythonw.exe' with working directory 'C:\Users\Sam\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3'. The directory name is invalid.
---> System.ComponentModel.Win32Exception (267): An error occurred trying to start process 'C:\Users\Sam\AppData\Roaming\FlowLauncher\Environments\Python\PythonEmbeddable-v3.8.9\pythonw.exe' with working directory 'C:\Users\Sam\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3'. The directory name is invalid.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
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 297
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 313
at Flow.Launcher.Core.Plugin.PluginManager.<>c__DisplayClass22_0.<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
--- 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.<>c__DisplayClass139_0.<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.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)
2023-08-23.txt
2022-12-13.txt
Flow Launcher version: 1.10.0
OS Version: Microsoft Windows NT 10.0.22621.0
IntPtr Length: 8
x64: True
Python Path:
Date: 12/13/2022 18:50:17
Exception:
Google Calendar Exception:
Websites: https://github.com/ivanipenburg/Flow.Launcher.Plugin.GoogleCalendar
Author: Ilja van Ipenburg
Version: 1.0.1
Flow.Launcher.Core.ExternalPlugins.FlowPluginException: Failed to produce result for "wat gebeurt er"
---> System.IO.InvalidDataException: Failed to produce result for "wat gebeurt er"
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.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 312
at Flow.Launcher.Core.Plugin.PluginManager.<>c__DisplayClass22_0.<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 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 213
--- 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 213
at Flow.Launcher.ViewModel.MainViewModel.<>c__DisplayClass120_0.<g__QueryTask|2>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 740
--- End of stack trace from previous location ---
at Flow.Launcher.ViewModel.MainViewModel.QueryResults() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 741
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)
I am getting the following error when trying to install the plugin :
"Flow Launcher version: 1.16.2
OS Version: 22631.2428
IntPtr Length: 8
x64: True
Python Path: C:\Users\danie\AppData\Roaming\FlowLauncher\Environments\Python\PythonEmbeddable-v3.11.4\pythonw.exe
Node Path:
Date: 10/20/2023 17:17:31
Exception:
Google Calendar Exception:
Websites: https://github.com/ivanipenburg/Flow.Launcher.Plugin.GoogleCalendar
Author: Ilja van Ipenburg
Version: 1.2.3
Flow.Launcher.Core.ExternalPlugins.FlowPluginException: Traceback (most recent call last):
File "C:\Users\danie\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\main.py", line 9, in
from plugin.main import GoogleCalendar
File "C:\Users\danie\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\plugin\main.py", line 6, in
from ctparse import ctparse
File "C:\Users\danie\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\ctparse_init_.py", line 10, in
from ctparse.ctparse import ctparse, ctparse_gen # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\danie\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\ctparse\ctparse.py", line 15, in
import regex
File "C:\Users\danie\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\regex_init_.py", line 1, in
from .regex import *
File "C:\Users\danie\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\regex\regex.py", line 421, in
import regex._regex_core as _regex_core
File "C:\Users\danie\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\regex_regex_core.py", line 21, in
import regex._regex as _regex
ModuleNotFoundError: No module named 'regex._regex'
---> System.IO.InvalidDataException: Traceback (most recent call last):
File "C:\Users\danie\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\main.py", line 9, in
from plugin.main import GoogleCalendar
File "C:\Users\danie\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\plugin\main.py", line 6, in
from ctparse import ctparse
File "C:\Users\danie\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\ctparse_init_.py", line 10, in
from ctparse.ctparse import ctparse, ctparse_gen # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\danie\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\ctparse\ctparse.py", line 15, in
import regex
File "C:\Users\danie\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\regex_init_.py", line 1, in
from .regex import *
File "C:\Users\danie\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\regex\regex.py", line 421, in
import regex._regex_core as _regex_core
File "C:\Users\danie\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.3\lib\regex_regex_core.py", line 21, in
import regex._regex as _regex
ModuleNotFoundError: No module named 'regex._regex'
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.<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 193
--- 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 213
at Flow.Launcher.ViewModel.MainViewModel.<>c__DisplayClass139_0.<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 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)
"
Hello @ivanipenburg,
After going over your code I noticed the hard dependency on the regex package which uses a dynamically linked python file. This may fail to load on other Python versions if the user isn't using the same version the file was complied for.
On Python 3.10:
\lib\regex\_regex_core.py", line 21, in <module>
import regex._regex as _regex
ModuleNotFoundError: No module named 'regex._regex'
Flow Launcher uses version 3.8 for automatic install of Python and 3.8 is recommended at this time. But the user is capable of choosing any version they want. This may lead to users reporting issues with your plugin.
You may want to check out PyInstaller, or nuitka which package the python run time with your plugin.
If you have any questions please feel free to ask. Hope this helps!
Exception:
Google Calendar Exception:
Websites: https://github.com/ivanipenburg/Flow.Launcher.Plugin.GoogleCalendar
Author: Ilja van Ipenburg
Version: 1.2.3
Flow.Launcher.Core.ExternalPlugins.FlowPluginException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
---> System.Text.Json.JsonException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
---> System.Text.Json.JsonReaderException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0.
at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan1 bytes) at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.Serialization.JsonConverter
1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
--- End of inner exception stack trace ---
at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, JsonReaderException ex)
at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.JsonSerializer.ContinueDeserialize[TValue](ReadBufferState& bufferState, JsonReaderState& jsonReaderState, ReadStack& readStack, JsonTypeInfo jsonTypeInfo) at System.Text.Json.JsonSerializer.ReadFromStreamAsync[TValue](Stream utf8Json, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at Flow.Launcher.Core.Plugin.JsonRPCPlugin.DeserializedResultAsync(Stream output) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 90 at Flow.Launcher.Core.Plugin.JsonRPCPlugin.DeserializedResultAsync(Stream output) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 93 at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 312 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 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 193
--- 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 213
at Flow.Launcher.ViewModel.MainViewModel.<>c__DisplayClass139_0.<g__QueryTask|2>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 839
--- 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)
2024-02-12.txt
Attached is the upload log file.
Please type any relevant information here
Hello! first of all, I'd like to express my thanks to you for creating this handy plugin for FlowLauncher.
back to the issue. somehow the error below kept showing whenever I tried to add event using your plugin. it seemed to me at first as though the query couldn't be parsed correctly because only the Upcoming Events are showing despite me giving any correct queries (talking about the examples you gave).
now, I've tinkered around with your code and I think I have found the issue.
on line 42, somehow if I commented the code, it managed to work correctly.
I'm not sure if anyone has faced the same issue or it's somehow only happening in my machine. but, you might want to check that out.
additional information:
Traceback (most recent call last):
File "C:\Users\ACER SWIFT\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.2\lib\flox\launcher.py", line 44, in run
results = request_method(*request_parameters) or self._results
File "C:\Users\ACER SWIFT\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.2\lib\flox\__init__.py", line 131, in _query
self.query(query)
File "C:\Users\ACER SWIFT\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.2\plugin\main.py", line 42, in query
self.display_current_events()
File "C:\Users\ACER SWIFT\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.2\plugin\main.py", line 117, in display_current_events
self.show_result(event['summary'], subtitle, score=10-i, glyph_id=date_glyph_id, method="open_webpage", params=[event['htmlLink']])
KeyError: 'summary'
Flow Launcher version: 1.14.0
OS Version: Microsoft Windows NT 10.0.22621.0
IntPtr Length: 8
x64: True
Python Path: C:\Users\asus\AppData\Roaming\FlowLauncher\Environments\Python\PythonEmbeddable-v3.8.9\pythonw.exe
Node Path:
Date: 04/20/2023 18:22:55
Exception:
Google Calendar Exception:
Websites: https://github.com/ivanipenburg/Flow.Launcher.Plugin.GoogleCalendar
Author: Ilja van Ipenburg
Version: 1.2.2
Flow.Launcher.Core.ExternalPlugins.FlowPluginException: Traceback (most recent call last):
File "C:\Users\asus\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.2\main.py", line 9, in
from plugin.main import GoogleCalendar
File "C:\Users\asus\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.2\plugin\main.py", line 4, in
from apiclient import discovery
ModuleNotFoundError: No module named 'apiclient'
---> System.IO.InvalidDataException: Traceback (most recent call last):
File "C:\Users\asus\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.2\main.py", line 9, in
from plugin.main import GoogleCalendar
File "C:\Users\asus\AppData\Roaming\FlowLauncher\Plugins\Google Calendar-1.2.2\plugin\main.py", line 4, in
from apiclient import discovery
ModuleNotFoundError: No module named 'apiclient'
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.<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 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 213
--- 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 213
at Flow.Launcher.ViewModel.MainViewModel.<>c__DisplayClass135_0.<g__QueryTask|2>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 839
--- End of stack trace from previous location ---
at Flow.Launcher.ViewModel.MainViewModel.QueryResults() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 840
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)
Whenever I create an event it has no value if I am free in this time or not. How can I control this behaivor through the plugin?
Thanks in advance for such a useful FlowLauncher Plugin :)
Flow Launcher version: 1.16.1
OS Version: 22621.2134
IntPtr Length: 8
x64: True
Python Path: C:\Users\manni\AppData\Roaming\FlowLauncher\Environments\Python\PythonEmbeddable-v3.8.9\pythonw.exe
Node Path:
Date: 08/31/2023 10:46:37
Exception:
Google Calendar Exception:
Websites: https://github.com/ivanipenburg/Flow.Launcher.Plugin.GoogleCalendar
Author: Ilja van Ipenburg
Version: 1.2.3
Flow.Launcher.Core.ExternalPlugins.FlowPluginException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
---> System.Text.Json.JsonException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
---> System.Text.Json.JsonReaderException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0.
at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan1 bytes) at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.Serialization.JsonConverter
1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
--- End of inner exception stack trace ---
at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, JsonReaderException ex)
at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.JsonSerializer.ContinueDeserialize[TValue](ReadBufferState& bufferState, JsonReaderState& jsonReaderState, ReadStack& readStack, JsonTypeInfo jsonTypeInfo) at System.Text.Json.JsonSerializer.ReadFromStreamAsync[TValue](Stream utf8Json, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at Flow.Launcher.Core.Plugin.JsonRPCPlugin.DeserializedResultAsync(Stream output) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 95 at Flow.Launcher.Core.Plugin.JsonRPCPlugin.DeserializedResultAsync(Stream output) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 95 at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 313 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
--- 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.<>c__DisplayClass139_0.<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.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)
Flow Launcher version: 1.16.0
OS Version: 22621.1992
IntPtr Length: 8
x64: True
Python Path: C:\Users\Rory Brolly\AppData\Roaming\FlowLauncher\Environments\Python\PythonEmbeddable-v3.8.9\pythonw.exe
Node Path:
Date: 07/27/2023 00:38:50
Exception:
Google Calendar Exception:
Websites: https://github.com/ivanipenburg/Flow.Launcher.Plugin.GoogleCalendar
Author: Ilja van Ipenburg
Version: 1.2.3
Flow.Launcher.Core.ExternalPlugins.FlowPluginException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
---> System.Text.Json.JsonException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
---> System.Text.Json.JsonReaderException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0.
at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan1 bytes) at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.Serialization.JsonConverter
1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
--- End of inner exception stack trace ---
at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, JsonReaderException ex)
at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.JsonSerializer.ContinueDeserialize[TValue](ReadBufferState& bufferState, JsonReaderState& jsonReaderState, ReadStack& readStack, JsonTypeInfo jsonTypeInfo) at System.Text.Json.JsonSerializer.ReadFromStreamAsync[TValue](Stream utf8Json, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at Flow.Launcher.Core.Plugin.JsonRPCPlugin.DeserializedResultAsync(Stream output) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 90 at Flow.Launcher.Core.Plugin.JsonRPCPlugin.DeserializedResultAsync(Stream output) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 93 at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 312 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
--- 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.<>c__DisplayClass139_0.<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.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)
Flow Launcher version: 1.16.2
OS Version: 22621.2428
IntPtr Length: 8
x64: True
Python Path: C:\Users\user\AppData\Local\FlowLauncher\app-1.16.2\UserData\Environments\Python\PythonEmbeddable-v3.11.4\pythonw.exe
Node Path:
Date: 10/16/2023 17:09:29
Exception:
Google Calendar Exception:
Websites: https://github.com/ivanipenburg/Flow.Launcher.Plugin.GoogleCalendar
Author: Ilja van Ipenburg
Version: 1.2.3
Flow.Launcher.Core.ExternalPlugins.FlowPluginException: Traceback (most recent call last):
File "C:\Users\user\AppData\Local\FlowLauncher\app-1.16.2\UserData\Plugins\Google Calendar-1.2.3\main.py", line 9, in
from plugin.main import GoogleCalendar
File "C:\Users\user\AppData\Local\FlowLauncher\app-1.16.2\UserData\Plugins\Google Calendar-1.2.3\plugin\main.py", line 4, in
from apiclient import discovery
ModuleNotFoundError: No module named 'apiclient'
---> System.IO.InvalidDataException: Traceback (most recent call last):
File "C:\Users\user\AppData\Local\FlowLauncher\app-1.16.2\UserData\Plugins\Google Calendar-1.2.3\main.py", line 9, in
from plugin.main import GoogleCalendar
File "C:\Users\user\AppData\Local\FlowLauncher\app-1.16.2\UserData\Plugins\Google Calendar-1.2.3\plugin\main.py", line 4, in
from apiclient import discovery
ModuleNotFoundError: No module named 'apiclient'
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 297
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 297
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 313
at Flow.Launcher.Core.Plugin.PluginManager.<>c__DisplayClass22_0.<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
--- 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.<>c__DisplayClass139_0.<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.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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.