Codeship Custom Script Deployment to GAE: "python2: command not found"

77 Views Asked by At

I've followed Codeship's custom script deployment pipeline setup but reached trouble with the following error when trying to deploy to Google App Engine:

pyenv: python2: command not found

Here are screenshots of my codeship setup commands: setup commands The deployment pipeline setup: codeship GAE custom deployment pipeline

and the Codeship console output: codeship console error

Any ideas why it thinks I'm on python2?

2

There are 2 best solutions below

0
Michelle On

The fastest way to reach CodeShip support is by emailing [email protected] - You'll need to set the python version to 2.7 before the deploy steps in order to use this deploy script.

We can continue to work on the ticket created with support - but I wanted to be sure to answer here for any other users. :)

0
kip2 On

Combining the answers from @Michelle and @eespinola, I had to change from:

pyenv local 3.7

to:

pyenv global 2.7 3.7

in the setup commands