Hi, Pants build works fine in my local machine. Wh...
# general
b
Hi, Pants build works fine in my local machine. When I try to run it through Jenkins, I get the below error.
Copy code
+ ./pants binary reaper/src/python/:main
[31mNo valid Python interpreter found. Pants requires Python 3.6+ to run.[0m
Build step 'Execute shell' marked build as failure
Finished: FAILURE
How do I fix this? By running it in a docker container with Python 3.6+ installed? Is there a way out without using docker? Thanks!
h
Hi, yes, you need to ensure that Python 3.6+ is discoverable on the $PATH. Pants needs Python 3.6+ to run, although if you have Python code your own code can still be written in Python 2
b
I have installed Python 3.7 and update the path variable in Jenkins, I get the below error.
Copy code
./pants: line 72: /var/jenkins_home/Python3/bin/python3.7: cannot execute binary file: Exec format error
[31mInvalid Python interpreter version for /var/jenkins_home/Python3/bin/python3.7. Pants requires Python 3.6+ to run.[0m
Build step 'Execute shell' marked build as failure
Finished: FAILURE
I am using docker image jenkins/jenkins to run jnkins from the docker hub