Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Bolivia-me opened this issue May 16, 2024 · 8 comments
Closed

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

Bolivia-me opened this issue May 16, 2024 · 8 comments

Comments

@Bolivia-me
Copy link

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
Copy link

3e9b commented May 23, 2024

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

@jensenojs
Copy link

macos : similar problem that have not beed solved

@liboynu
Copy link

liboynu commented Jun 16, 2024

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
Copy link

3e9b commented Jul 2, 2024

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
Copy link

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
Copy link

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
Copy link

ianTevesAcc commented Jul 21, 2024

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
Copy link
Member

aidenlx commented Jul 22, 2024

merge to #360

@aidenlx aidenlx closed this as completed Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants