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

Could not install pip packages: could not run pip: exit status 1 While Publishing flask in PCF #959

Open aditinandagudi opened 2 months ago

aditinandagudi commented 2 months ago

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? cf8

What version of the buildpack you are using? dicf_python_buildpack_latest

If you were attempting to accomplish a task, what was it you were attempting to do? I am trying to publish my flask application in pcf

What did you expect to happen? app should be published

What was the actual behavior? I am getting the below error

Could not install pip packages: could not run pip: exit status 1 Failed to compile droplet: Failed to run all supply scripts: exit status 14 Exit status 223 Cell 2f49514b-0d00-4a94-8aab-9317da2982ac stopping instance 1d68a33d-ef53-4c48-b2f1-39c90565ed3a Cell 2f49514b-0d00-4a94-8aab-9317da2982ac destroying container for instance 1d68a33d-ef53-4c48-b2f1-39c90565ed3a BuildpackCompileFailed - App staging failed in the buildpack compile phase

Please confirm where necessary:

arjun024 commented 2 months ago

Hi @aditinandagudi, we can take a look if you can attach more logs (cf logs <app> --recent), an example app and the exact version number of the buildpack

aditinandagudi commented 2 months ago

requirements.txt summary.txt logs.txt

Hi @arjun024, Thank you for your reply

I am attaching the example py file as txt file because I cannot upload the .py file

I am using following build pack: dicf_python_buildpack_latest

Let me know if you need more information

Thank you, Aditi N

arjun024 commented 2 months ago

I am using following build pack: dicf_python_buildpack_latest

What is that? Are you not using the standard CF buildpack version?