Azure / azure-cli

Azure Command-Line Interface
MIT License
4.04k stars 3.01k forks source link

OpenSuse Tumbleweed - azure-cli-telemetry doesn't support python311-portalocker in version 3 and above #30458

Open martinspudich opened 18 hours ago

martinspudich commented 18 hours ago

Describe the bug

When I'm trying to update my system via sudo zypper dup I'm getting an error with python311-portalocker version issue.

Please update azure-cli-telemetry to work with azure-cli-telemetry version 3 and above.

Related command

sudo zypper dup Loading repository data... Reading installed packages... Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command. Computing distribution upgrade...

Problem: 1: the installed azure-cli-telemetry-1.1.0-3.1.noarch requires 'python311-portalocker < 3.0', but this requirement cannot be provided deleted providers: python311-portalocker-2.10.1-1.2.noarch

Solution 1: Following actions will be done: deinstallation of azure-cli-telemetry-1.1.0-3.1.noarch deinstallation of azure-cli-core-2.66.0-1.1.noarch deinstallation of azure-cli-2.66.0-1.1.noarch Solution 2: keep obsolete python311-portalocker-2.10.1-1.2.noarch Solution 3: break azure-cli-telemetry-1.1.0-3.1.noarch by ignoring some of its dependencies

Errors

Problem: 1: the installed azure-cli-telemetry-1.1.0-3.1.noarch requires 'python311-portalocker < 3.0', but this requirement cannot be provided deleted providers: python311-portalocker-2.10.1-1.2.noarch

Issue script & Debug output

sudo zypper dup Loading repository data... Reading installed packages... Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command. Computing distribution upgrade...

Problem: 1: the installed azure-cli-telemetry-1.1.0-3.1.noarch requires 'python311-portalocker < 3.0', but this requirement cannot be provided deleted providers: python311-portalocker-2.10.1-1.2.noarch

Solution 1: Following actions will be done: deinstallation of azure-cli-telemetry-1.1.0-3.1.noarch deinstallation of azure-cli-core-2.66.0-1.1.noarch deinstallation of azure-cli-2.66.0-1.1.noarch Solution 2: keep obsolete python311-portalocker-2.10.1-1.2.noarch Solution 3: break azure-cli-telemetry-1.1.0-3.1.noarch by ignoring some of its dependencies

Expected behavior

Resolving the package version conflict.

Environment Summary

az --version azure-cli 2.66.0 *

core 2.66.0 * telemetry 1.1.0

Dependencies: msal 1.31.0 azure-mgmt-resource 23.2.0

Python location '/usr/bin/python3.11' Extensions directory '/home/bliker/.azure/cliextensions'

Python (Linux) 3.11.10 (main, Sep 09 2024, 17:03:08) [GCC]

Legal docs and information: aka.ms/AzureCliLegal

Additional context

No response

azure-client-tools-bot-prd[bot] commented 18 hours ago

Hi @martinspudich,

2.66.0 is not the latest Azure CLI(2.67.0).

If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.

yonzhan commented 18 hours ago

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

evelyn-ys commented 18 hours ago

cc @jiasl @rayluo for awareness. msal-extensions is also restricting portalocker<3: https://github.com/AzureAD/microsoft-authentication-extensions-for-python/blame/ba841e60dc2a8e23a1ce16bb87e8c3a75ee5b9a4/setup.py#L23

rayluo commented 8 hours ago

cc @jiasl @rayluo for awareness. msal-extensions is also restricting portalocker<3

We set that upper bound because msal-extensions was developed in portalocker 1.x & 2.x era. We haven't looked into portalocker 3.x since then. Azure CLI may consider helping us test the without-portalocker approach.