Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Dynamic Symbol Retrieval Error: "popen": The handle is invalid. #3

Closed
raitucarp opened this Issue · 6 comments

3 participants

@raitucarp

var execSync = require('execSync');

Error: Dynamic Symbol Retrieval Error: "popen": The handle is invalid.
at DynamicLibrary.get (execSync\node_modules\ffi\lib\dynamic_library.js:112:11)
at execSync\node_modules\ffi\lib\library.js:50:19
at Array.forEach (native)
at Object.Library (execSync\node_modules\ffi\lib\library.js:47:28)
at Object. (execSync\index.js:8:16)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)

@mgutz
Owner

which OS are you on?

@raitucarp

Windows XP sp3, 32bit version it seems popen not supported

@ghost

Same issue here, installed on W7 x64 using Python 2.7.

Tried installing from both cygwin and cmd.exe. The following warns came up during the install:

c:\Dev\node_modules\execSync\node_modules\ffi>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  dlfcn.c
  dlfcn.vcxproj -> c:\Dev\node_modules\execSync\node_modules\ffi\build\Release\lib\dlfcn.lib
  Building assembly file c:\Dev\node_modules\execSync\node_modules\ffi\deps\libffi\src\x86\win64.asm
  prep_cif.c
  types.c
  raw_api.c
  closures.c
  java_raw_api.c
  ffi.c
  ffi.vcxproj -> c:\Dev\node_modules\execSync\node_modules\ffi\build\Release\\libffi.lib
  pthread.c
  pthread.vcxproj -> c:\Dev\node_modules\execSync\node_modules\ffi\build\Release\lib\pthread.lib
  threaded_callback_invokation.cc
  callback_info.cc
  ffi.cc
C:\Users\[xxxxxx]\.node-gyp\0.8.17\deps\v8\include\v8.h(183): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [c:\Dev\
node_modules\execSync\node_modules\ffi\build\ffi_bindings.vcxproj]
          with
          [
              T=v8::Object
          ] (..\src\ffi.cc)
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\xmemory0(605): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::H
andle<T>)' [c:\Dev\node_modules\execSync\node_modules\ffi\build\ffi_bindings.vcxproj]
          with
          [
              T=v8::Object
          ] (..\src\callback_info.cc)
C:\Users\[xxxxxx]\.node-gyp\0.8.17\deps\v8\include\v8.h(178): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [c:\Dev\
node_modules\execSync\node_modules\ffi\build\ffi_bindings.vcxproj]
          with
          [
              T=v8::Object
          ] (..\src\threaded_callback_invokation.cc)
     Creating library c:\Dev\node_modules\execSync\node_modules\ffi\build\Release\ffi_bindings.lib and object c:\Dev\node_modules\execSync\node_modules\ffi\build\Release\ffi_
  bindings.exp
  Generating code
  Finished generating code
  ffi_bindings.vcxproj -> c:\Dev\node_modules\execSync\node_modules\ffi\build\Release\\ffi_bindings.node
execSync@0.0.3 ..\node_modules\execSync
+-- ffi@1.2.4 (bindings@1.0.0, ref-struct@0.0.5, debug@0.7.2, ref@0.1.3)

c:\Dev\execsrctests>
@mgutz
Owner

I have not tried this on Windows. I develop on OSX and CrunchBang. I'll look at this weekend. Thanks for reporting it.

@tkristensen

I've also run into this while trying to install

...
npm http GET https://registry.npmjs.org/delayed-stream/0.0.5
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\xlocale(336): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [C:\node_projects\redoxon-rfp-demo\node_modules\jsdom\node_modules\contextify
\build\contextify.vcxproj]
C:\Users\tkr.node-gyp\0.10.10\deps\v8\include\v8.h(184): warning C4506: no definition for inline function 'v8::Persistent v8::Persistent::New(v8::Handle)' [C:\node_projects\redoxon-rfp-demo\node_modules\jsdom\node_modules\contextify\build\
contextify.vcxproj]
with
[
T=v8::Object
]
C:\Users\tkr.node-gyp\0.10.10\deps\v8\include\v8.h(184): warning C4506: no definition for inline function 'v8::Persistent v8::Persistent::New(v8::Handle)' [C:\node_projects\redoxon-rfp-demo\node_modules\jsdom\node_modules\contextify\build\
contextify.vcxproj]
with
[
T=v8::FunctionTemplate
]
Creating library C:\node_projects\redoxon-rfp-demo\node_modules\jsdom\node_modules\contextify\build\Release\contextify.lib and object C:\node_projects\redoxon-rfp-demo\node_modules\jsdom\node_modules\contextify\build\Release\contextify.exp
Generating code

....

a fix for this would be appreciated!

@mgutz
Owner

Please try latest. Closing this ticket in a couple of days if no response.

@mgutz mgutz closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.