import azure.durable_functions as df
bp_chat = df.BluePrint()
Exception: AttributeError: module ‘azure.durable_functions’ has no attribute ‘BluePrint’
Now the latest version of azure.durable_functions is 1.2.6, I tried with it and 1.2.3 too. But neither of them works.
I use BluePrint to use my code in an other python file, it is not working without it
I want to run my function_app.py, without errors
2
Answers
I tryed with 1.2.0 and it is sure that it does not contains the BluePrint.
But in the 1.2.3 version I found this class in this path azure.durable_functions.decorators.durable_app.BluePrint()
I realized that pip is not updated the module properly. I deleted the pip env and I tried again with
Refer my SO thread answer to work with blueprint in Azure Functions.
Blueprint method is not part of azure.durable_functions in order for blueprint to work, Create 2 files as per this MS Document
My function_app.py:-
My blueprint.py which is calling the blueprint object from function_app.py:-
Output:-
If you want to use blueprint pip module, Directly install it by referring here