Azure / MachineLearningNotebooks

Python notebooks with ML and deep learning examples with Azure Machine Learning Python SDK | Microsoft
https://docs.microsoft.com/azure/machine-learning/service/
MIT License
4.05k stars 2.51k forks source link

AzureML deployment issue - OpenCV dependencies #1782

Open VirajVaitha123 opened 2 years ago

VirajVaitha123 commented 2 years ago

I am recieving the following error when trying to deploy a model with my entry script that uses opencv.

ImportError: libGL.so.1: cannot open shared object file: No such file or directory

I understand this is because the docker image behind the scenes doesn't contain the following lines: RUN apt-get update RUN apt-get install ffmpeg libsm6 libxext6 -y

How can add this to the docker image automatically created during deployment?

Thanks,

vizhur commented 2 years ago

you can add it into dockerfile for the environment used for your deployment

V4A001 commented 1 year ago

Same issue here. I am using Azure ML Command with run_config = ScriptRunConfig. That makes a docker, but how to influence it so that it is correct?

V4A001 commented 1 year ago

Not fully running code yet, but seems error is not thrown when using headless opencv: opencv-python-headless>=4.1.1

opencv-python>=4.1.1

edublanco commented 1 year ago

any updates?

wenqian157 commented 8 months ago

still have this issue now.