Skip to content

Failed to build with python2 is a batch file #750

Closed
@jixunmoe

Description

gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` succeeded python2 D:\bin\python2.CMD
gyp ERR! configure error
gyp ERR! stack Error: spawn python2 ENOENT
gyp ERR! stack     at exports._errnoException (util.js:814:11)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
gyp ERR! stack     at onErrorNT (internal/child_process.js:344:16)
gyp ERR! stack     at doNTCallback2 (node.js:430:9)
gyp ERR! stack     at process._tickCallback (node.js:344:17)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\PROGRAM FILES\\IOJS\\node.exe" "C:\\Program Files\\iojs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\xyz\node_modules\irc\node_modules\node-icu-charset-detector
gyp ERR! node -v v2.4.0
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok

The content of my python2.cmd is:

@C:\Python27\Python.exe %*

Suggestion: Able to read from a environment variable first, such as PYTHON2_PATH?
I don't mind set up those variable manually.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions