Closed pruthvishetty closed 6 years ago
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/158309269
The labels on this github issue will be updated when the story is started.
The issue was due to importing a third party library called logging
into the Python 3 environment, which is hiding the standard library version. It is, by default, there in Python 3 environment. No need to import it via requirements.
I am trying to push a Python (3.6.5) app via Flask to Cloud Foundry (cf version 6.36.1+e3799ad7e.2018-04-04). The application takes a POST request (text file), does some text transformation, saves the new file, and returns a confirmation message. It works locally (tested via Postman). However, when attempting to push it to CF, it gives the following error -
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ygzuah5g/logging/
Could you please let me know how I can go about solving this issue? Thanks in advance. The entire files together are ~ 350 MB. I am using a manifest.yml
PS - Not sure if this is helpful/relevant, I do have
import queue
in one of my files. If I change it toimport Queue
(Py 2x compatible) and use Py 2.7.15 runtime, the cf push is successful, but it throws runtime errors