Hi Raavisha Sankar (INFOSYS LIMITED),
Thank you for reaching out to Microsoft Q&A.
- Update
typing_extensionsto resolve compatibility issues:
Try updating the typing_extensions package to version 4.14.0 or later using command pip install typing_extensions --upgrade. I have tried using the same version and it worked.
requirements.txt:
azure-functions
typing-extensions>=4.14.0
- Delete
__pycache__and.python_packagesFiles locally and in Azure - Rebuild Virtual Environment
Rebuild your virtual environment to ensure all dependencies are installed properly.
Steps:
- Delete the existing virtual environment.
- Create a new virtual environment.
- Reinstall all the required packages and deploy the function again.
Hope it helps!
Please do not forget to click "Accept the answer” and Yes, this can be beneficial to other community members.
If you have any other questions, let me know in the "comments" and I would be happy to help you.