-
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
Clean install of CLI on OpenSUSE 15 gives error: NotImplementedError: APIVersion 2019-06-01 is not available #13209
Comments
@fengzhou-msft please take a look |
I just created a SLES 15 SP1 PAYG VM. I ran into same error. |
My customer is using a Centos redhat base and they are getting the same error. |
Seeing this as well. |
+1 on Ubuntu |
It seems OpenSUSE 15.1 VM comes with a very old version of azure cli (2.0.45). It has a bunch of old If you haven't installed other python packages, the easiest way to clean up these old azure-cli packages and dependencies is to |
I can repro this issue on openSUSE Leap 15.1. We actually saw this issue before in #12783, #12878, #12779 and mistook it for some This is the pre-installed Azure CLI on openSUSE Leap 15.1:
We have two options here: 1. Contact openSUSE to remove the pre-installed Azure CLISince openSUSE Leap 15.1 is not maintained by Microsoft, we need to contact openSUSE to remove the pre-installed Azure CLI to avoid all kinds of problems. Moreover, it can probably cause other problems once we move to PEP 420 (#13293). 2. Ship Azure CLI with its own PythonAfter installing Azure CLI with zypper, we can run
We can see Azure CLI is using the system |
@magaal, the Azure CLI package on Ubuntu has a built-in Python, which shouldn't suffer from this issue. After installing Azure CLI with apt:
You can see the Python Azure CLI uses is To help us analysis this issue, could you share
|
The reason why directly running > which az
/usr/bin/az
> cat /usr/bin/az
#!/usr/bin/env bash
AZ_INSTALLER=RPM PYTHONPATH=/usr/lib64/az/lib/python3.6/site-packages /usr/bin/python3 -sm azure.cli "$@" https://www.python.org/dev/peps/pep-0420/#specification
|
If you have other Python applications installed, you can use the follwoing workaround: We're also reaching out to the team that builds the image to either upgrade or remove the old azure-cli. |
@fengzhou-msft Thanks for the information The old package in Main repo name should use azure-cli-2.0.45-lp152.2.2 but if openSUSE user use pip3 to install ansible with Azure ( https://docs.ansible.com/ansible/latest/scenario_guides/guide_azure.html) after we clean dependencies and install new azure-cli, ansible command doesn't work anymore :p |
I'm experiencing this issue on openSUSE Tumbleweed when I try to login with 'az login': Error loading command module 'aro': No module named 'azure.mgmt.redhatopenshift' |
@DataRepository are you able to run |
@fengzhou-msft After ansible 2.10, azure module move to external collections I try to install azure-cli first (clean openSUSE Leap 15.2, not install any python package) when I run az --version/usr/bin/python3: No module named azure.cli.main; 'azure.cli' is a package and cannot be directly executed like #8716 |
The newer packages are all available in openSUSE Leap 15.2 and 15.3 now ship version 2.14.2. Same applies to SLE-15-SP1 and newer. Packaging the Azure SDK and CLI packages for a distributions is rather tricky due to the unusual high number of component packages. Plus, the Azure SDK and CLI are apparently developed by different teams at a different development pace such that there are sometimes incompatibilities between SDK and CLI packages unless distribution packagers pick the right version of the SDK component packages. FWIW, I am responsible for the Azure SDK and CLI packaging in openSUSE and SLE and such issues should be reported to the SUSE Bugzilla. |
OS: openSUSE Leap 15.3 Still have problem when install azure-cli when finish install and run /usr/bin/python3.6: No module named azure.cli.main; 'azure.cli' is a package and cannot be directly executed |
@sakanamax, this is different from the original |
You shouldn't mix Azure packages from different sources. In particular, you are installing packages created for Fedora/RHEL on an openSUSE system. If you want the latest RPM packages on openSUSE, you can install them from the |
@glaubitz Any document on openSUSE wiki for install Azure CLI ? "you can install them from the Cloud:Tools and devel:languages:python:azure and devel:languages:python:backports packages." |
You can just install To install the latest versions
But you can also make sure that your |
Hi @glaubitz the repo is for 15.2? according to the URL (https://download.opensuse.org/repositories/Cloud:Tools/openSUSE_Leap_15.2/Cloud:Tools.repo) Any plan or date for newer version azure-cli with openSUSE Leap 15.3 ? ( An update to a newer version is currently pending in our internal maintenance system. ) Again, thanks for help |
The 15.2 repository can be used with 15.3 without any problems.
I will enable repository builds for 15.3 as well.
Sure, no problem. Feel free to report any issues with the Azure package directly to our Bugzilla in case you run into any problems. |
Hi @glaubitz OS: openSUSE Leap 15.3 Thanks for enable repository builds for 15.3 I try to install with these command
I got error message blow Problem: nothing provides 'azure-cli-core = 2.31.0' needed by the to be installed azure-cli-2.31.0-lp153.81.1.noarch Choose from above solutions by number or cancel [1/2/c/d/?] (c): By the way .... There is no " devel:languages:python:backports.repo " in https://download.opensuse.org/repositories/devel:/languages:/python:/azure/15.3/
Any idea about this ? Thanks for kindly help |
I will have a look at that and fix the issue, if there is any.
The .repo file is now there, not sure why you didn't see it earlier. 15.3 is definitely enabled for this repo:
|
Hi @glaubitz Becasue I saw your reply at 2022/1/4 #zypper addrepo https://download.opensuse.org/repositories/devel:languages:python:azure/openSUSE_Leap_15.2/devel:languages:python:backports.repo and change path to https://download.opensuse.org/repositories/devel:/languages:/python:/azure/15.3/ , there is no backports I will try later, thanks for kindly help |
I already add backport repo, but still see the same message
|
There was a remaining issue with the 15.3 repositories that I have fixed now. I have verified on a test VM with openSUSE Leap 15.3 now that installation works with these repos added for 15.3:
|
Hi @glaubitz OS: openSUSE Leap 15.3
Still bad luck with installation Thanks again for kindly help |
Packages are being rebuilt from time to time.
The truck icon means it has been published, the gear means it's being processed. |
@glaubitz Got it I will retry it after the package is ready :) Thanks again |
Hi @glaubitz
|
Hi @glaubitz |
I think we cloud close this issue? Because Azure say not support openSUSE / SUSE after 2.39.0 ? |
|
This is autogenerated. Please review and update as needed.
Describe the bug
Created brand-new OpenSUSE 15.1 VM, Installed CLI as per instructions here:
https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-zypper?view=azure-cli-latest
az login
gives error:
Error loading command module 'aro': No module named 'azure.mgmt.redhatopenshift'
details below:
Command Name
az login
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az login
Expected Behavior
CLI should login to my Azure account/subscription
Environment Summary
Additional Context
The text was updated successfully, but these errors were encountered: