microsoft/Oryx

Deploying python based Azure Function from VS Code fails when latest arcgis library is included

JKar-1 opened this issue · 0 comments

Bug Report

  • At what date and time did you most recently experience the problem?

2024-05-24 3:13:24 PM East European time, 12:13:24 PM UTC.

  • 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:

Not public.

  • What happened?

Trying to deploy python function to Azure but pip install freezes 40 minutes and then deployment fails.

  • What did you expect or want to happen?

Deployment succeeds.

  • How can we reproduce it?

Create function app to Azure. OS: Linux, Configuration/General settings/Python version: 3.11.
Create new function with VS Code, for example http trigger.
Add 'arcgis' to requirements.txt.
Deploy function to Azure function app.

Sometimes deploying succeeds if I change python version on function app to 3.9 and put 'arcgis==1.9.1' to requirements.txt.

  • Do you have log output? Please include between the backticks:
2:33:12 PM agol-test: Starting deployment...
2:33:12 PM agol-test: Creating zip package...
2:33:12 PM agol-test: Adding 6 files to zip package...
2:33:12 PM agol-test: c:\Work\Azure_functions\from-azure-csv-to-agol\__pycache__\function_app.cpython-39.pyc
2:33:12 PM agol-test: c:\Work\Azure_functions\from-azure-csv-to-agol\__pycache__\function_app.cpython-311.pyc
2:33:12 PM agol-test: c:\Work\Azure_functions\from-azure-csv-to-agol\requirements.txt
2:33:12 PM agol-test: c:\Work\Azure_functions\from-azure-csv-to-agol\host.json
2:33:12 PM agol-test: c:\Work\Azure_functions\from-azure-csv-to-agol\blueprint.py
2:33:12 PM agol-test: c:\Work\Azure_functions\from-azure-csv-to-agol\.funcignore
2:33:12 PM agol-test: Zip package size: 4.44 kB
2:33:15 PM agol-test: Fetching changes.
2:33:16 PM agol-test: Cleaning up temp folders from previous zip deployments and extracting pushed zip file /tmp/zipdeploy/4f847a1c-fee2-4cfc-9632-66ad63e26caf.zip (0.00 MB) to /tmp/zipdeploy/extracted
2:33:19 PM agol-test: Updating submodules.
2:33:20 PM agol-test: Preparing deployment for commit id '46b777e2-b'.
2:33:20 PM agol-test: PreDeployment: context.CleanOutputPath False
2:33:20 PM agol-test: PreDeployment: context.OutputPath /home/site/wwwroot
2:33:21 PM agol-test: Repository path is /tmp/zipdeploy/extracted
2:33:21 PM agol-test: Running oryx build...
2:33:21 PM agol-test: Command: oryx build /tmp/zipdeploy/extracted -o /tmp/build/expressbuild --platform python --platform-version 3.11 -i /tmp/8dc7be5506bc70a -p packagedir=.python_packages/lib/site-packages
2:33:24 PM agol-test: Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
2:33:24 PM agol-test: You can report issues at https://github.com/Microsoft/Oryx/issues
2:33:24 PM agol-test: Oryx Version: 0.2.20230508.1, Commit: 7fe2bf39b357dd68572b438a85ca50b5ecfb4592, ReleaseTagName: 20230508.1
2:33:24 PM agol-test: Build Operation ID: 5b98a8cb844e3eae
2:33:24 PM agol-test: Repository Commit : 46b777e2-b9d9-4aa2-9a16-8641051a00c6
2:33:24 PM agol-test: OS Type           : bullseye
2:33:24 PM agol-test: Image Type        : githubactions
2:33:24 PM agol-test: Detecting platforms...
2:33:28 PM agol-test: Detected following platforms:
2:33:28 PM agol-test:   python: 3.11.8
2:33:28 PM agol-test: Version '3.11.8' of platform 'python' is not installed. Generating script to install it...
2:33:29 PM agol-test: Using intermediate directory '/tmp/8dc7be5506bc70a'.
2:33:29 PM agol-test: Copying files to the intermediate directory...
2:33:29 PM agol-test: Done in 0 sec(s).
2:33:29 PM agol-test: Source directory     : /tmp/8dc7be5506bc70a
2:33:29 PM agol-test: Destination directory: /tmp/build/expressbuild
2:33:29 PM agol-test: Downloading and extracting 'python' version '3.11.8' to '/tmp/oryx/platforms/python/3.11.8'...
2:33:29 PM agol-test: Detected image debian flavor: bullseye.
2:33:34 PM agol-test: Downloaded in 5 sec(s).
2:33:34 PM agol-test: Verifying checksum...
2:33:34 PM agol-test: Extracting contents...
2:33:57 PM agol-test: performing sha512 checksum for: python...
2:33:59 PM agol-test: Done in 30 sec(s).
2:33:59 PM agol-test: image detector file exists, platform is python..
2:33:59 PM agol-test: OS detector file exists, OS is bullseye..
2:34:00 PM agol-test: Python Version: /tmp/oryx/platforms/python/3.11.8/bin/python3.11
2:34:00 PM agol-test: Creating directory for command manifest file if it does not exist
2:34:00 PM agol-test: Removing existing manifest file
2:34:00 PM agol-test: Running pip install...
3:13:24 PM agol-test: Deployment failed.