Azure / azure-functions-core-tools

Command line tools for Azure Functions
MIT License
1.33k stars 437 forks source link

Debugging/Local development not working on MacOS with Apple silicon m1 #3085

Open pacaj2am opened 2 years ago

pacaj2am commented 2 years ago

When I try to debug/run Azure function from VS Code I get following output:

Azure Functions Core Tools
Core Tools Version:       4.0.4590 Commit hash: N/A  (64-bit)
Function Runtime Version: 4.5.2.18383

[2022-06-28T16:37:40.680Z] Failed to initialize worker provider for: /opt/homebrew/Cellar/azure-functions-core-tools@4/4.0.4590/workers/python
[2022-06-28T16:37:40.680Z] Microsoft.Azure.WebJobs.Script: Architecture Arm64 is not supported for language python.
[2022-06-28T16:37:42.056Z] Failed to initialize worker provider for: /opt/homebrew/Cellar/azure-functions-core-tools@4/4.0.4590/workers/python
[2022-06-28T16:37:42.056Z] Microsoft.Azure.WebJobs.Script: Architecture Arm64 is not supported for language python.
[2022-06-28T16:37:42.172Z] Failed to initialize worker provider for: /opt/homebrew/Cellar/azure-functions-core-tools@4/4.0.4590/workers/python
[2022-06-28T16:37:42.172Z] Microsoft.Azure.WebJobs.Script: Architecture Arm64 is not supported for language python.
[2022-06-28T16:37:42.199Z] A host error has occurred during startup operation '8433e83d-381a-4629-acf7-45ae2b05d29f'.
[2022-06-28T16:37:42.199Z] Microsoft.Azure.WebJobs.Script: Did not find functions with language [python].
[2022-06-28T16:37:42.205Z] Failed to stop host instance 'aca28baf-887b-413e-a4f4-8910dcf5e35b'.
[2022-06-28T16:37:42.205Z] Microsoft.Azure.WebJobs.Host: The host has not yet started.
Value cannot be null. (Parameter 'provider')

That used to work previously.

VS Code version:

Version: 1.68.1
Commit: 30d9c6cd9483b2cc586687151bcbcd635f373630
Date: 2022-06-14T12:48:37.209Z
Electron: 17.4.7
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Darwin arm64 21.5.0
michaelpeng36 commented 2 years ago

@pacaj2am This is because the Python worker does not support running on Mac M1 at the moment. Here is the tracking issue on the relevant repository: https://github.com/Azure/azure-functions-python-worker/issues/915