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

Loading extensions broken in node #1276

Closed
whscullin opened this issue May 24, 2023 · 3 comments
Closed

Loading extensions broken in node #1276

whscullin opened this issue May 24, 2023 · 3 comments

Comments

@whscullin
Copy link
Contributor

whscullin commented May 24, 2023

What happens?

Attempting to dynamically load an extension using duckdb-wasm under node fails in a few ways.

Executing the sequence

INSTALL icu
LOAD icu

first fails with

Error: IO Error: Can't find the home directory at '/home/web_user'

setting home_directory to os.homedir(), then gives:

Error [TypeError]: g_.getSocket is not a function

(Simply running LOAD icu tells you to install the extension)

To Reproduce

Executing the sequence

INSTALL icu
LOAD icu

when using duckdb-wasm under node.

Browser/Environment:

node v16.14.2

Device:

MacBook Pro

DuckDB-Wasm Version:

0.8.0

DuckDB-Wasm Deployment:

Malloy

Full Name:

Will Scullin

Affiliation:

Google

@alukach
Copy link

alukach commented Jul 12, 2023

See #1202

@carlopi
Copy link
Collaborator

carlopi commented Jan 18, 2024

I think this has been solved properly since #1544, could you give a try with the latest version?

Thanks a lot

@carlopi carlopi closed this as completed Jan 18, 2024
@whscullin
Copy link
Contributor Author

Just tried the latest, looks to be fixed. Thanks!

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

3 participants