Package Details: python-azure-cli 2.0.73-1

Git Clone URL: (read-only)
Package Base: python-azure-cli
Description: Microsoft Azure Command-Line Tools
Upstream URL:
Licenses: MIT
Submitter: optlink
Maintainer: lukaszimmermann (pallxk)
Last Packager: pallxk
Votes: 8
Popularity: 0.367492
First Submitted: 2017-03-19 19:11
Last Updated: 2019-09-11 05:42

Latest Comments

1 2 3 Next › Last »

pallxk commented on 2019-07-10 14:58

@Jammie, glad to hear problem solved :)

Jammie commented on 2019-07-10 14:49

@pallxk That also errored, but it gave me a clue. Turns out I had an older version of knack lying in ~/.local/lib/python3.7/site-packages which overrode the version in /usr/lib/python3.7/site-packages.

Thanks for all your help!

pallxk commented on 2019-07-10 14:23

@Jammie, would you mind to run

python -c 'from knack.preview import PreviewItem; print("ok")'

and see it there is any error?

By the way, I've just did a quick test of the package on my PC and one remote machine and an archlinux/base docker container. Everything seems working fine.

In addition, I've also pushed python-knack 0.6.3 just now, though I think that should not make any difference to this problem.

Jammie commented on 2019-07-10 13:45

@pallxk Thanks for the quick reply. I'm using python-knack 0.6.2-1. I tried reinstalling, but I get the same issue

$ yay -Qi python-knack
Name            : python-knack
Version         : 0.6.2-1
Description     : A Python command line interface framework
Architecture    : any
URL             :
Licenses        : MIT
Groups          : None
Provides        : None
Depends On      : python-argcomplete  python-colorama  python-jmespath  python-six  python-tabulate  python-yaml
Optional Deps   : None
Required By     : python-azure-cli
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 470.00 KiB
Packager        : Unknown Packager
Build Date      : Wed 10 Jul 2019 15:13:23 CEST
Install Date    : Wed 10 Jul 2019 15:13:25 CEST
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : None

pallxk commented on 2019-07-10 13:43

@Jammie, az version since 2.0.67 requires python-knack >= 0.6.2, which version of python-knack are you using? If you are not using any AUR helpers, you might need to upgrade python-knack in AUR manually.

Jammie commented on 2019-07-10 13:16

I'm getting the following error when using Azure CLI

$ az
Traceback (most recent call last):
  File "/usr/lib/python3.7/", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.7/site-packages/azure/cli/", line 13, in <module>
    from azure.cli.core import get_default_cli
  File "/usr/lib/python3.7/site-packages/azure/cli/core/", line 20, in <module>
    from knack.preview import PreviewItem
ModuleNotFoundError: No module named 'knack.preview'

Any suggestions?

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, 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>


No module named 'azure.mgmt.containerregistry.v2018_09_01' Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/knack/", line 206, in invoke cmd_result = self.invocation.execute(args) File "/usr/lib/python3.7/site-packages/azure/cli/core/commands/", line 250, in execute self.commands_loader.load_arguments(command) File "/usr/lib/python3.7/site-packages/azure/cli/core/", 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/", line 141, in load_arguments super(AzCliCommand, self).load_arguments() File "/usr/lib/python3.7/site-packages/knack/", line 76, in load_arguments cmd_args = self.arguments_loader() File "/usr/lib/python3.7/site-packages/azure/cli/core/", line 444, in default_arguments_loader op = handler or self.get_op_handler(operation) File "/usr/lib/python3.7/site-packages/azure/cli/core/", line 489, in get_op_handler op = import_module(mod_to_import) File "/usr/lib/python3.7/importlib/", 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/", line 11, in <module> from azure.mgmt.containerregistry.v2018_09_01.models import ( ModuleNotFoundError: No module named 'azure.mgmt.containerregistry.v2018_09_01'