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
584 stars 25 forks source link

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

Open Bolivia-me opened 1 month ago

Bolivia-me commented 1 month 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 1 month 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 1 month ago

macos : similar problem that have not beed solved

liboynu commented 3 weeks 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 6 days 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