azure-sdk-for-python
azure-sdk-for-python copied to clipboard
Deprecation Warnings when using evaluate
- 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
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureml-github @Azure/azure-ml-sdk.
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.
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"])
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.