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

[cli]: External database extensions fail to load in released CLI #3478

Closed
prrao87 opened this issue May 12, 2024 · 2 comments
Closed

[cli]: External database extensions fail to load in released CLI #3478

prrao87 opened this issue May 12, 2024 · 2 comments
Assignees
Labels
bug Something isn't working cli

Comments

@prrao87
Copy link
Member

prrao87 commented May 12, 2024

Kùzu version: 0.4.1
Extension version: 0.3.1

Both the duckdb and postgres extensions fail to load successfully via the CLI on macOS. The issue isn't present when the extensions are loaded via the Python client.

kuzu> INSTALL duckdb;
-----------------------------------------
| result                                |
-----------------------------------------
| Extension: duckdb has been installed. |
-----------------------------------------
(1 tuple)
(1 column)
Time: 0.07ms (compiling), 884.58ms (executing)
kuzu> LOAD EXTENSION duckdb;
Error: IO exception: Extension "/Users/prrao/.kuzu/extension/0.3.1/osx_arm64/libduckdb.kuzu_extension" could not be loaded.
Error: dlopen(/Users/prrao/.kuzu/extension/0.3.1/osx_arm64/libduckdb.kuzu_extension, 0x0006): symbol not found in flat namespace '__ZN4kuzu4main13ClientContext16getMemoryManagerEv'
kuzu> INSTALL postgres;
-------------------------------------------
| result                                  |
-------------------------------------------
| Extension: postgres has been installed. |
-------------------------------------------
(1 tuple)
(1 column)
Time: 0.04ms (compiling), 720.29ms (executing)
kuzu> LOAD EXTENSION postgres;
Error: IO exception: Extension "/Users/prrao/.kuzu/extension/0.3.1/osx_arm64/libpostgres.kuzu_extension" could not be loaded.
Error: dlopen(/Users/prrao/.kuzu/extension/0.3.1/osx_arm64/libpostgres.kuzu_extension, 0x0006): symbol not found in flat namespace '__ZN4kuzu4main13ClientContext16getMemoryManagerEv'
@prrao87 prrao87 added bug Something isn't working cli labels May 12, 2024
@prrao87 prrao87 changed the title [cli]: Extension fails to load after installing CLI on homebrew on Mac [cli]: External database extensions fail to load after installing CLI on homebrew on Mac May 12, 2024
@acquamarin acquamarin changed the title [cli]: External database extensions fail to load after installing CLI on homebrew on Mac [cli]: External database extensions fail to load in released CLI May 13, 2024
mewim added a commit that referenced this issue May 14, 2024
* Update project version to 0.4.1

* Try to address #3478 by disabling LTO in release binaries

* Update version to 0.4.2

* Update Rust version

* Address #3458

* Disable renaming on Windows due to conflict

* Add comment

* Do not strip binary during installation

* Fix Rust
@mewim
Copy link
Collaborator

mewim commented May 14, 2024

I have published v0.4.2 with the fix and submitted a PR to Homebrew repo: Homebrew/homebrew-core#171711. This can be closed after the PR is merged.

@mewim
Copy link
Collaborator

mewim commented May 14, 2024

Screenshot 2024-05-14 at 5 48 10 PM Can confirm that kuzu v0.4.2 from Homebrew can now load extensions without the error.

@mewim mewim closed this as completed May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli
Projects
None yet
Development

No branches or pull requests

3 participants