-
Notifications
You must be signed in to change notification settings - Fork 18
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
creating package gives an error #2
Comments
I tried to reproduce it with node 14.16.0, but it works for me. However it fails with node 15.14.0. I will try to investigate, but I have no idea yet. :-( |
Hi Thomas, |
The error looks comparable, but I am not sure that it is the same. I tried disabling the classes initializations (inside the module initialization) but the error persists. |
I refactored some of the ID property lists and now it works on node 14 - 16, if compiled on node 14. Could you check if that fixed your error please? The error is:
|
I will give it a try, thanks!!
Sitan
|
Hi Thomas, Attempt 2.
internal/modules/cjs/loader.js:1127 Error: Een initialisatieroutine van de dynamic link library (DLL-bestand) is mislukt. Attempt 3. Then I tried on a different computer, it seems to work on that (except from a mkdir command that failed on Windows). I'll try it again. |
Hi Thomas, |
Hi Thomas, Small note: in your ## Build package tutorial you wrote: 5. I got the cameralist, camera properties, took a picture and generated csv files and started the interval with the liveview. |
I am happy to hear that. 🥳 Sorry about the directory. I have a global directory "NodeRepository" that I link into project group directories as "node_packages". Seems I forgot the recursive option for the mkdir call. :-) You are right about the install command. Fixed it and updated the example code to match the refactorings. Thank you for your persistence. |
Hi, I came across your project with great interest as I'm trying to also control my Canon camera via a nodeJS app. Seems like the problem is the node.api.node file is not initialising properly or I'm building the .node file wrongly? Really appreciate any ideas to resolve this. I'm using:
This is the error I got:
And I'm using the "EDSDK_13.14.40" branch |
Some of the successful builds can not be loaded. It seems to depend on the node version and the EDSDK version. You can experiment with the different branches for specific EDSDK releases. For me I need to build with node 14.16 and can load the result in node 14 to 16. Here is no compiling error so I have no idea how to fix this at the moment. |
Thank you! Yes. building with node 14.16 works! |
Greetings! I am running into this issue today. Using node 14.16.0 and trying to package but I get that same error:
I am using that EDSDK_13.14.40 branch. Here's my version info if that helps: {
'@dimensional/napi-canon-cameras': '0.1.0',
npm: '6.14.11',
ares: '1.16.1',
brotli: '1.0.9',
cldr: '37.0',
icu: '67.1',
llhttp: '2.1.3',
modules: '83',
napi: '7',
nghttp2: '1.41.0',
node: '14.16.0',
openssl: '1.1.1j',
tz: '2020a',
unicode: '13.0',
uv: '1.40.0',
v8: '8.4.371.19-node.18',
zlib: '1.2.11'
} I'm at a loss for anything else to try! I did previously have node v16 installed but I attempted to remove that and switch to 'nvm for windows' should I could install the older version of node. |
Hi Thomas,
nice project!!
I was trying to do: npm run package
and I ran into an error, see below:
Any suggestions?
Thanks in advance,
Sitan van Sluis
Using:
Windows 10, Visual Studio Community 2019
EDSDKv131300W
npm version
{
'@dimensional/napi-canon-cameras': '0.1.0',
npm: '7.6.2',
node: '14.16.0',
v8: '8.4.371.19-node.18',
uv: '1.40.0',
zlib: '1.2.11',
brotli: '1.0.9',
ares: '1.16.1',
modules: '83',
nghttp2: '1.41.0',
napi: '7',
llhttp: '2.1.3',
openssl: '1.1.1j',
cldr: '37.0',
icu: '67.1',
tz: '2020a',
unicode: '13.0'
}
internal/modules/cjs/loader.js:1122
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: Een initialisatieroutine van de dynamic link library (DLL-bestand) is mislukt.
\?\C:\Users\info\napi-canon-cameras-master\prebuilds\win32-x64\node.napi.node
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1122:18)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at load (C:\Users\info\napi-canon-cameras-master\node_modules\node-gyp-build\index.js:21:10)
at Object. (C:\Users\info\napi-canon-cameras-master\camera-api.js:1:40)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
npm ERR! code 3221225477
npm ERR! path C:\Users\info\napi-canon-cameras-master
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node ./helpers/update-stubs.js
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\info\AppData\Local\npm-cache_logs\2021-04-22T14_18_28_264Z-debug.log
npm ERR! code 3221225477
npm ERR! path C:\Users\info\napi-canon-cameras-master
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c npm run _update:stubs && npm run _build:stubs:types && npm run _build:es2015 && npm run _build:esm && npm run _build:umd && npm run _build:umd:min
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\info\AppData\Local\npm-cache_logs\2021-04-22T14_18_28_291Z-debug.log
npm ERR! code 3221225477
npm ERR! path C:\Users\info\napi-canon-cameras-master
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c npm run prebuild:ia32 && npm run prebuild:x64 && npm run build:stubs
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\info\AppData\Local\npm-cache_logs\2021-04-22T14_18_28_312Z-debug.log
npm ERR! code 3221225477
npm ERR! path C:\Users\info\napi-canon-cameras-master
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c npm run prebuild && node helpers/create-tgz.js
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\info\AppData\Local\npm-cache_logs\2021-04-22T14_18_28_333Z-debug.log
/c/Program Files/nodejs/npm: line 37: 1861 Segmentation fault "$NODE_EXE" "$NPM_CLI_JS" "$@"
The text was updated successfully, but these errors were encountered: