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 · 7 comments
Open

Unable to memos init #4

maya329 opened this issue Nov 17, 2024 · 7 comments
Labels
good first issue Good for newcomers

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 versions of Python’s sqlite3 library support enable_load_extension. However, I’m not sure which environments or Python versions encounter this issue. I am using conda to manage Python, and with conda, Python 3.10 on macOS, Windows x86, and Ubuntu 22.04 works fine.

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.

@tianze-hou
Copy link

The same error persists even after switching to Python 3.12.7 and 3.10.15, which were installed using Conda.

The details of my environments are as follows:

  • Operating system: macOS 15.0.1
  • Python versions: 3.12.7 and 3.10.5, managed by conda
  • SQLite version: 3.45.3

@stopium
Copy link

stopium commented Nov 22, 2024

屏幕截图 2024-11-22 164919

Python versions: 3.13
SQLite version:3.45.3
OS: windows 11

A different error here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

7 participants