MachineLearningNotebooks icon indicating copy to clipboard operation
MachineLearningNotebooks copied to clipboard

Failure to load dependency lib for azure ML

Open nehalahmad2 opened this issue 2 years ago • 10 comments

File "/structure/azureml-app/score.py", line 23, in run inputs_dc.collect(data) #this call is saving our input data into Azure Blob File "/azureml-envs/sklearn-1.0/lib/python3.8/site-packages/azureml/monitoring/modeldatacollector.py", line 457, in collect if (not self._cloud_enabled or self._handle == -1) and not self._debug: AttributeError: 'ModelDataCollector' object has no attribute '_cloud_enabled'

nehalahmad2 avatar May 28 '22 06:05 nehalahmad2

I have the same error.

JoelCanteroGCO avatar Jul 28 '22 08:07 JoelCanteroGCO

Same error with me. Not sure if there is any workaround ? Thanks

SonHoangTR avatar Sep 13 '22 16:09 SonHoangTR

Same error with me. Not sure if there is any workaround ? Thanks

Are you using ModelDataCollector class?

JoelCanteroGCO avatar Sep 14 '22 06:09 JoelCanteroGCO

Same error with me. Not sure if there is any workaround ? Thanks

Are you using ModelDataCollector class?

Yes, and I got exactly same error. This might be a problem with 3.8 only ?

SonHoangTR avatar Sep 14 '22 14:09 SonHoangTR

Same error with me. Not sure if there is any workaround ? Thanks

Are you using ModelDataCollector class?

Yes, and I got exactly same error. This might be a problem with 3.8 only ?

I have opened a support ticket with Microsoft and it seems that the error is relationed with >1.40 SDK version. I have tried with 1.38 and it works well.

JoelCanteroGCO avatar Sep 14 '22 14:09 JoelCanteroGCO

Can you provide specfics on how you got this to work such as python version and all that jazz?

jnesfield avatar Sep 29 '22 17:09 jnesfield

> I have opened a support ticket with Microsoft and it seems that the error is relationed with >1.40 SDK version. I have tried with 1.38 and it works well.

How did you change the sdk version?

RohitRanga12 avatar Oct 27 '22 11:10 RohitRanga12

Just installing another version of azureml-core.

Like this: pip install azureml-core==1.40

JoelCanteroGCO avatar Nov 10 '22 15:11 JoelCanteroGCO

Please use the latest azureml-core and the latest base image. Using these latest versions will eliminate this issue.

shmahe avatar Apr 28 '23 00:04 shmahe

Please use the latest azureml-core and the latest base image. Using these latest versions will eliminate this issue.

Which versions are you referring to? When I use azureml-core==1.50.0 and the base image 'mcr.microsoft.com/azureml/openmi4.1.0-ubuntu20.04:20230509.v1' I still get the _cloud_enabled error. My current requirements do not allow me to downgrade to ubuntu 18.04. Any insight would be appreciated, thanks!

dsiu1 avatar May 16 '23 15:05 dsiu1