visual studio code – How to run a python azure function locally on M1 MacBook
I’ve seen this question asked a few times but I’m not getting anywhere with any solution
I have created a new azure python function following the steps here: learn.microsoft.com/en-us/azure/azure-functions/functions-develop-vs-code?tabs=csharp
Yet I run into this issue:
[![enter image description here][1]][1]
I have tried to set up a Rosetta terminal but I didn’t get anywhere with this. Seen here in this SO Azure function not running on M1
You can no longer duplicate applications on Mac OS Ventura and when trying to update my .zshrc file to handle switching between x86 and arm I encounter a lot of issues including
.zshrc:source:12: no such file or directory: /usr/local/bin/virtualenvwrapper.sh
I’ve also tried to follow the steps here jimbobbennett.dev/blogs/azure-functions-python-m1/
However when I create the dev container it tries to install Python and Azure extensions on VScode which get stuck in the loading state forever and pressing F5 to run the base project shows this modal[![enter image description here][2]][2]
I am really all out of ideas so I would appreciate any suggestions on how to resolve this. Thank you in advance
[1]: i.stack.imgur.com/XeP4u.png
[2]: i.stack.imgur.com/gtVai.png
Read more here: Source link