Hi I have started getting an error of The Python interpreter can't be found. Below is my pipeline file
The error happens on this step - pipenv install --skip-lock --system
Any help would be amazing, as for bitbucket pipelines does it pull python from my local machine? or is this installed on a virtual machine on bitbucket side?
options:
docker: true
image: python:3.8-slim
test: &test
step:
name: 'Build and Test'
script:
- echo "Your build and test goes here..."
lint: &lint
step:
name: 'Lint'
script:
- echo "Your linting goes here..."
-
push-development: &push-development
step:
name: 'Deployment to Partners'
deployment: partners
image: google/cloud-sdk:latest
trigger: 'manual'
script:
- echo ${KEY_FILE_AUTH} | base64 --decode --ignore-garbage > /tmp/gcloud-api.json
- echo ${ENV_FILE} | base64 --decode --ignore-garbage > ./api/settings/.env
- pip install pip pipenv --upgrade
- pipenv install --skip-lock --system
- pip install -r ./requirements.txt
- source ./api/settings/.env
Hi, imagine my surprise when this error started appearing in my deployment (where nothing changed since the last successful one) and the first thing I find about it is an hour old post :).
The issue seems to be in the newest release of pipenv (2022.8.15), I downgraded to 2022.8.5 and it started working.
Wow ok, do you have the step command to use pipenv 2022.8.5 not really sure how to do that in bitbucket pipelines
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not using Bitbucket, but I guess it will work if you just remove `pipenv` from:
- pip install pip pipenv --upgrade
and just add
- pip install pipenv=2022.8.5
after it in the script.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.