Package Details: python-azure-cli 2.0.60-1

Git Clone URL: https://aur.archlinux.org/python-azure-cli.git (read-only)
Package Base: python-azure-cli
Description: Microsoft Azure Command-Line Tools
Upstream URL: https://github.com/Azure/azure-cli
Licenses: MIT
Submitter: optlink
Maintainer: lukaszimmermann
Last Packager: optlink
Votes: 7
Popularity: 1.188513
First Submitted: 2017-03-19 19:11
Last Updated: 2019-03-14 01:41

Latest Comments

1 2 Next › Last »

pallxk commented on 2019-05-30 14:30

If you encountered the following error:

AttributeError: 'CLIConfig' object has no attribute 'config_parser'

Update PKGBUILD to use a newer version like 2.0.64 or later.

If you encountered various ModuleNotFoundError, install python-azure-git (in AUR) instead of python-azure.

Not sure how to raise a Pull Request here, but my fork is at https://github.com/pallxk/python-azure-cli, which solves the problems above.

optlink commented on 2019-03-14 01:45

I have updated this package but Microsoft has broken compatibility with the stable release of their SDK again. This means that for all features to work you will need to use python-azure-git for the time being. If somebody wants to create the tens of subpackages making up the python-azure project (probably could be automated) that would be one way to solve this problem.

Jammie commented on 2019-03-13 10:47

@optlink are you still maintaining this package?

trikonasana commented on 2019-02-12 11:03

When I try to use ACR the below error occurs.

Command: az acr login --name <name here>

Error:

No module named 'azure.mgmt.containerregistry.v2018_09_01' Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/knack/cli.py", line 206, in invoke cmd_result = self.invocation.execute(args) File "/usr/lib/python3.7/site-packages/azure/cli/core/commands/init.py", line 250, in execute self.commands_loader.load_arguments(command) File "/usr/lib/python3.7/site-packages/azure/cli/core/init.py", line 253, in load_arguments self.command_table[command].load_arguments() # this loads the arguments via reflection File "/usr/lib/python3.7/site-packages/azure/cli/core/commands/init.py", line 141, in load_arguments super(AzCliCommand, self).load_arguments() File "/usr/lib/python3.7/site-packages/knack/commands.py", line 76, in load_arguments cmd_args = self.arguments_loader() File "/usr/lib/python3.7/site-packages/azure/cli/core/init.py", line 444, in default_arguments_loader op = handler or self.get_op_handler(operation) File "/usr/lib/python3.7/site-packages/azure/cli/core/init.py", line 489, in get_op_handler op = import_module(mod_to_import) File "/usr/lib/python3.7/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/usr/lib/python3.7/site-packages/azure/cli/command_modules/acr/custom.py", line 11, in <module> from azure.mgmt.containerregistry.v2018_09_01.models import ( ModuleNotFoundError: No module named 'azure.mgmt.containerregistry.v2018_09_01'

optlink commented on 2019-01-01 18:25

There was an API break between wheel 0.31 and 0.32. I am looking into a solution now.

optlink commented on 2018-12-12 20:21

Thanks for the info, I will look into this as soon as I have the chance.

badeball commented on 2018-12-11 13:54

Trying to install this again on different computer (as per 11.12.18) and receive the following error (full trace at http://ix.io/1vNN).

$ az --help

ModuleNotFoundError: No module named 'wheel'

After installing python-wheel and get the following error (full trace at http://ix.io/1vNO).

$ az --help

ModuleNotFoundError: No module named 'wheel.install'

Seems like wheel/install.py was removed in v0.32.0, specifically with 8949250 [1].

[1] https://github.com/pypa/wheel/commit/8949250

leblancfg commented on 2018-12-03 17:25

Hi optlink! I get the same error as Jammie, mentioned below.

rm: cannot remove '/tmp/yaourt-tmp-leblancfg/aur-python-azure-storage/pkg/python-azure-storage/usr/lib/python3.?/site-packages/azure/__init__.py': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
==> ERROR: Makepkg was unable to build python-azure-storage.

Perhaps related to the question mark in the file path?

badeball commented on 2018-11-05 07:55

In regards to my latest comments - it turns out that python-azure (one of the dependencies) is out-of-date (at time of writing).

badeball commented on 2018-10-22 10:05

I get the following error when trying to use the aks sub-command (full output at http://ix.io/1pKD). Is this familiar?

$ az aks --help

cannot import name 'ContainerServiceNetworkProfile' from 'azure.mgmt.containerservice.models' (/usr/lib/python3.7/site-packages/azure/mgmt/containerservice/models/init.py)