MachineLearningNotebooks icon indicating copy to clipboard operation
MachineLearningNotebooks copied to clipboard

AzureML deployment issue - OpenCV dependencies

Open VirajVaitha123 opened this issue 2 years ago • 5 comments

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,

VirajVaitha123 avatar Jul 15 '22 12:07 VirajVaitha123

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

vizhur avatar Jul 21 '22 21:07 vizhur

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 avatar Jan 05 '23 15:01 V4A001

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

V4A001 avatar Jan 06 '23 09:01 V4A001

any updates?

edublanco avatar May 02 '23 13:05 edublanco

still have this issue now.

wenqian157 avatar Dec 15 '23 14:12 wenqian157