cloudfoundry / python-buildpack

Cloud Foundry buildpack for the Python Language
http://docs.cloudfoundry.org/buildpacks/
Apache License 2.0
121 stars 279 forks source link

Update buildpack to new pip version (9.0.3) #104

Closed jjtapia closed 6 years ago

jjtapia commented 6 years ago

A new version of pip has been released (9.0.3). Pypi sites have changed to not accepting TLS 1.0 and 1.1 so Cloudfoundry deployments that still use pip 9.0.1 are currently failing when attempting to install packages (https://stackoverflow.com/questions/49748063/pip-install-fails-for-every-package-could-not-find-a-version-that-satisfies-th/49748494#49748494). Updating to pip 9.0.3 should address the problem.

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version?

{
   "name": "",
   "build": "",
   "support": "http://support.cloudfoundry.com",
   "version": 0,
   "description": "",
   "authorization_endpoint": "https://login.mcf-np.monsanto.com",
   "token_endpoint": "https://uaa.mcf-np.monsanto.com",
   "min_cli_version": "6.10.0",
   "min_recommended_cli_version": "6.11.0",
   "api_version": "2.97.0",
   "app_ssh_endpoint": "ssh.mcf-np.monsanto.com:2222",
   "app_ssh_host_key_fingerprint": "9e:3f:26:9a:2d:69:2a:52:46:7a:51:d2:8c:5a:04:f1",
   "app_ssh_oauth_client": "ssh-proxy",
   "doppler_logging_endpoint": "wss://doppler.mcf-np.monsanto.com:443"
}
cf version 6.34.1+bbdf81482.2018-01-17

What version of the buildpack you are using?

python_buildpack-cached-v1.6.13.zip

If you were attempting to accomplish a task, what was it you were attempting to do?

Start up cloudfoundry app

What did you expect to happen?

Start up

What was the actual behavior?

   Downloaded app package (31.9M)
   -----> Supplying Python
   -----> Python Buildpack version 1.6.13
   -----> Installing python 2.7.14
          Copy [/tmp/buildpacks/5c35f30dccb7a7796cfca44b7c47333d/dependencies/c2606df21718d9ec70f16e9d69c67b78/python-2.7.14-linux-x64-30d9c08f.tgz]
   -----> Installing setuptools 39.0.1
          Copy [/tmp/buildpacks/5c35f30dccb7a7796cfca44b7c47333d/dependencies/509627c5dc9b7de80985694fcc9e83db/setuptools-39.0.1-bec7badf.zip]
   -----> Installing pip 9.0.1
          Copy [/tmp/buildpacks/5c35f30dccb7a7796cfca44b7c47333d/dependencies/8a019cf0880a8d3ed97f1606c308ee61/pip-9.0.1-35f01da3.tar.gz]
   -----> Installing pip-pop 0.1.1
          Copy [/tmp/buildpacks/5c35f30dccb7a7796cfca44b7c47333d/dependencies/ee6dcba05f17753b4c10c2ab872711d6/pip-pop-0.1.1-d410583a.tar.gz]
   -----> Running Pip Install
          Collecting biopython (from -r /tmp/contents427854706/deps/0/requirements.txt (line 2))
            Could not find a version that satisfies the requirement biopython (from -r /tmp/contents427854706/deps/0/requirements.txt (line 2)) (from versions: )
          No matching distribution found for biopython (from -r /tmp/contents427854706/deps/0/requirements.txt (line 2))
          pip install has failed. You have a vendor directory, it must contain all of your dependencies.
          **ERROR** Could not install pip packages: Couldn't run pip: exit status 1
   Failed to compile droplet: Failed to run all supply scripts: exit status 14

Please confirm where necessary:

cf-gitbot commented 6 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/156864505

The labels on this github issue will be updated when the story is started.

sclevine commented 6 years ago

Thanks for the report! We plan to release a new version of the buildpack with pip 9.0.3 ASAP. Please follow: https://www.pivotaltracker.com/story/show/156865415

ameyer-pivotal commented 6 years ago

@jjtapia @sclevine Picking this up right now

sclevine commented 6 years ago

Pip is now at version 9.0.3 in the latest release.