I am using pants version 0.0.32 + a few more commits from master.
I want to use a pex distribution that bundles in both Linux and MacOS support. I am building the pex from the Pants OSS repo using:
git clean -fdx
PANTS_DEV=1 ./pants binary ./src/python/pants/bin:pants
I took the freshly created file dist/pants.pex and it works fine on my mac. When I try to run it in my Linux environment, it exits with an error:
./pants test foo
Running Pants version square-20150331-02
...
11:53:22 00:08 [pytest]
11:53:22 00:08 [run]
WARN] /data/app/kochiku-worker/.pex/install/requests-2.5.3-py2.py3-none-any.whl.ed9d28acc3c467062b25b9dc2e2084d6efa8ee1e/requests-2.5.3-py2.py3-none-any.whl/requests/packages/urllib3/connection.py:251: SecurityWarning: Certificate has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.)
SecurityWarning
FAILURE: Unable to detect a suitable interpreter for compatibilities: (Conflicting targets: )
[32m
Waiting for background workers to finish.[0m[31m
FAILURE[0m
What I think is happening here is that for some reason, pants is running under Python 2.6. I investigated the security error and it appears it can be accidentally tripped when using python version earlier than python 2.7.2. The version of python installed on the machine I'm trying to use is installed in /usr/local/bin and is version 2.7.9