Closed
Description
Announcement
We have identified an issue with python 3.9 functions apps using the V2 programming model.
Some of the invocations are failing with the following error:
Failure Exception:
AttributeError: partially initialized module 'azure.functions' has no
attribute 'get_binding_registry' (most likely due to a circular import)
Stack:
File '/azure_functions_worker/dispatcher.py', line 434,
in _handle__invocation_request if bindings.is_trigger_binding(pb_type_info.binding_name):
File '/azure_functions_worker/bindings/meta.py', line 39,
in is_trigger_binding binding = get_binding(bind_name)
File '/azure_functions_worker/bindings/meta.py', line 29,
in get_binding registry = get_binding_registry()
File '/azure_functions_worker/bindings/meta.py', line 24,
in get_binding_registry return func.get_binding_registry()
Mitigation
Add the app setting PYTHON_ENABLE_WORKER_EXTENSIONS
to 0 to the function app.
Fix
We are working on a fix and will send out an update shortly.