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 'json' from itsdangerous #49

Closed michalmar closed 2 years ago

michalmar commented 2 years ago

I got following error when deploying service based on tutorial in:

Error: ... ImportError: cannot import name 'json' from itsdangerous ...

I have fixed that by pinning version of itsdangerous library in inference.dockerfile to 2.0.1 (newer version doesn't work):

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

I followed this SO: https://stackoverflow.com/questions/71189819/python-docker-importerror-cannot-import-name-json-from-itsdangerous

cbtham commented 2 years ago

Issue is fixed and merged into main