coddingtonbear / obsidian-local-rest-api

Unlock your automation needs by interacting with your notes in Obsidian over a secure REST API.
MIT License
607 stars 56 forks source link

"Failed to load plugin [...]" when enabling #6

Closed cs-mshah closed 2 years ago

cs-mshah commented 2 years ago

image

After installing and clicking enable, it showed this error

ngirard commented 2 years ago

@cs-mshah, which OS are you running ?

Also which Obsidian and local-rest-api versions are you using ?

cs-mshah commented 2 years ago

ubuntu 20.04, obsidian v13.23, plugin v1.3.1

ngirard commented 2 years ago

Alright. Which packaging format are you using then ? Could you try using an alternate pakaging format ?

FWIW I'm running plugin v1.3.1 on Obsidian v0.13.28 and Ubuntu 21.10 and I'm not experiencing this defect.

cs-mshah commented 2 years ago

What do you mean by packaging format? I installed obsidian via snap and the plugin from the internal community plugins

ngirard commented 2 years ago

Then I'd suggest giving the AppImage package a try. No guarantees here, but I happen to be using the AppImage format.

coddingtonbear commented 2 years ago

@cs-mshah -- could you check the dev console (Ctrl+Shift+I) to see what error is shown there when you try to enable the plugin? Unfortunately the error message you've shown above is just the one Obsidian itself surfaces, and it doesn't really tell us much other than "something went wrong".

hellopersonn commented 2 years ago

I have the same problem Im on windows 10, obsidian v0.13.31, plugin v1.3.1

Obsidian_fAjCGzL4Kw
sakgoag commented 2 years ago

I have the same problem Im on windows 10, obsidian v0.13.31, plugin v1.3.1 Obsidian_fAjCGzL4Kw Same error for me

coddingtonbear commented 2 years ago

I've so far not been able to reproduce this on either windows 10 or 11 with obsidian v0.13.31 & v1.3.1. Definitely perplexed, and not being a Windows user in general, I don't really have any good ideas about what might be different between my set-up and yours. Ideas?

Mlk1225 commented 2 years ago

The same problem in win10, obsidian v0.13.33, plugin v1.3.1 image

coddingtonbear commented 2 years ago

@Mlk1225 -- clearly that's a very different traceback than the one described above; so I think you should probably file a different issue. I've hidden your comment here so as to make sure the conversation sticks to covering only this problem.

lenxvp commented 2 years ago

I have the same problem on windows 10, obsidian v0.14.5, plugin v1.3.1

kiwiflydream commented 2 years ago

I have the same problem on macOS monterey , obsidian v0.14.6, plugin v1.3.1

kiwiflydream commented 2 years ago

I have the same problem on macOS monterey , obsidian v0.14.6, plugin v1.3.1

I re-downloaded obsidian and installed it as an overwrite and it worked

sakgoag commented 2 years ago

I have the same problem on macOS monterey , obsidian v0.14.6, plugin v1.3.1

I re-downloaded obsidian and installed it as an overwrite and it worked

Yup confirmed, installed fine for me now. Nice one!

coddingtonbear commented 2 years ago

My guess would be, then, that this is a limitation in the Obsidian installer version; you can see your installer version from the "About" page of your Obsidian settings:

image

When you re-download Obsidian and install it as an overwrite, you're updating both Obsidian and the installer.

If anybody else runs into this same problem in the future, could you first note what your installer version is (see the above screenshot); then verify that just re-downloading & installing Obsdian fixes your problem as @kiwiflydream discovered above?

If it doesn't, please comment here.