question

JasonLau-5260 avatar image
0 Votes"
JasonLau-5260 asked MayankBargali-MSFT answered

Fail to run Azure Function on local computer

I am new to Azure. My local computer is macos Big Sur Version 11.5.1 (M1 chip). I try to follow the tutorial on Microsoft Azure website to build a new Azure function.

https://docs.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-python

When I create my local project and try to run on the function locally. Terminal in vscode return some logs to me.

131776-screenshot-2021-09-14-at-104739-am.png



In the red circle, it shows that cannot create directory and fail to access the path '/dev/shm/AzureFunctions'. Not surprisingly, When I execute a function on local. It shows requested timed out.

But When I push to Azure. It works. I am wondering what happen to this situation. and do somebody have solution to this ?

Many thanks

azure-functions
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered

@JasonLau-5260 The yellow section that have highlighted is the warning and I do see the discussion here. The actual error is while ImportError on the red section. Looks like you are using python 3.9 version (preview) and azure core tools version is 3.0.3734. As per release history the add support for Python 3.9 on Windows.
Can you use Python 3.8 supported version and confirm if you still observe the same issue.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.