Garulf / twitchy

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

Exception: You need either charset_normalizer or chardet installed #5

Closed deefrawley closed 3 years ago

deefrawley commented 3 years ago

Hi Garulf,

Is this a missing dependency?

Flow Launcher version: 1.8.2 OS Version: Microsoft Windows NT 10.0.19042.0 IntPtr Length: 8 x64: True

Python Path: Date: 08/27/2021 13:30:08 Exception: System.IO.InvalidDataException: Twitchy|Traceback (most recent call last): File "C:\Users\Damien\AppData\Roaming\FlowLauncher\Plugins\Twitchy-1.0.1\main.py", line 10, in from plugin.twitchy import Twitchy File "C:\Users\Damien\AppData\Roaming\FlowLauncher\Plugins\Twitchy-1.0.1\plugin\twitchy.py", line 6, in import requests File "C:\Users\Damien\AppData\Roaming\FlowLauncher\Plugins\Twitchy-1.0.1\lib\requests__init.py", line 100, in check_compatibility(urllib3.version, chardet_version, charset_normalizer_version) File "C:\Users\Damien\AppData\Roaming\FlowLauncher\Plugins\Twitchy-1.0.1\lib\requests\init__.py", line 85, in check_compatibility raise Exception("You need either charset_normalizer or chardet installed") Exception: You need either charset_normalizer or chardet installed

at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 261 at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 275 at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 286 at Flow.Launcher.Core.Plugin.PluginManager.<>cDisplayClass22_0.<b0>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 192 --- 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 191 at Flow.Launcher.ViewModel.MainViewModel.<>cDisplayClass111_0.<gQueryTask|2>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 553 --- End of stack trace from previous location --- at Flow.Launcher.ViewModel.MainViewModel.QueryResults() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 527 at System.Threading.Tasks.Task.<>c.b__140_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 3 years ago

No, requests is not seeing charset_normalizer for some reason. Works fine when installed locally however...

Garulf commented 3 years ago

@deefrawley Something strange with the latest requests 2.6.0. However requests 2.25.1 seems to work just fine!

Give prerelease v1.0.21 a shot and tell me if that fixes it for you too.

deefrawley commented 3 years ago

I reckon it will as that's the version my Currency Converter uses and no issue there

deefrawley commented 3 years ago

I reckon it will as that's the version my Currency Converter uses and no issue there

Yep no more chardet error

Garulf commented 3 years ago

Such a strange error, thanks again!