I am currently developing a Python Flask app on Windows, but deploying to Cloud Foundry on linux. I was able to successfully deploy the app before I integrated opencv for additional features. Application is also successfully running on local.
I am using Python 3.6.7 and the first error I’ve encountered was ImportError: libGL.so.1: cannot open shared object file: No such file or directory
.
After trying upgrading and downgrading to various Python versions, the current error is that there is an extremely long time when deploying the application which will result in a timeout error as seen below.
...
Running setup.py install for future: started
Running setup.py install for future: finished with status 'done'
Running setup.py install for pyxnat: started
Running setup.py install for pyxnat: finished with status 'done'
The script flask is installed in '/tmp/contents787828360/deps/0/python/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
The scripts imageio_download_bin and imageio_remove_bin are installed in '/tmp/contents787828360/deps/0/python/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
The script jsonpath_ng is installed in '/tmp/contents787828360/deps/0/python/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Running setup.py install for opencv-python: started
Running setup.py install for opencv-python: still running...
Running setup.py install for opencv-python: still running...
Running setup.py install for opencv-python: still running...
Running setup.py install for opencv-python: still running...
Running setup.py install for opencv-python: still running...
Running setup.py install for opencv-python: still running...
Running setup.py install for opencv-python: still running...
Running setup.py install for opencv-python: still running...
I have tried changing from opencv-python to opencv-python-headless (unable to run on windows local) and opencv-contrib-python (same issue when deploying). Also tried adding an Aptfile and tuning various OpenCV versions but to no avail.
Currently my issue is that the build has failed during deployment. Any insights will really help thank you.