PKM-er / obsidian-zotlit

A third-party project that aims to facilitate the integration between Obsidian.md and Zotero, by providing a set of community plugins for both Obsidian and Zotero.
https://zotlit.aidenlx.top
MIT License
675 stars 29 forks source link

Failed to load plugin zotlib with an error for better-sqlite3 #343

Closed Bolivia-me closed 4 months ago

Bolivia-me commented 6 months ago

Obsidian version: 1.5.12 ZotLit version: 1.1.5

After I installed ZotLit, the "Setup Zotlib" dialogue window show " better-sqlite3 seems to be broken and failed to load. you can try to use one the method below to reinstall it". Then, I downloaded .node.gz file from GitHub and selected the uncompressed "better-sqlite3.node" file to install. Finally, when I want to reload Zotlit, a windows appears, showing that "Failed to load database library: Error: the process cannot access the file because it is being used by another process. \?
\C:\Administraator\AppData\Roaming\obsidian\better-sqlite3-8.0.1-mod.1.node"

image

What can I do to solve this problem?

Thanks very much.

3e9b commented 6 months ago

On macOS and Obsidian 1.5.12 I am not seeing the sqlite error, but the plugin is failing to load again.

jensenojs commented 6 months ago

macos : similar problem that have not beed solved

liboynu commented 5 months ago

This problem has been solved by following steps: (1) Disable all community plugins; (2) Install Zotlit from the community; (3) Install better-sqlite3 automatically or manually; (4) Set the options of Zotlit correctly, especially the "zotero data directory" option correctly. (5) Test the functions of Zotlit to check whether it works. (6) Enable those disabled community plugins.

3e9b commented 4 months ago

This problem has been solved by following steps: (1) Disable all community plugins; (2) Install Zotlit from the community; (3) Install better-sqlite3 automatically or manually; (4) Set the options of Zotlit correctly, especially the "zotero data directory" option correctly. (5) Test the functions of Zotlit to check whether it works. (6) Enable those disabled community plugins.

This worked for me

OctopusWen commented 4 months ago

I fix this by reinstalling the Obsidian. I think this may be because the Installer version of Obisian is too low. (not the current version)

ianTevesAcc commented 4 months ago

This problem has been solved by following steps: (1) Disable all community plugins; (2) Install Zotlit from the community; (3) Install better-sqlite3 automatically or manually; (4) Set the options of Zotlit correctly, especially the "zotero data directory" option correctly. (5) Test the functions of Zotlit to check whether it works. (6) Enable those disabled community plugins.

This does not work for me.

ianTevesAcc commented 4 months ago

I fix this by reinstalling the Obsidian. I think this may be because the Installer version of Obisian is too low. (not the current version)

This worked for me

By uninstalling Obsidian and reinstalling it Obsidian was able to work just fine. I second that this may be an issue with the installer version of obsidian being lower, which is causing issues.

Note that rendering of YAML may fail after first install of the plugin again. Make sure to restart Obsidian to get it working again.

aidenlx commented 4 months ago

merge to #360