Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
2:45:02 PM trailshealth: Command: oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.11 -p packagedir=.python_packages/lib/site-packages
2:45:03 PM trailshealth: Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
2:45:03 PM trailshealth: You can report issues at https://github.com/Microsoft/Oryx/issues
2:45:03 PM trailshealth: Oryx Version: 0.2.20230210.1, Commit: a49c8f6b8abbe95b4356552c4c884dea7fd0d86e, ReleaseTagName: 20230210.1
2:45:03 PM trailshealth: Build Operation ID: debfc1bfb987e7c6
2:45:03 PM trailshealth: Repository Commit : 8fb6a054-346b-4152-85c3-0006a1433e61
2:45:03 PM trailshealth: OS Type : bullseye
2:45:03 PM trailshealth: Image Type : githubactions
2:45:03 PM trailshealth: Detecting platforms...
2:45:03 PM trailshealth: Detected following platforms:
2:45:03 PM trailshealth: python: 3.11.8
2:45:03 PM trailshealth: Version '3.11.8' of platform 'python' is not installed. Generating script to install it...
2:45:04 PM trailshealth: Source directory : /tmp/zipdeploy/extracted
2:45:04 PM trailshealth: Destination directory: /home/site/wwwroot
2:45:04 PM trailshealth: Downloading and extracting 'python' version '3.11.8' to '/tmp/oryx/platforms/python/3.11.8'...
2:45:04 PM trailshealth: Detected image debian flavor: bullseye.
2:45:04 PM trailshealth: Downloaded in 0 sec(s).
2:45:04 PM trailshealth: Verifying checksum...
2:45:04 PM trailshealth: Extracting contents...
2:45:08 PM trailshealth: performing sha512 checksum for: python...
2:45:08 PM trailshealth: Done in 4 sec(s).
2:45:08 PM trailshealth: image detector file exists, platform is python..
2:45:08 PM trailshealth: OS detector file exists, OS is bullseye..
2:45:08 PM trailshealth: Python Version: /tmp/oryx/platforms/python/3.11.8/bin/python3.11
2:45:08 PM trailshealth: Creating directory for command manifest file if it does not exist
2:45:08 PM trailshealth: Removing existing manifest file
2:45:08 PM trailshealth: Running pip install...
2:45:09 PM trailshealth: Done in 1 sec(s).
2:45:09 PM trailshealth: [09:15:09+0000] Collecting azure-functions
2:45:09 PM trailshealth: [09:15:09+0000] Downloading azure_functions-1.20.0-py3-none-any.whl (181 kB)
2:45:09 PM trailshealth: [09:15:09+0000] Installing collected packages: azure-functions
2:45:09 PM trailshealth: [09:15:09+0000] Successfully installed azure-functions-1.20.0
2:45:09 PM trailshealth: WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
2:45:09 PM trailshealth: WARNING: You are using pip version 21.2.4; however, version 24.1.2 is available.
2:45:09 PM trailshealth: You should consider upgrading via the '/tmp/oryx/platforms/python/3.11.8/bin/python3.11 -m pip install --upgrade pip' command.
2:45:09 PM trailshealth: Not a vso image, so not writing build commands
2:45:09 PM trailshealth: Preparing output...
2:45:09 PM trailshealth: Copying files to destination directory '/home/site/wwwroot'...
2:45:09 PM trailshealth: Done in 0 sec(s).
2:45:09 PM trailshealth: Removing existing manifest file
2:45:09 PM trailshealth: Creating a manifest file...
2:45:09 PM trailshealth: Manifest file created.
2:45:09 PM trailshealth: Copying .ostype to manifest output directory.
2:45:09 PM trailshealth: Done in 6 sec(s).
2:45:29 PM trailshealth: Deployment failed.
Based on the error that you show you are having problems with the python prerequisites and version you can upgrade pip following this instructions (https://stackoverflow.com/questions/77192092/python-azure-function-deployment-oryx-build-hangs-on-running-pip-install)
py -m pip install --upgrade pip
Besides that you can start from the beginning with few steps ( https://azguy.cloud/python-on-azure-functions-the-basics-aed40fb022e4)
If the information helped address your question, please Accept the answer.
Luis