Garulf / Obsidian-Notes

Search Obsidian notes
41 stars 4 forks source link

obsidian plugin error #18

Closed monomox3000 closed 1 year ago

monomox3000 commented 1 year ago

2023-02-07.txt

Flow Launcher version: 1.12.1 OS Version: Microsoft Windows NT 10.0.19044.0 IntPtr Length: 8 x64: True

Python Path: D:\Anaconda3\pythonw.exe Node Path: Date: 02/07/2023 16:50:59 Exception: Obsidian Notes Exception: Websites: https://github.com/Garulf/obsidian-notes Author: Garulf Version: 1.1.4 Flow.Launcher.Core.ExternalPlugins.FlowPluginException: Traceback (most recent call last): File "C:\Users\Popota\AppData\Roaming\FlowLauncher\Plugins\Obsidian Notes-1.1.4\run.py", line 9, in from plugin.main import Obsidian File "C:\Users\Popota\AppData\Roaming\FlowLauncher\Plugins\Obsidian Notes-1.1.4\plugin\main.py", line 3, in from flox import Flox File "C:\Users\Popota\AppData\Roaming\FlowLauncher\Plugins\Obsidian Notes-1.1.4\lib\flox__init__.py", line 13, in from functools import wraps, cached_property ImportError: cannot import name 'cached_property' from 'functools' (D:\Anaconda3\lib\functools.py)

---> System.IO.InvalidDataException: Traceback (most recent call last): File "C:\Users\Popota\AppData\Roaming\FlowLauncher\Plugins\Obsidian Notes-1.1.4\run.py", line 9, in from plugin.main import Obsidian File "C:\Users\Popota\AppData\Roaming\FlowLauncher\Plugins\Obsidian Notes-1.1.4\plugin\main.py", line 3, in from flox import Flox File "C:\Users\Popota\AppData\Roaming\FlowLauncher\Plugins\Obsidian Notes-1.1.4\lib\flox__init__.py", line 13, in from functools import wraps, cached_property ImportError: cannot import name 'cached_property' from 'functools' (D:\Anaconda3\lib\functools.py)

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.<>cDisplayClass22_0.<b0>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.<>cDisplayClass135_0.<gQueryTask|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)

Garulf commented 1 year ago

None of my plugins have been tested with anaconda python. Please try Python 3.8 from python.org or use Flow Launchers embedded Python.

monomox3000 commented 1 year ago

It worked with python 3.11. I think all I needed was to restart Flow Launcher. Thanks for your response, though. Francisco

On Tue, 7 Feb 2023 at 18:16, Garulf @.***> wrote:

None of my plugins have been tested with anaconda python. Please try Python 3.8 from python.org or use Flow Launchers embedded Python.

— Reply to this email directly, view it on GitHub https://github.com/Garulf/Obsidian-Notes/issues/18#issuecomment-1421752292, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7ULTSMS5GGJMZOHVM43F3WWLXVJANCNFSM6AAAAAAUUS5DPU . You are receiving this because you authored the thread.Message ID: @.***>

Garulf commented 1 year ago

Glad you could get it working! Keep in mind a lot of plugins are tested with 3.8 in mind as this is what Flow Launcher uses for its own embedded Python. Some plugins will crash.

monomox3000 commented 1 year ago

How do you enable the embedded Python? I couldn't find any python.exe that seemed related to the FlowLauncher installation. Francisco

On Tue, 7 Feb 2023 at 21:46, Garulf @.***> wrote:

Closed #18 https://github.com/Garulf/Obsidian-Notes/issues/18 as completed.

— Reply to this email directly, view it on GitHub https://github.com/Garulf/Obsidian-Notes/issues/18#event-8464591699, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7ULTT4Z4Z43RNSNJLRPZTWWMQKLANCNFSM6AAAAAAUUS5DPU . You are receiving this because you authored the thread.Message ID: @.***>

Garulf commented 1 year ago

How do you enable the embedded Python? I couldn't find any python.exe that seemed related to the FlowLauncher installation. Francisco

On Tue, 7 Feb 2023 at 21:46, Garulf @.***> wrote:

Closed #18 https://github.com/Garulf/Obsidian-Notes/issues/18 as completed.

— Reply to this email directly, view it on GitHub https://github.com/Garulf/Obsidian-Notes/issues/18#event-8464591699, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7ULTT4Z4Z43RNSNJLRPZTWWMQKLANCNFSM6AAAAAAUUS5DPU . You are receiving this because you authored the thread.Message ID: @.***>

It's not really explained any where. But if you clear the Python path in Flow Launchers settings and restart Flow Launcher it should detect you are using Python plugins and ask if you'd like to use its embedded Python.