microsoft / PowerApps-Samples

Sample code for Power Apps, including Dataverse, model-driven apps, canvas apps, Power Apps component framework, portals, and AI Builder.
https://docs.microsoft.com/powerapps
MIT License
1.47k stars 1.67k forks source link

Package dependecies Issues for BYOM example #231

Open chenyugaopwc opened 2 years ago

chenyugaopwc commented 2 years ago

According to the document: https://github.com/microsoft/PowerApps-Samples/tree/master/ai-builder/BringYourOwnModelTutorial Also followed Matteo Iacomelli v-miacomelli@microsoftsupport.com instruction to update "pip==21.0.1" to "pip==20.2.4". Still got the following:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. pyldavis 3.3.1 requires numpy>=1.20.0, but you have numpy 1.19.5 which is incompatible. pyldavis 3.3.1 requires pandas>=1.2.0, but you have pandas 0.25.3 which is incompatible. pycaret 2.3.5 requires lightgbm>=2.3.1, but you have lightgbm 2.3.0 which is incompatible. pycaret 2.3.5 requires scikit-learn==0.23.2, but you have scikit-learn 0.22.2.post1 which is incompatible. azureml-train-automl-runtime 1.36.0 requires azureml-automl-core~=1.36.0, but you have azureml-automl-core 1.19.0 which is incompatible. azureml-train-automl-runtime 1.36.0 requires azureml-core~=1.36.0, but you have azureml-core 1.19.0 which is incompatible. azureml-train-automl-runtime 1.36.0 requires azureml-dataset-runtime[fuse,pandas]~=1.36.0, but you have azureml-dataset-runtime 1.19.0.post1 which is incompatible. azureml-train-automl-runtime 1.36.0 requires azureml-telemetry~=1.36.0, but you have azureml-telemetry 1.19.0 which is incompatible. azureml-train-automl-runtime 1.36.0 requires azureml-train-automl-client~=1.36.0, but you have azureml-train-automl-client 1.19.0 which is incompatible. azureml-train-automl-runtime 1.36.0 requires numpy<1.19.0,>=1.16.0, but you have numpy 1.19.5 which is incompatible. azureml-responsibleai 1.36.0 requires azureml-core~=1.36.0, but you have azureml-core 1.19.0 which is incompatible. azureml-responsibleai 1.36.0 requires azureml-dataset-runtime~=1.36.0, but you have azureml-dataset-runtime 1.19.0.post1 which is incompatible. azureml-interpret 1.36.0 requires azureml-core~=1.36.0, but you have azureml-core 1.19.0 which is incompatible. azureml-defaults 1.36.0 requires azureml-core~=1.36.0, but you have azureml-core 1.19.0 which is incompatible. azureml-defaults 1.36.0 requires azureml-dataset-runtime[fuse]~=1.36.0, but you have azureml-dataset-runtime 1.19.0.post1 which is incompatible. azureml-contrib-notebook 1.36.0 requires azureml-core~=1.36.0, but you have azureml-core 1.19.0 which is incompatible. azureml-contrib-notebook 1.36.0 requires azureml-pipeline-core~=1.36.0, but you have azureml-pipeline-core 1.19.0 which is incompatible. azureml-contrib-fairness 1.36.0 requires azureml-core~=1.36.0, but you have azureml-core 1.19.0 which is incompatible. autokeras 1.0.16.post1 requires tensorflow<2.6,>=2.3.0, but you have tensorflow 2.1.0 which is incompatible.

rhpoon commented 2 years ago

I think Are those from the install phase of your azureml-core in conda/pip/old environment? I came across similar problem (from an old aml sdk 1.19 to 1.36).
Install a new one 1.36. Basically i) complete whatever needed for conda install, incl extra packages pandas ii) then go pip for azureml-core and azure-sdk, iii) for further issues: if they are in conda, then get rid of pip installed packages in general..iv) occassionally i do manual deletion from anaconda......./site-packages/....... path as sometimes there are duplicated package issues.

quite a pain as anaconda don't have all those pipy packages there...

omartin2010 commented 2 years ago

having similar issues right now, fixed it with changing the myenv.yml file to :

name: inference_environment
dependencies:
- python=3.6.8
- pip:
    - azureml-defaults==1.19
    - pillow==7.2.0
    - onnxruntime==1.4.0
    - inference-schema
    - azureml-contrib-services
    - numpy

(added the ==1.19 after azureml-defaults)

rhpoon commented 2 years ago

Use python 3.8 on azure cloud notebook with similar errors: no module named Pandas , perhaps 1) try to add in Score.py: XX pip install Pandas ,or 2) change the yenv.yml file (for docker image?)

Not sure If one of above can solve, theoretically yes.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Olivier Martin @.> Sent: Friday, February 11, 2022 10:38:36 PM To: microsoft/PowerApps-Samples @.> Cc: Rpoon @.>; Comment @.> Subject: Re: [microsoft/PowerApps-Samples] Package dependecies Issues for BYOM example (Issue #231)

having similar issues right now, trying to point the myenv.yml file to :

name: inference_environment dependencies:

(added the ==1.36 after azureml-defaults)

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/PowerApps-Samples/issues/231#issuecomment-1036276919, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGBU7AVLTUDBM4XYUNDQKD3U2UNOZANCNFSM5LFVKHHA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.***>

rhpoon commented 2 years ago

I can confirm that with additional Pandas added to yml file, the ACI service creation is successful.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Rpoon @.> Sent: Sunday, February 13, 2022 12:00:36 AM To: microsoft/PowerApps-Samples @.>; microsoft/PowerApps-Samples @.> Cc: Comment @.> Subject: Re: [microsoft/PowerApps-Samples] Package dependecies Issues for BYOM example (Issue #231)

Use python 3.8 on azure cloud notebook with similar errors: no module named Pandas , perhaps 1) try to add in Score.py: XX pip install Pandas ,or 2) change the yenv.yml file (for docker image?)

Not sure If one of above can solve, theoretically yes.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Olivier Martin @.> Sent: Friday, February 11, 2022 10:38:36 PM To: microsoft/PowerApps-Samples @.> Cc: Rpoon @.>; Comment @.> Subject: Re: [microsoft/PowerApps-Samples] Package dependecies Issues for BYOM example (Issue #231)

having similar issues right now, trying to point the myenv.yml file to :

name: inference_environment dependencies:

(added the ==1.36 after azureml-defaults)

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/PowerApps-Samples/issues/231#issuecomment-1036276919, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGBU7AVLTUDBM4XYUNDQKD3U2UNOZANCNFSM5LFVKHHA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.***>

omartin2010 commented 2 years ago

I guess the point is that the repo as it is, is not working and versions need to be pinned so that future updates to aml or other de pendencies won’t breal the sample repo.

Get Outlook for iOShttps://aka.ms/o0ukef


From: ritchie poon @.> Sent: Saturday, February 12, 2022 11:34:52 AM To: microsoft/PowerApps-Samples @.> Cc: Olivier Martin @.>; Comment @.> Subject: Re: [microsoft/PowerApps-Samples] Package dependecies Issues for BYOM example (Issue #231)

I can confirm that with additional Pandas added to yml file, the ACI service creation is successful.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Rpoon @.> Sent: Sunday, February 13, 2022 12:00:36 AM To: microsoft/PowerApps-Samples @.>; microsoft/PowerApps-Samples @.> Cc: Comment @.> Subject: Re: [microsoft/PowerApps-Samples] Package dependecies Issues for BYOM example (Issue #231)

Use python 3.8 on azure cloud notebook with similar errors: no module named Pandas , perhaps 1) try to add in Score.py: XX pip install Pandas ,or 2) change the yenv.yml file (for docker image?)

Not sure If one of above can solve, theoretically yes.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Olivier Martin @.> Sent: Friday, February 11, 2022 10:38:36 PM To: microsoft/PowerApps-Samples @.> Cc: Rpoon @.>; Comment @.> Subject: Re: [microsoft/PowerApps-Samples] Package dependecies Issues for BYOM example (Issue #231)

having similar issues right now, trying to point the myenv.yml file to :

name: inference_environment dependencies:

(added the ==1.36 after azureml-defaults)

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/PowerApps-Samples/issues/231#issuecomment-1036276919, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGBU7AVLTUDBM4XYUNDQKD3U2UNOZANCNFSM5LFVKHHA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FPowerApps-Samples%2Fissues%2F231%23issuecomment-1037291364&data=04%7C01%7C%7C4e8fb27545f8473e7c0208d9ee459874%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637802804935858908%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=C%2Bfcm%2BeYYbDACZWgQVIdzOp5D7p9M7Zn0cSgCgwE2sY%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACWYKXSBIICI7XCI45TUPQTU22D2ZANCNFSM5LFVKHHA&data=04%7C01%7C%7C4e8fb27545f8473e7c0208d9ee459874%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637802804935858908%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=iQNZvBV5lBl%2FPsEtE6rnMWrq2jpCJnBDj1qTd1fZL%2B0%3D&reserved=0. You are receiving this because you commented.Message ID: @.***>

rhpoon commented 2 years ago

Sorry my two posts above intended to reply to another thread with 'Pandas not found..." NOT this particular one. I did comeacross above problems and I go to 'terminal' and use pip to update azureml-core to 1.38 which then solve the problem. (Python 3.8 azureml kernel)

brendon-colburn commented 2 years ago

I was able to fix the pandas not found issue by adding it to the env yaml, during registration I'm now seeing that aibuilder module is not found. I will try the same approach and see what mileage I can get... seems like the documented steps could use an update.

iamramengirl commented 2 years ago

In my case, I had to downgrade the azureml-core package to 1.38.0 and add pandas in the environment yml file and it resolved the problem.