duckdb / extension-template

Template for DuckDB extensions to help you develop, test and deploy a custom extension
MIT License
113 stars 33 forks source link

Segmentation Fault #76

Open Benyaminwasnthere opened 1 month ago

Benyaminwasnthere commented 1 month ago

I am receiving segmentation faults when trying to install and load in python import duckdb

Connect to an in-memory DuckDB database with the required configuration

con = duckdb.connect(':memory:', config={'allow_unsigned_extensions': 'true'})

Set the configuration for allowing extensions with metadata mismatch

con.execute("SET allow_extensions_metadata_mismatch=true;")

Install the 'scrooge' extension

con.execute("INSTALL '/home/k8/Documents/quack2/build/release/extension/quack/quack.duckdb_extension';") con.execute("LOAD '/home/k8/Documents/quack2/build/release/extension/quack/quack.duckdb_extension';")

Load the CSV file into DuckDB and execute the query

result = con.execute("select quack('Jane') as result;").fetchone()

print(result)

close

con.close()

samansmink commented 1 month ago

Hi @Benyaminwasnthere could you tell me what happens when you set allow_extensions_metadata_mismatch to false? you are circumventing a check here which checks that the extension matches platform and version of the duckdb instance trying to load it.