-
Notifications
You must be signed in to change notification settings - Fork 26
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
Symbol not found in flat namespace #17
Comments
Could you share your OS, compiler version, python version and node/node-gyp version? Thanks |
OS: Monterey 12.4 (21F79) |
Could you run this and attach the output? |
Hi, thanks. I got this error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool-classic:
can't open file: /Users/tmp/dalle-playground/node_modules/node-calls-python/build/Release/nodecallspython.node (No such file or directory) |
You may have deleted the file which is present in the error message above (dlopen(....)) |
So I switched to Node v18, and got this error instead ❯ node index
node:internal/modules/cjs/loader:1196
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: dlopen(/Users/wobsoriano/tmp/dalle-playground/node_modules/node-calls-python/build/Release/nodecallspython.node, 0x0001): tried: '/Users/wobsoriano/tmp/dalle-playground/node_modules/node-calls-python/build/Release/nodecallspython.node' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))
at Module._extensions..node (node:internal/modules/cjs/loader:1196:18)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:834:12)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/Users/wobsoriano/tmp/dalle-playground/node_modules/node-calls-python/index.js:4:25)
at Module._compile (node:internal/modules/cjs/loader:1112:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:834:12) {
code: 'ERR_DLOPEN_FAILED'
}
Node.js v18.4.0 Looks like an architecture problem. I'm on M1 Pro |
Try to specify the arch for npm like these: Honestly this problem is not related to the addon. Looks like node-gyp compiles for x64 but you run node arm64. Please also note that you need python for arm64 as well. Otherwise you may run rosetta2 to run x64 code on your M1 Pro. |
Did the trick, thanks! |
I am on M1 and was still getting this error: |
Hey, this is an awesome module! I am on M1 Pro and was getting this error:
Followed the installation instructions and installed the needed stuff. Copied the example usage.
Any help would be much appreciated!
The text was updated successfully, but these errors were encountered: