Skip to content
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

Tekton pipeline fails on the build step with missing python #14

Open
gasgithub opened this issue Nov 10, 2020 · 1 comment
Open

Tekton pipeline fails on the build step with missing python #14

gasgithub opened this issue Nov 10, 2020 · 1 comment

Comments

@gasgithub
Copy link

Describe the bug
Application cannot be built successfully as the image used to build doesnt have Python inside.
Below you can find error log from the build task from the default nodejs pipeline:

> [email protected] install /opt/app-root/src/node_modules/dtrace-provider
> node-gyp rebuild || node suppress-error.js

gyp ERR! find Python 
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - "python" is not in PATH or produced an error
gyp ERR! find Python checking if "python2" can be used
gyp ERR! find Python - "python2" is not in PATH or produced an error
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python 
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
gyp ERR! find Python   (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python   npm config set python "/path/to/pythonexecutable"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python 
gyp ERR! configure error 
gyp ERR! stack Error: Could not find any Python installation to use

To Reproduce
Steps to reproduce the behavior:

  1. Generate your app based on template
  2. Setup project and pipeline
  3. Start pipeline
  4. See error above

Expected behavior
A clear and concise description of what you expected to happen.
Application successfully deployed using default pipeline created based on ibm-nodejs tekton pipeline.

Desktop (please complete the following information):

  • OpenShift 4.4 on IBM Cloud
@gasgithub
Copy link
Author

Modified Dockerfile to include python - PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant