azure-cli: azure-cli 2.0.66 zypper installation fails on SLES 12 SP3
Describe the bug The instructions for installation via zypper fail on SLES 12 SP3 due to a dependency on python2-virtualenv
To Reproduce Follow the instructions here: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-zypper?view=azure-cli-latest when running on SLES 12 SP3
> sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
> sudo zypper addrepo --name 'Azure CLI' --check https://packages.microsoft.com/yumrepos/azure-cli azure-cli
Adding repository 'Azure CLI' ....................................................................................................[done]
Repository 'Azure CLI' successfully added
URI : https://packages.microsoft.com/yumrepos/azure-cli
Enabled : Yes
GPG Check : Yes
Autorefresh : No
Priority : 99 (default priority)
Repository priorities are without effect. All enabled repositories share the same priority.
> sudo zypper install --from azure-cli -y azure-cli
Refreshing service 'SMT-http_smt-azure_susecloud_net'.
Refreshing service 'cloud_update'.
Building repository 'Azure CLI' cache ............................................................................................[done]
Loading repository data...
Reading installed packages...
Resolving package dependencies...
Problem: nothing provides python2-virtualenv needed by azure-cli-2.0.66-3.el7.x86_64
Solution 1: do not install azure-cli-2.0.66-3.el7.x86_64
Solution 2: break azure-cli-2.0.66-3.el7.x86_64 by ignoring some of its dependencies
Choose from above solutions by number or cancel [1/2/c] (c): c
Expected behavior Installation of the azure-cli 2.0.66
Environment summary bash on SLES 12 SP3; package manager: zypper
Additional context Add any other context about the problem here.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 23 (10 by maintainers)
Commits related to this issue
- (AzureCXP) Fixes MicrosoftDocs/azure-docs-cli#1836 Updated install instructions as mentioned here: https://github.com/Azure/azure-cli/issues/9665#issuecomment-535304323 — committed to BhargaviAnnadevara-MSFT/azure-docs-cli by BhargaviAnnadevara-MSFT 4 years ago
Please remove the -y option when install:
sudo zypper install --from azure-cli azure-cli
, then input2
to continue install.Since Python 3.3, a subset of python-virtualenv has been integrated into the standard library under the venv module(quotes from here). I don’t think the lack of python-virtualenv will break things, at least for most of the feature. It should work. Let me know if you still have any issue.
Howdy @achandmsft, I’m going to need your help prioritizing this issue. 😃
If python2-virtualenv is not required - would it be possible to remove the dependency to get error-free experience?
When installed manually you might type in 2 but this is extremely unfriendly for any automated install…
Are there any updates?
Still the same error with azure-cli-2.0.71-1.el7.x86_64. Would be nice to have a solution anytime in 2019.
Problem: nothing provides python-virtualenv needed by azure-cli-2.0.71-1.el7.x86_64 Solution 1: do not install azure-cli-2.0.71-1.el7.x86_64 Solution 2: break azure-cli-2.0.71-1.el7.x86_64 by ignoring some of its dependencies
Same on SLES 12 SP 4, Python 3.4
Problem: nothing provides python-virtualenv needed by azure-cli-2.0.72-1.el7.x86_64
I got the same error on SLES 12 PL 4.
host:~ # zypper install --from azure-cli -y azure-cli Refreshing service ‘SMT-http_smt-azure_susecloud_net’. Refreshing service ‘cloud_update’. Loading repository data… Reading installed packages… Resolving package dependencies…
Problem: nothing provides python2-virtualenv needed by azure-cli-2.0.66-3.el7.x86_64 Solution 1: do not install azure-cli-2.0.66-3.el7.x86_64 Solution 2: break azure-cli-2.0.66-3.el7.x86_64 by ignoring some of its dependencies
Choose from above solutions by number or cancel [1/2/c] ©: c