Comments (8)
Experiencing the same behaviour.
The antenv
virtualenv is not created, nor are the requirements.txt
installed
from python.
I could resolve this issue be deleting the App Service and creating a new one. Everything works fine for me when building the container locally. It is hard to reproduce this problem actually.
from python.
I am having this same issue, I was not able to fix it by removing and creating a new web app.
from python.
I'm having the same issue when trying to deploy from Azure DevOps using Azure App Service Deploy (version 4). It doesn't create the virtualenv and doesn't install the packages from requirements.txt.
However, it works fine when deploying using localgit.
from python.
Same here
from python.
Have this exact issue with Devops, But today started getting the issue for Github deployments too.
What i did notice was these lines.
Good Github Deployment:
Writing output script to '/opt/startup/startup.sh'
Using packages from virtual environment antenv located at /home/site/wwwroot/antenv.
Updated PYTHONPATH to ':/home/site/wwwroot/antenv/lib/python3.7/site-packages'
Bad Deployment:
Writing output script to '/opt/startup/startup.sh'
Found virtual environment .tar.gz archive.
Removing existing virtual environment directory /antenv...
Extracting to directory /antenv...
Using packages from virtual environment antenv located at /antenv.
Updated PYTHONPATH to ':/antenv/lib/python3.7/site-packages'
looking at the directory on Root of both shows this.
Good Deploy:
/home/site/wwwroot>ls
CHANGELOG.md
README.md
Requirements.txt
SubmittedBugs.txt
Untitled.ipynb
pycache
antenv
app.py
app_original.py
config.py
env
oryx-manifest.toml
static
templates
Bad Deploy:
/home/site/wwwroot>ls
README.md
Requirements.txt
pycache
antenv.tar.gz
app.py
config.py
oryx-manifest.toml
static
templates
Good deployment has the enviroment built and ready to go???
from python.
I think i solved it (for myself). I believe. Although requirements.txt never had an issue before with a 'R' it seems to now.
https://APPNAME.scm.azurewebsites.net/api/vfs/site/deployments/XXXXX/log.log
in there i found these lines
2019-10-22T20:49:02.9871595Z,Command: oryx build /home/site/wwwroot -o /home/site/wwwroot --platform python --platform-version 3.8 -i /tmp/xxx-p compress_virtualenv=tar-gz -p virtualenv_name=antenv --log-file /tmp/test.log ,,0
2019-10-22T20:49:36.1051840Z,Could not find requirements.txt; Not running pip install,,0
We Changed our Requirements file to a lowercase r in githuib AND in wwwRoot. Then redployed and it then showed pip install in the oryx build log files in deployment.
Good luck to anyone else.
Oh yea, in the shell, you cant just rename
/home/site/wwwroot>mv Requirements.txt requirements.txt
mv: 'Requirements.txt' and 'requirements.txt' are the same file
had to renamen to temp_req and then back
from python.
For anyone else stumbling on this, this did the trick for me;
Configuration -> App Settings -> Add new App Settings
SCM_DO_BUILD_DURING_DEPLOYMENT=true
Credit: StackOverflow
from python.
Related Issues (16)
- Django app serving static files is not working as expected behavior HOT 3
- Flask app failure happens days after deployment HOT 4
- pyodbc runtime is not supported HOT 19
- Missing libmysqlclient.so in Python Image HOT 2
- Installing python requirements HOT 5
- Problem having equals ("=") in environment variables values HOT 1
- Installing requirements HOT 1
- Python 3.7 missing Django and uwsgi.ini example from tmp
- invalid argument "/python:3.7_1912040917" for "-t, --tag" flag: invalid reference format
- Unable to install the pyodbc package HOT 2
- Image for Python 3.8? HOT 2
- Discrepancy between Gunicorn and uWSGI
- Accessing AAD authenticated, logged in user details (e.g. name/email) from deployed app service python web app
- Python Flask Web App deployment to Azure App Service Issue
- Shouldn't you archive this repo?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python.