Package Details: python-azure-cli 2.0.75-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 (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

2.0.74:

From 1c3c656e7364a24e31110ed1cb7f54841d4933e0 Mon Sep 17 00:00:00 2001
From: Daniel Edgecumbe <daniel.edgecumbe@futureordering.com>
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
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@

 _name=azure-cli
 pkgname=python-$_name
-pkgver=2.0.73
+pkgver=2.0.74
 pkgrel=1
 pkgdesc="Microsoft Azure Command-Line Tools"
 arch=('any')
@@ -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')
 source=("https://github.com/Azure/azure-cli/archive/azure-cli-${pkgver}.tar.gz")
-sha256sums=('4bfa66a2c66572cf448670cee0434461e46c8287439b9169002f19a3128d303f')
+sha256sums=('6b1a82b837bd6e6ed43b3c0d55a1bcae1d751b3bca29adc9085399ed9d001dba')

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

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             : https://github.com/Microsoft/knack
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/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.7/site-packages/azure/cli/__main__.py", line 13, in <module>
    from azure.cli.core import get_default_cli
  File "/usr/lib/python3.7/site-packages/azure/cli/core/__init__.py", 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 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.