Skip to content

Can't find Python executable "python", you can set the PYTHON env variable. #5778

Closed
@ozbillwang

Description

@ozbillwang

Issue Description

when run docker build, I got below error

$ docker build -t parse-server . 
...
> [email protected] install /tmp/node_modules/bcrypt
> node-pre-gyp install --fallback-to-build

node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | linux | x64
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp info check checked for "/tmp/node_modules/bcrypt/lib/binding/bcrypt_lib.node" (not found)
node-pre-gyp http GET https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.6/bcrypt_lib-v3.0.6-node-v64-linux-x64-musl.tar.gz
node-pre-gyp http 404 https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.6/bcrypt_lib-v3.0.6-node-v64-linux-x64-musl.tar.gz
node-pre-gyp WARN Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.6/bcrypt_lib-v3.0.6-node-v64-linux-x64-musl.tar.gz
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, musl) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.6/bcrypt_lib-v3.0.6-node-v64-linux-x64-musl.tar.gz
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.

Steps to reproduce

docker build -t parse-server . 

I tested in release 3.4.4 and 3.5.0, same issue

Expected Results

I should get the docker image to be built. I am interesting, how the image to be built and push to hub.docker.io here?

Actual Outcome

Can't find Python executable "python", you can set the PYTHON env variable.

Environment Setup

  • Server

    • parse-server version (Be specific! Don't say 'latest'.) : [3.5.0 and 3.4.4]
    • Operating System: [MacOS]
    • Hardware: [MacOs]
    • Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): [not test at this stage]
  • Database

    • MongoDB version: [not test at this stage]
    • Storage engine: [not test at this stage]
    • Hardware: [not test at this stage]
    • Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): [not test at this stage]

Logs/Trace

If I add python in Dockerfile, I will get another errors, such as no make, no gcc, etc.

Metadata

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