Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation Fault #76

Open
Benyaminwasnthere opened this issue Jul 16, 2024 · 1 comment
Open

Segmentation Fault #76

Benyaminwasnthere opened this issue Jul 16, 2024 · 1 comment

Comments

@Benyaminwasnthere
Copy link

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants