Garulf / twitchy

Search, browse and watch twitch.tv using Flow Launcher
2 stars 1 forks source link

Twitchy not working at all. Might be an issue with my python installation? #22

Open contraaa opened 7 months ago

contraaa commented 7 months ago

I've had a few issues with python before, and can never get the bottom of it. I just did a fresh install. Anyone know what my issue is?

Here are my logs.

2024-01-21.txt

`Flow Launcher version: 1.16.2 OS Version: 22631.3007 IntPtr Length: 8 x64: True

Python Path: C:\Users\User\AppData\Local\Programs\Python\Python312\pythonw.exe Node Path: Date: 01/21/2024 20:17:44 Exception: Twitchy Exception: Websites: https://github.com/Garulf/twitchy Author: Garulf Version: 7.0.0 Flow.Launcher.Core.ExternalPlugins.FlowPluginException: C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Twitchy-7.0.0\lib\iso639\iso639.py:247: SyntaxWarning: invalid escape sequence '[' m = re.findall('[([a-z]{3})]', s) Traceback (most recent call last): File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Twitchy-7.0.0\main.py", line 13, in Twitchy() File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Twitchy-7.0.0\plugin\twitchy.py", line 32, in init if not self.oauth_token or not self.client.validate_token(): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Twitchy-7.0.0\lib\twitch\helix\api.py", line 75, in validate_token raise TwitchOAuthException("No OAuth token present.") twitch.exceptions.TwitchOAuthException: No OAuth token present. Exception ignored in: <function Launcher.del at 0x000001E9A19340E0> Traceback (most recent call last): File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Twitchy-7.0.0\lib\flox\launcher.py", line 16, in del self.run(debug) File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Twitchy-7.0.0\lib\flox\launcher.py", line 22, in run if len(sys.argv) > 1: ^^^^^^^^^^^^^ TypeError: object of type 'NoneType' has no len()

---> System.IO.InvalidDataException: C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Twitchy-7.0.0\lib\iso639\iso639.py:247: SyntaxWarning: invalid escape sequence '[' m = re.findall('[([a-z]{3})]', s) Traceback (most recent call last): File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Twitchy-7.0.0\main.py", line 13, in Twitchy() File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Twitchy-7.0.0\plugin\twitchy.py", line 32, in init if not self.oauth_token or not self.client.validate_token(): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Twitchy-7.0.0\lib\twitch\helix\api.py", line 75, in validate_token raise TwitchOAuthException("No OAuth token present.") twitch.exceptions.TwitchOAuthException: No OAuth token present. Exception ignored in: <function Launcher.del at 0x000001E9A19340E0> Traceback (most recent call last): File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Twitchy-7.0.0\lib\flox\launcher.py", line 16, in del self.run(debug) File "C:\Users\User\AppData\Roaming\FlowLauncher\Plugins\Twitchy-7.0.0\lib\flox\launcher.py", line 22, in run if len(sys.argv) > 1: ^^^^^^^^^^^^^ TypeError: object of type 'NoneType' has no len()

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 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.<>cDisplayClass139_0.<gQueryTask|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)

`

Garulf commented 7 months ago

This plugin is due for a re-write, but in the mean time, please try using Python 3.8 and see if that fixes your issue.