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
661 stars 29 forks source link

better-sqlite3 won't install #331

Closed matar3 closed 6 months ago

matar3 commented 7 months ago

Discussed in https://github.com/PKM-er/obsidian-zotlit/discussions/320

Originally posted by **lyndondrake** March 12, 2024 I've installed the ZotLit plugin from the Community Plugins repository. When I try to enable it, I get the message about installing sqlite. The auto install doesn't work, and when I download it and select the downloaded file, there is no additional message but when I restart the plugin I get the same message. Any ideas on how to get it working?
aidenlx commented 7 months ago

Could you provide the url that return 404 not found?

matar3 commented 7 months ago

Could you provide the url that return 404 not found?

When trying manual installation we can download the file win32-x64-119.node.gz, but then when trying to "select" the gz file or the .node file (i tried both) it doesn't do anything, it doesn't install it. I used the url given by zotlit, and for reference i report you the link here: https://objects.githubusercontent.com/github-production-release-asset-2e65be/467723243/1167d681-2cfc-45ad-a0a4-ef1575d27ea4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240402%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240402T152251Z&X-Amz-Expires=300&X-Amz-Signature=a85cd9eec312eadb9350edc989bac25ad067cef4f42ee7bbb149325ca7f397bf&X-Amz-SignedHeaders=host&actor_id=31188460&key_id=0&repo_id=467723243&response-content-disposition=attachment%3B%20filename%3Dwin32-x64-119.node.gz&response-content-type=application%2Foctet-stream

aidenlx commented 7 months ago

have you update to latest zotlit? please provide output from command "show debug info"

matar3 commented 7 months ago

have you update to latest zotlit? please provide output from command "show debug info"

I installed zotlit few days ago, and it is latest version (even tried to uninstall and reinstall it). Being not able to enable it, it is not in the debug info (it is installed but not enabled, so it is not listed in the enabled plugins). I can show you a snapshot of obsidian settings of zotlit to show you the version: image

if you also want the debug info, here it is (but consider that it doesn't contain zotlit): SYSTEM INFO: Obsidian version: v1.5.12 Installer version: v1.5.11 Operating system: Windows 10 Home 10.0.19045 Login status: logged in Catalyst license: none Insider build toggle: off Live preview: on Base theme: light Community theme: none Snippets enabled: 0 Restricted mode: off Plugins installed: 30 Plugins enabled: 28 1: Dataview v0.5.66 2: DB Folder v3.5.1 3: Calendar v1.5.10 4: Omnisearch v1.21.1 5: Canvas Mindmap v0.1.9 6: Annotator v0.2.11 7: Book Search v0.6.3 8: Frontmatter Tag Suggest v0.4.1 9: Auto Classifier v1.1.2 10: Periodic Notes v0.0.17 11: Wikipedia v1.0.3 12: Quick Links v0.2.2 13: ZettelFlow v2.3.1 14: Zettelkasten Outliner v1.0.2 15: Zotero Integration v3.1.7 16: Update time on edit v2.4.0 17: Excalidraw v2.0.25 18: Templater v2.2.3 19: Smart Connections v2.0.138 20: Admonition v10.2.0 21: Local GPT v1.7.0 22: Advanced URI v1.40.0 23: Local Images Plus v0.15.9 24: Omnivore v1.9.4 25: Link Archive v0.2.0 26: Copilot v2.5.2 27: Alias Management v0.0.1 28: Citations v0.4.5

RECOMMENDATIONS: Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

aidenlx commented 7 months ago

could you check the console output when installing the plugin?

If you would like to access developer tools, you can find it in the menu bar (View > Toggle Developer Tools) or use the hotkey (cmd+ option + i on Mac and ctrl + shift + i for Windows).

matar3 commented 7 months ago

Ok, i'm attaching a few screenshots of the console. Consider that when installing the plugin no error is shown, but when enabling it the errors appear. vlcsnap-2024-04-05-13h43m20s344 vlcsnap-2024-04-05-13h43m07s976 vlcsnap-2024-04-05-13h42m45s828 vlcsnap-2024-04-05-13h41m27s796

Feel free to contact me for any doubt

matar3 commented 6 months ago

Any news? I'm looking forward to using your plugin...

calmwaves111 commented 6 months ago

hello, maybe this is helpful, https://github.com/PKM-er/obsidian-zotlit/issues/225#issuecomment-1809712690

matar3 commented 6 months ago

@calmwaves111 Thank you very much for your help, but following the given instructions i didn't solve my issue. I tried first disabling and then completely disinstalling the plugin "Local image plus", and i remembered to delete the file "C:\Users{{username}}\AppData\Roaming\obsidian\better-sqlite3-8.0.1-mod.1.node" but i still get this error when enabling Zotlit it doesn't install better-sqlite3. These are the errors i get when enabling Zotlit: Immagine 2024-04-27 124714

If it can't be of help, i tell you that i saw that the file "C:\Users{{username}}\AppData\Roaming\obsidian\better-sqlite3-8.0.1-mod.1.node" is an empty file of 0 kb with nothing in it.

P.S. NOW I MADE IT !! I'm still figuring out which the real problem was, but what i tried to do now is:

calmwaves111 commented 6 months ago

Yes, I'm sure the reason is a conflict with other plugins, and after my many rounds of troubleshooting, I found that local image plus is in my eye

Of course, disabling all other plugins is a simpler solution

At the same time, in order to avoid a lot of unnecessary bugs, it is useful to close and restart the OB after every step