azure function deployment giving error.

Prasad, Rakesh 221 Reputation points
2021-02-22T16:50:53.003+00:00

i able to run this function locally, but remote deployment is failing. i am pasting log as well as my requirment.txt file.

aenum==2.*
asyncio
futures
gremlinpython
openpyxl
tornado==5.*
azure-common==1.1.26
azure-core==1.11.0
azure-functions==1.6.0
azure-keyvault-secrets==4.2.0
azure-mgmt-compute==19.0.0
azure-mgmt-core==1.2.2
azure-mgmt-resource==15.0.0
azure-mgmt-storage==17.0.0
azure-storage-blob==12.7.1
cryptography
pyopenssl
nest-asyncio
cffi

Change analysis service stopped before analysis completion. Waiting for cancellation
File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/main.py", line 3, in <module>
from azure_functions_worker import main
File "/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/main.py", line 8, in <module>
from . import dispatcher
File "/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/dispatcher.py", line 8, in <module>
import asyncio
File "/home/site/wwwroot/.python_packages/lib/site-packages/asyncio/init.py", line 21, in <module>
from .base_events import *
File "/home/site/wwwroot/.python_packages/lib/site-packages/asyncio/base_events.py", line 296
future = tasks.async(future, loop=self)
^
SyntaxError: invalid syntax
future = tasks.async(future, loop=self)
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/main.py", line 3, in <module>
from azure_functions_worker import main
File "/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/main.py", line 8, in <module>
from . import dispatcher
File "/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/dispatcher.py", line 8, in <module>
import asyncio
File "/home/site/wwwroot/.python_packages/lib/site-packages/asyncio/init.py", line 21, in <module>
from .base_events import *
File "/home/site/wwwroot/.python_packages/lib/site-packages/asyncio/base_events.py", line 296
future = tasks.async(future, loop=self)
^
SyntaxError: invalid syntax
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/main.py", line 3, in <module>
from azure_functions_worker import main
File "/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/main.py", line 8, in <module>

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,187 questions
0 comments No comments
{count} votes

Accepted answer
  1. Pramod Valavala 20,641 Reputation points Microsoft Employee
    2021-02-23T06:12:42.92+00:00

    The asyncio package is not required for versions >=3.4. You wouldn't need to include it in requirements.txt.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.