Skip to content

cce init fails when sqllite3.enable_load_extension is missing #85

@carterwickstrom-mapache

Description

What happened?

Running cce init on my repo resulted in the following exception:

[full stack trace omitted for clarity]
File "/Users/carterwickstrom/.local/share/uv/tools/code-context-engine/lib/python3.14/site-packages/context_engine/storage/vector_store.py", line 49, in _connect
conn.enable_load_extension(True)
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'sqlite3.Connection' object has no attribute 'enable_load_extension'

What did you expect?

Expected indexing to work.

Steps to reproduce

cce init crashes during indexing because CCE's vector store calls conn.enable_load_extension(True) on a sqlite3 connection. The Python 3.14 from python.org (at /Library/Frameworks/Python.framework/Versions/3.14/) was compiled without SQLITE_ENABLE_LOAD_EXTENSION, so that attribute doesn't exist.

Homebrew's Python 3.14.4 at /opt/homebrew/bin/python3 does have this support (confirmed callable). The fix is to reinstall cce under that Python.

uv tool install --python /opt/homebrew/bin/python3 --force code-context-engine

re-running cce init indexes the repo.

Relevant logs or error output

Python version

3.14.4

OS

macOS 26.4.1

CCE version

0.4.21

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions