-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Oryx doesn't create antenv and install requirements.txt - Python 3.7 Linux Web App #557
Comments
I am encountering the same issue, my temporary work around was to create a custom startup script and explicitly install the requirements file.
(I have a flask app with pandas failing to install) screencap below stating the same thing as aholler2 |
Thanks for reporting .. we will try to repro this and get back to you soon. |
@arroyc It's easiest to reproduce with a simple Azure Pipeline app service deployment task or deploying to web app via the VS Code app service extension. Both do a zip deployment and the antenv virtual environment is not being built before deployment as well (expect Oryx to do that). |
@aholler2, for zip deployment .. oryx is not enabled by default . https://docs.microsoft.com/en-us/azure/app-service/deploy-zip , that means if you are using zip deployment, it's expected that you have all your dependencies including your virtual env inside your zip |
@RJFerguson can you please create separate issue for panda being failed .. hope you saw my answer for zip deployment .. but before you create that issue I would like you to try local git push for the flask-panda app and not using zip deployment |
Hi Team, i am also facing a similar problem. In my git push it is saying 'could not find requirements.txt'. The following is the log of my git commit & git push. Let me know how it can be resolved. Without installing the packages my app will not work. D:\MSLUIS\Weather-Chatbot-Using-Luis-master>git push weatherbot master -f
|
@arroyc Thank you for that information. I eventually figured out that Oryx will only do the building with a local git deployment and that you have to do the environment building in the pipeline when you do a ZIP deployment. Maybe I can update this issue to a feature request that Oryx builds dependencies with ZIP deployments if the venv specified in the Oryx manifest does not exist? |
@aholler2, thanks for responding … as far as I know there is a feature for that (what you are asking) already and is pending for deployed across app service region in their next update. @sanchitmehta can confirm … @sidbhat1979 I already responded your issue .. if you don't mind I will close that one as it seems to be duplicate Please let me know if I can close this issue now |
After reading the ZIP deployment documentation that you linked and some experimenting with deployments, you can get Oryx to do the dependency building by setting the app setting SCM_DO_BUILD_DURING_DEPLOYMENT=true. @arroyc Thank you for working through this with me. |
@aholler2 Adding SCM_DO_BUILD_DURING_DEPLOYMENT=true did not work for me. I am getting The logs says |
I'm having exactly the same issue. |
We had the same problem and also the SCM_DO_BUILD_DURING_DEPLOYMENT=true did not help. We finally figured out that our app service is in a virtual network and that the outbound traffic for oryx is blocked. See this tiny paragraph here: https://github.com/microsoft/Oryx/blob/main/doc/hosts/appservice.md#network-dependencies. Also in this case, oryx failed silently and did not show a useful error message that helped us to find the error. |
@arroyc This problem still exists in November 2024 |
Feature Request
Time: 04/09/2020, Feature request UPDATE: 04/15/2020
Server: Azure Web Apps (Linux, PYTHON|3.7)
Repo: https://github.com/Azure-Samples/djangoapp
Oryx is failing to create the virtual env "antenv" and run pip install -r requirements.txt
I want antenv to be created and to have the requirements in requirements.txt be installed so that the Django server can start.
Create a new linux web app of type, Python 3.7. Do a zip deployment of the sample application to the app service. Check the Docker logs and you will see it fail just as it does below.
The text was updated successfully, but these errors were encountered: