Skip to content
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

Not finding requirements.txt #2081

Closed
ehullander opened this issue Jul 22, 2023 · 4 comments
Closed

Not finding requirements.txt #2081

ehullander opened this issue Jul 22, 2023 · 4 comments
Assignees

Comments

@ehullander
Copy link

Bug Report

  • At what date and time did you most recently experience the problem?
    7/21/2023 5pm PST

  • Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use.
    Azure Functions

  • If your repo is publicly available please share its URL:

  • What happened?
    Deployment of AzFn from vscode quit working. Code has not changed, but clicking the "Azure" button and deploying to our Azure environment now produces the following error.
    12:40:37 AM ct-fn-erictest-westus2-sandbox: Python Version: /tmp/oryx/platforms/python/3.9.7/bin/python3.9
    12:40:37 AM ct-fn-erictest-westus2-sandbox: Creating directory for command manifest file if it does not exist
    12:40:37 AM ct-fn-erictest-westus2-sandbox: Removing existing manifest file
    12:40:37 AM ct-fn-erictest-westus2-sandbox: Could not find setup.py or requirements.txt; Not running pip install. More information: https://aka.ms/requirements-not-found

The requirements.txt is in the same root directory it has always been
image

  • What did you expect or want to happen?
    A successful deployment

  • How can we reproduce it?
    Try to deploy Python AzFn app from VSCode

  • Do you have log output? Please include between the backticks:

12:40:25 AM ct-fn-erictest-westus2-sandbox: Starting deployment...
12:40:25 AM ct-fn-erictest-westus2-sandbox: Creating zip package...
12:40:28 AM ct-fn-erictest-westus2-sandbox: Zip package size: 90.4 kB
12:40:24 AM ct-fn-erictest-westus2-sandbox: Fetching changes.
12:40:25 AM ct-fn-erictest-westus2-sandbox: Cleaning up temp folders from previous zip deployments and extracting pushed zip file /tmp/zipdeploy/41d49569-38ea-4500-992d-b436e3e3057a.zip (0.09 MB) to /tmp/zipdeploy/extracted
12:40:33 AM ct-fn-erictest-westus2-sandbox: Updating submodules.
12:40:34 AM ct-fn-erictest-westus2-sandbox: Preparing deployment for commit id '331782e7-b'.
12:40:34 AM ct-fn-erictest-westus2-sandbox: PreDeployment: context.CleanOutputPath False
12:40:35 AM ct-fn-erictest-westus2-sandbox: PreDeployment: context.OutputPath /home/site/wwwroot
12:40:35 AM ct-fn-erictest-westus2-sandbox: Repository path is /tmp/zipdeploy/extracted
12:40:35 AM ct-fn-erictest-westus2-sandbox: Running oryx build...
12:40:35 AM ct-fn-erictest-westus2-sandbox: Command: oryx build /tmp/zipdeploy/extracted -o /tmp/build/expressbuild --platform python --platform-version 3.9.7 -i /tmp/8db8a4c42e8316c -p packagedir=.python_packages/lib/site-packages
12:40:35 AM ct-fn-erictest-westus2-sandbox: Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
12:40:35 AM ct-fn-erictest-westus2-sandbox: You can report issues at https://github.com/Microsoft/Oryx/issues
12:40:35 AM ct-fn-erictest-westus2-sandbox: Oryx Version: 0.2.20230508.1, Commit: 7fe2bf39b357dd68572b438a85ca50b5ecfb4592, ReleaseTagName: 20230508.1
12:40:35 AM ct-fn-erictest-westus2-sandbox: Build Operation ID: 748b40f1b9ca1c88
12:40:35 AM ct-fn-erictest-westus2-sandbox: Repository Commit : 331782e7-bc73-4c94-a94f-3761cd4cc3d7
12:40:35 AM ct-fn-erictest-westus2-sandbox: OS Type           : bullseye
12:40:35 AM ct-fn-erictest-westus2-sandbox: Image Type        : githubactions
12:40:35 AM ct-fn-erictest-westus2-sandbox: Detecting platforms...
12:40:36 AM ct-fn-erictest-westus2-sandbox: Detected following platforms:
12:40:36 AM ct-fn-erictest-westus2-sandbox:   python: 3.9.7
12:40:36 AM ct-fn-erictest-westus2-sandbox: Using intermediate directory '/tmp/8db8a4c42e8316c'.
12:40:36 AM ct-fn-erictest-westus2-sandbox: Copying files to the intermediate directory...
12:40:36 AM ct-fn-erictest-westus2-sandbox: Done in 0 sec(s).
12:40:37 AM ct-fn-erictest-westus2-sandbox: Source directory     : /tmp/8db8a4c42e8316c
12:40:37 AM ct-fn-erictest-westus2-sandbox: Destination directory: /tmp/build/expressbuild
12:40:37 AM ct-fn-erictest-westus2-sandbox: Python Version: /tmp/oryx/platforms/python/3.9.7/bin/python3.9
12:40:37 AM ct-fn-erictest-westus2-sandbox: Creating directory for command manifest file if it does not exist
12:40:37 AM ct-fn-erictest-westus2-sandbox: Removing existing manifest file
12:40:37 AM ct-fn-erictest-westus2-sandbox: Could not find setup.py or requirements.txt; Not running pip install. More information: https://aka.ms/requirements-not-found
12:40:37 AM ct-fn-erictest-westus2-sandbox: Not a vso image, so not writing build commands
12:40:37 AM ct-fn-erictest-westus2-sandbox: Preparing output...
12:40:37 AM ct-fn-erictest-westus2-sandbox: Copying files to destination directory '/tmp/build/expressbuild'...
12:40:37 AM ct-fn-erictest-westus2-sandbox: Done in 0 sec(s).
12:40:37 AM ct-fn-erictest-westus2-sandbox: Removing existing manifest file
12:40:37 AM ct-fn-erictest-westus2-sandbox: Creating a manifest file...
12:40:37 AM ct-fn-erictest-westus2-sandbox: Manifest file created.
12:40:37 AM ct-fn-erictest-westus2-sandbox: Copying .ostype to manifest output directory.
12:40:37 AM ct-fn-erictest-westus2-sandbox: Done in 1 sec(s).
12:40:37 AM ct-fn-erictest-westus2-sandbox: Writing the artifacts to a Zip file
12:40:37 AM ct-fn-erictest-westus2-sandbox: Running post deployment command(s)...
12:40:38 AM ct-fn-erictest-westus2-sandbox: Generating summary of Oryx build
12:40:38 AM ct-fn-erictest-westus2-sandbox: Deployment Log file does not exist in /tmp/oryx-build.log
12:40:38 AM ct-fn-erictest-westus2-sandbox: The logfile at /tmp/oryx-build.log is empty. Unable to fetch the summary of build
12:40:38 AM ct-fn-erictest-westus2-sandbox: Triggering recycle (preview mode disabled).
12:40:38 AM ct-fn-erictest-westus2-sandbox: Deployment successful. deployer = ms-azuretools-vscode deploymentPath = Functions App ZipDeploy. Extract zip. Remote build.
12:40:56 AM ct-fn-erictest-westus2-sandbox: Syncing triggers...
12:40:57 AM ct-fn-erictest-westus2-sandbox: Querying triggers...
12:40:59 AM ct-fn-erictest-westus2-sandbox: WARNING: Some http trigger urls cannot be displayed in the output window because they require an authentication token. Instead, you may copy them from the Azure Functions explorer.
@snehapar9
Copy link
Contributor

Thanks for reaching out @ehullander! Can you share your repo URL if it's publicly available?

@ehullander
Copy link
Author

Unfortunately, it is not publicly available. Is there anything I can provide that would help?

@ehullander
Copy link
Author

I can deploy using azure cli
ps> func azure functionapp publish myfunctionapp --python --build remote

@simonjj
Copy link

simonjj commented Jan 12, 2024

We're closing this issue due to its age. If this is still impacting you please open a new issue and simply link back to this one.

@simonjj simonjj closed this as completed Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants