Azure / azure-cli

Azure Command-Line Interface
MIT License
3.91k stars 2.87k forks source link

Version Conflict with Promptflow-azure v1.8.0 #28731

Open SiHaoShen opened 2 months ago

SiHaoShen commented 2 months ago

Describe the bug

When I update promptflow to v1.8.0 using poetry update, I get version conflict with azure-cli.

Promptflow Documentation: https://microsoft.github.io/promptflow/how-to-guides/faq.html#promptflow-1-8-0-upgrade-guide

Related command

poetry update

Errors

Because no versions of azure-cli match >2.59.0 and azure-cli (2.59.0) depends on azure-cosmos (>=3.0.2,<4.0), azure-cli (>=2.59.0) requires azure-cosmos (>=3.0.2,<4.0).
And because promptflow[azure] (1.8.0) depends on promptflow-azure (1.8.0) which depends on azure-cosmos (>=4.5.1,<5.0.0), azure-cli (>=2.59.0) is incompatible with promptflow[azure] (1.8.0).
So, because siemens-python-package-llmops-demo depends on both promptflow[azure] (==1.8.0) and azure-cli (>=2.59.0), version solving failed.

Issue script & Debug output

NA

Expected behavior

Update dependencies inside azure-cli to the latest version as promptflow to avoid version conflict. For example update azure-cosmos dependency to >=4.5.1,<5.0.0.

Environment Summary

python 3.9.19 azure-cli 2.59.0 promptflow = {version = "1.8.0",extras = ["azure"]}

Additional context

No response

yonzhan commented 2 months ago

Thank you for opening this issue, we will look into it.

ZhiliangWu commented 2 months ago

https://github.com/microsoft/promptflow/issues/2807

ZhiliangWu commented 2 months ago

From the promptflow team at https://github.com/microsoft/promptflow/issues/2807#issuecomment-2060460642

  1. Seems like even use latest azure-cosmos version (4.6.0), many azure-cli's basic functions still could work. (Such as az login, list/create resource group, create vm) You still could use it for some cases.
  2. From 3.x to 4.x, azure-cosmos introduced many breaking changes for interface, it needs a lot of effort to support 3.x version.
  3. azure-cosmos released 4.0.0 in 2020, it's a rather old version.

So, we don't plan to do compatibility support as you ask, please contact azure-cli about upgrading their dependency.

microsoft-github-policy-service[bot] commented 2 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @pjohari-ms, @kushagraThapar, @simplynaveen20.

ZhiliangWu commented 1 month ago

@evelyn-ys any updates on this?

ZhiliangWu commented 1 month ago

Any updates on this?

ZhiliangWu commented 1 month ago

@evelyn-ys Any updates on this?