Skip to content

Pre-compiled loadable extension won't load on Python (3.10.8, Win11) #13

Description

@10c8

Trying to load the extension manually like so:

conn.enable_load_extension(True)
conn.load_extension("vec0.dll")
conn.enable_load_extension(False)

Results in the following error:

OperationalError: Não foi possível encontrar o módulo especificado.

Which roughly translates to "The specified module could not be found". Specifying the full path to the file does not work either.

It could have to do with the sqlite3 DLL that comes with Python and the extension DLL being built using different compilers. I tried builting the extension myself with MSVC, using the following command:

cl -W -I.\sqlite-autoconf sqlite-vec.c sqlite-vec.h -O2

But this fails with lots of syntax ("initializer is not const", etc.) and linking errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions