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.
Trying to load the extension manually like so:
Results in the following error:
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
sqlite3DLL 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:But this fails with lots of syntax ("initializer is not const", etc.) and linking errors.