pip install duckdb
I'm trying to create a function that accesses the DuckDB package
CREATE FUNCTION "GetVersion"() RETURNS String LANGUAGE valentina_python
AS
$$
import sys
if 'd:/pyt/lib/site-packages/' not in sys.path:
sys.path.append('d:/pyt/lib/site-packages/')
import duckdb
ver = duckdb.sql("SELECT version()")
return ver
$$;
SELECT GetVersion();
--> Kernel error: 0x50000. DLL load failed while importing duckdb: The specified module was not found.
Help me understand, how to import a DuckDB package correctly?