deefrawley / Flow.Launcher.Plugin.Currency

Currency conversion plugin for Flow Launcher that uses the euro and rates at https://www.ecb.europa.eu/ to convert between currencies.
MIT License
16 stars 2 forks source link

flow launcher got an error (un- & reinstall does not work) #27

Closed skakspilleren closed 11 months ago

skakspilleren commented 11 months ago

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

Python Path: C:\Users\klr\AppData\Local\Programs\Python\Python311\python.exe Node Path: Date: 11/17/2023 08:24:26 Exception: Currency Converter Exception: Websites: https://github.com/deefrawley/Flow.Launcher.Plugin.Currency Author: deefrawley Version: 2.0.6 Flow.Launcher.Core.ExternalPlugins.FlowPluginException: C:\Users\klr\AppData\Roaming\FlowLauncher\Plugins\Currency Converter-2.0.6\lib\requests__init__.py:102: RequestsDependencyWarning: urllib3 (2.0.7) or chardet (None)/charset_normalizer (2.0.12) doesn't match a supported version! warnings.warn("urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported "

---> System.IO.InvalidDataException: C:\Users\klr\AppData\Roaming\FlowLauncher\Plugins\Currency Converter-2.0.6\lib\requests__init__.py:102: RequestsDependencyWarning: urllib3 (2.0.7) or chardet (None)/charset_normalizer (2.0.12) doesn't match a supported version! warnings.warn("urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported "

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)

deefrawley commented 11 months ago

For some reason it is using the python package urllib 2.0.7 instead of 1.26. Can you check the equivalent diriectory on your PC as this screenshot and see what urllib version is there

image

skakspilleren commented 11 months ago

The folder (and urllib) seems to be 100% identical to yours?! Skærmbillede 2023-11-17 120729

deefrawley commented 11 months ago

Odd. Do you have another installation of Python on your PC?

skakspilleren commented 11 months ago

Yes I installed Python 3.11 from python.org. Mind you I've been using Macs for the last 20 years, so I'm slightly at a loss when it comes to where stuff is on a pc :-) I suppose urllib v2 is called instead of v1.26.15 because it's in my (python ?) path ?

deefrawley commented 11 months ago

Best thing to do is, even with another Python install, let Flow download the embedded Python and use that for Plugins. Python path should look like this.

image

Clear this setting, Quit and restart Flow and it should ask you if you want it to download Python. Click yes.

skakspilleren commented 11 months ago

Problem solved, thanks! Now FlowLauncher uses it's own python install, located here: C:\Users\user\AppData\Roaming\FlowLauncher\Environments\Python