Giorgi / DuckDB.NET

Bindings and ADO.NET Provider for DuckDB
https://duckdb.net
MIT License
343 stars 62 forks source link

Unhandled exception. System.EntryPointNotFoundException: Unable to find an entry point named 'duckdb_open_ext' in shared library 'duckdb'. #66

Closed jorisvdstraten closed 1 year ago

jorisvdstraten commented 1 year ago

Hi,

When using the DuckDB.Net package on a Mac M1 I receive the following error on db.Open(): Unhandled exception. System.EntryPointNotFoundException: Unable to find an entry point named 'duckdb_open_ext' in shared library 'duckdb'.

I've included the duckdb executable in the project directory and set it to copy to output so it's included in the bin/debug folder.

Giorgi commented 1 year ago

@jorisvdstraten Did you include libduckdb.dylib?

jorisvdstraten commented 1 year ago

No, seems I was confused and included the duckdb executable, sorry about that and thanks for your suggestion. Now I receive a MacOS permission window error telling the libduckdb.dylib cannot be opened because the developer cannot be verified.

Giorgi commented 1 year ago

Do you get that error at runtime?

jorisvdstraten commented 1 year ago

Yes.

jorisvdstraten commented 1 year ago

I've managed to let it work by opening the bin/debug/libduckdb.dylib by right clicking in the Finder. Seems to be a MacOS permission related issue.