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

Error running example from readme #7

Open
possibilities opened this issue Jul 29, 2023 · 3 comments
Open

Error running example from readme #7

possibilities opened this issue Jul 29, 2023 · 3 comments

Comments

@possibilities
Copy link

I get this error when I run the js example in the readme:

▶ node index.js
node:internal/modules/cjs/loader:1282
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: /home/mike/code/chidori-example/node_modules/@1kbirds/chidori/package_node/native/chidori.node: invalid ELF header
    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1282:18)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:108:18)
    at Object.<anonymous> (/home/mike/code/chidori-example/node_modules/@1kbirds/chidori/package_node/index.js:23:5)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12) {
  code: 'ERR_DLOPEN_FAILED'
}

Happy to dig around if you prompt me with any details or hunches about this but initially it looks a bit intimidating.

@mweichert
Copy link

mweichert commented Jul 29, 2023

Having the same issue. FYI, I'm running Ubuntu linux on an Intel iMac. What is chidori.node?

@possibilities I did find that I was able to get this work by cloning the repo, building the NPM package, and installing that locally built version as opposed to installing the package from NPM.

@kvey
Copy link
Contributor

kvey commented Jul 29, 2023

I'm currently working on resolving issues with the current release process and this should be resolved soon!

That will include also moving the examples to depending on the most recent release instead of a local build and containerizing those so that they're easy to run (and act as validation of any future releases).

chidori.node is the native module produced by the rust build (and copied over via cargo-cp-artifact referred to in chidori/package.json

@talglobus
Copy link

@kvey Any updates?

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

4 participants