Package Details: python-azure-cli 2.0.75-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.180896
First Submitted: 2017-03-19 19:11
Last Updated: 2019-10-17 08:16

Latest Comments

1 2 3 Next › Last »

pallxk commented on 2019-09-27 01:49

@Daniel, merged the patch, thanks!

fo.daniel commented on 2019-09-26 13:44


From 1c3c656e7364a24e31110ed1cb7f54841d4933e0 Mon Sep 17 00:00:00 2001
From: Daniel Edgecumbe <>
Date: Thu, 26 Sep 2019 15:38:54 +0200
Subject: [PATCH] Update to 2.0.74

 PKGBUILD | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index 1491217..0cf5e85 100644
@@ -2,7 +2,7 @@

 pkgdesc="Microsoft Azure Command-Line Tools"
@@ -14,7 +14,7 @@ depends=('python-applicationinsights' 'python-argcomplete' 'python-azure-git' 'p
          'python-tabulate' 'python-vsts-cd-manager' 'python-wheel' 'python-yaml')
 makedepends=('git' 'python-setuptools')

 build() {
   cd "$_name-$_name-$pkgver/src"

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.