azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

Deprecation Warnings when using evaluate

Open pamelafox opened this issue 2 years ago • 3 comments

  • Package Version: See above
  • Operating System: Mac M1, with Debian Dev Container
  • Python Version: Python 3.10

Describe the bug

When using evaluate(), I get these deprecation warnings:

../../home/vscode/.local/lib/python3.11/site-packages/azure/ai/ml/_schema/core/fields.py:424
../../home/vscode/.local/lib/python3.11/site-packages/azure/ai/ml/_schema/core/fields.py:424
  /home/vscode/.local/lib/python3.11/site-packages/azure/ai/ml/_schema/core/fields.py:424: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'unknown': 'include'}
    super().__init__(**kwargs)

 

../../home/vscode/.local/lib/python3.11/site-packages/azure/ai/ml/_schema/assets/package/model_package.py:22
  /home/vscode/.local/lib/python3.11/site-packages/azure/ai/ml/_schema/assets/package/model_package.py:22: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead.
    target_environment_name = fields.Str(required=True, default="packaged-env")

 

../../home/vscode/.local/lib/python3.11/site-packages/azure/ai/ml/_schema/monitoring/compute.py:12
  /home/vscode/.local/lib/python3.11/site-packages/azure/ai/ml/_schema/monitoring/compute.py:12: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'allowed_values': ['ServerlessSpark']}
    compute_type = fields.Str(allowed_values=["ServerlessSpark"])

To Reproduce

This code should produce the same warnings:

https://github.com/Azure/aistudio-chat-demo/blob/main/src/langchain/langchain_qna.ipynb

Expected behavior

No warnings

pamelafox avatar Sep 28 '23 18:09 pamelafox

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureml-github @Azure/azure-ml-sdk.

github-actions[bot] avatar Sep 28 '23 20:09 github-actions[bot]

The azure-ai-ml package needs to update its dependency on marshmallow. Thx for reporting this issue. We'll address this in the sprint of November.

luigiw avatar Oct 12 '23 07:10 luigiw

These deprecation warnings are still present:

../../../../anaconda/envs/ds_ditto/lib/python3.10/site-packages/azure/ai/ml/_schema/assets/index.py:17
  /anaconda/envs/ds_ditto/lib/python3.10/site-packages/azure/ai/ml/_schema/assets/index.py:17: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead.
    stage = fields.Str(default="Development")

../../../../anaconda/envs/ds_ditto/lib/python3.10/site-packages/azure/ai/ml/_schema/core/fields.py:434
../../../../anaconda/envs/ds_ditto/lib/python3.10/site-packages/azure/ai/ml/_schema/core/fields.py:434
  /anaconda/envs/ds_ditto/lib/python3.10/site-packages/azure/ai/ml/_schema/core/fields.py:434: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'unknown': 'include'}
    super().__init__(**kwargs)

../../../../anaconda/envs/ds_ditto/lib/python3.10/site-packages/azure/ai/ml/_schema/monitoring/compute.py:12
  /anaconda/envs/ds_ditto/lib/python3.10/site-packages/azure/ai/ml/_schema/monitoring/compute.py:12: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'allowed_values': ['ServerlessSpark']}
    compute_type = fields.Str(allowed_values=["ServerlessSpark"])

timvink avatar Aug 30 '24 07:08 timvink

Hi @pamelafox, we deeply appreciate your input into this project. Regrettably, this issue has remained unresolved for over 2 years and inactive for 30 days, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support.

github-actions[bot] avatar Sep 29 '25 18:09 github-actions[bot]