Azure / feast-azure

Azure plugins for Feast (FEAture STore)
MIT License
81 stars 52 forks source link

Error when deploying service - ImportError: cannot import name 'Markup' from 'jinja2' #57

Closed rnavarromatesanz closed 2 years ago

rnavarromatesanz commented 2 years ago

Hi,

I have been having problems with the deployment of the service with the current libraries, because the system cannot import the Markup from jinja2, I have done some research, and regarding this github thread

https://github.com/MicrosoftDocs/azure-docs/issues/90567

It seems that the problem is with the last jinja2 version, and one workaround is to have Jinja2<3.1 in the pip, so my final inference.dockerfile is

RUN pip install 'azureml-defaults==1.35.0' \ 'feast-azure-provider==0.3.0' \ 'scikit-learn==0.22.2.post1' \ 'joblib==1.1.0' \ 'Jinja2<3.1' \ 'itsdangerous==2.0.1'

I hope this help...