Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
contraaa opened this issue Jan 21, 2024 · 1 comment

Comments

@contraaa
Copy link

contraaa commented Jan 21, 2024

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

`

@Garulf
Copy link
Owner

Garulf commented Jan 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants