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

Unable to memos init #4

Open
maya329 opened this issue Nov 17, 2024 · 5 comments
Open

Unable to memos init #4

maya329 opened this issue Nov 17, 2024 · 5 comments

Comments

@maya329
Copy link

maya329 commented Nov 17, 2024

I get the following error when doing memos init:

https://app.warp.dev/block/q5ZfjY6osKAPPyIuu4ti8z

@arkohut
Copy link
Owner

arkohut commented Nov 18, 2024

It seems that not all Python’s sqlite3 library support enable_load_extension. But I don't know which env and which python version will have such issue. I tested in macos python3.10 and windows x86 and ubuntu 22.04 without any issue.

Could you please show the result of such commands:

import sqlite3
print(sqlite3.sqlite_version)

@xyb
Copy link

xyb commented Nov 18, 2024

Same issue here. My environments:

  • macOS 14.4 arm64
  • python 3.11.9
  • sqlite3 3.43.2

@xyb
Copy link

xyb commented Nov 18, 2024

I discovered that my Python installation via asdf lacked SQLite extension support. After switching to Miniconda, memos init works perfectly now.

@rubenvarela
Copy link

I use pyenv to install python versions.

This worked,

LDFLAGS="-L$(brew --prefix sqlite)/lib" CPPFLAGS="-I$(brew --prefix sqlite)/include" PYTHON_CONFIGURE_OPTS="--enable-loadable-sqlite-extensions" pyenv install -v 3.12

@kagurakana
Copy link

Same error, use sudo memo init instead may works.

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

5 participants