GithubHelp home page GithubHelp logo

Image broken about python HOT 8 OPEN

azure-app-service avatar azure-app-service commented on August 18, 2024 5
Image broken

from python.

Comments (8)

sardinois avatar sardinois commented on August 18, 2024

Experiencing the same behaviour.
The antenv virtualenv is not created, nor are the requirements.txt installed

from python.

sebastianhaas avatar sebastianhaas commented on August 18, 2024

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.

amahlaka avatar amahlaka commented on August 18, 2024

I am having this same issue, I was not able to fix it by removing and creating a new web app.

from python.

JBuitelaar avatar JBuitelaar commented on August 18, 2024

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.

surajjacob avatar surajjacob commented on August 18, 2024

Same here

from python.

gxsins avatar gxsins commented on August 18, 2024

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.

gxsins avatar gxsins commented on August 18, 2024

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.

penkin avatar penkin commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.