Skip to content

Package dependecies Issues for BYOM example #231

Open

Description

@chenyugaopwc

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.

Activity

  1. rhpoon commented on Jan 11, 2022

    @rhpoon

    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...

  2. omartin2010 commented on Feb 11, 2022

    @omartin2010
    Contributor

    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)

  3. rhpoon commented on Feb 12, 2022

    @rhpoon
  4. rhpoon commented on Feb 12, 2022

    @rhpoon
  5. omartin2010 commented on Feb 12, 2022

    @omartin2010
    Contributor
  6. rhpoon commented on Feb 13, 2022

    @rhpoon

    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)

  7. brendon-colburn commented on Apr 12, 2022

    @brendon-colburn

    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.

  8. MRvra-MSFT commented on Jul 5, 2022

    @MRvra-MSFT

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions