-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure on SLES 15 SP3 VM: No module named azure.cli.__main__ #20839
Comments
@glaubitz, as we are continuously seeing issues with the pre-installed |
@jiasli No, this is not possible as we must provide our own distribution of the Azure packages as we cannot provide support to customers which install the packages from upstream. Customers are advised to report issues with the Azure packages in openSUSE/SUSE with SUSE's Bugzilla database. If you have customers reporting SUSE-specific issues here, please close the bug report as invalid and refer them to our bug database. |
FWIW, it looks like the comment from the other bug report you are referring to talks about installing packages from Microsoft's own RPM repositories. So, the bug here is that Microsoft's own RPM packages are missing the necessary Also, according to the naming scheme of Microsoft's own |
Thanks @glaubitz, we really appreciate your contribution to make Azure CLI available on openSUSE.
Do you mind letting us know the official link or instruction for reporting Azure CLI issues to SUSE's Bugzilla database?
Could you provide more information on how we could leverage the
This is simply because the RPM packages works universally, right? We haven't seen problems with the RPM package on other Linux distribution's yet. At least, the Still, I think openSUSE can provide an official instruction on removing the pre-installed |
Use https://bugzilla.suse.com and report against the the
It looks like you are combining
There is no guarantee that it works though. You get this guarantee only if you build the packages on the distribution where you want to ship them.
There is no need for these instructions if you just add the proper |
This is actually not that easy. Adding |
Hmm, I wasn't aware you have included the Azure SDK in your In this case, I suggest adding |
We have so many dependencies: azure-cli/src/azure-cli/setup.py Lines 66 to 132 in d04b359
I am afraid all of them may potentially break |
You don't have to add all of these to I just checked, after removing these three packages, only the Thus, you need to add the following to
|
Thanks @glaubitz for the analysis.
I am actually currently working on #20918 to build distribution-specific RPM packages. Perhaps we can make a separate spec for openSUSE.
Well, it can't conflict itself, right? 😉 But still, we are constantly introducing new Do you recommend the usage of
as this seems to be the best workaround for now? |
Great idea! Let me know if I can be of any help!
Oops, sorry. You're right, of course ;).
Yes, but you are not introducing many new We could also maybe have a meta package that all Azure packages depend on. If the meta package gets purged, the whole SDK and CLI packages would be removed as well.
Sure. I would not put it into any scripts though but just as an instruction step on the homepage. FWIW, the Azure SDK and CLI packages are not shipped by default with regular openSUSE and SLE distributions. This affects just the images in the public clouds. |
Describe the bug
Following https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=zypper, a freshly installed Azure CLI fails with
This is because SLES (SUSE Linux Enterprise Server) 15 SP3 VM has a pre-installed Azure CLI 2.16.0 which is outdated and conflicts with latest version.
After installing the latest version,
/usr/lib/python3.6/site-packages/azure/cli/__main__.py
is removedleaving
/usr/lib/python3.6/site-packages/azure/cli
a regular package, conflicting with the latest Azure CLI which is a namespace package under/usr/lib64/az/lib/python3.6/site-packages/azure/cli
(#14372).Solution
Remove the pre-installed Azure CLI before installing the latest one:
If you have already installed the latest one, revert back to the pre-installed one first and reinstall the latest one:
The package name may vary on different system version, run
zypper --no-refresh info azure-cli
on a new SLES 15 SP3 VM to check the source package format:The text was updated successfully, but these errors were encountered: