Package Details: python-azure-cli 2.23.0-1

Git Clone URL: (read-only, click to copy)
Package Base: python-azure-cli
Description: Microsoft Azure Command-Line Tools
Upstream URL:
Licenses: MIT
Submitter: optlink
Maintainer: None
Last Packager: pallxk
Votes: 9
Popularity: 0.000000
First Submitted: 2017-03-19 19:11 (UTC)
Last Updated: 2021-05-06 02:07 (UTC)

Latest Comments

1 2 3 4 5 Next › Last »

pallxk commented on 2020-08-26 11:02 (UTC)

@ayekat Thanks for your fix. I was blindly updating the package using a script... Now I've just pushed an update and attributed it to you in commit message.

ayekat commented on 2020-08-26 10:26 (UTC) (edited on 2020-08-27 07:28 (UTC) by ayekat)

--edit: Thanks for the fix! :-)

Upstream appears to have cleaned up a bit, and there are fewer directories in src now (the diff there also contains a change to how it's suggested to build Snaps, so I went with that).

The following changes made the package build correctly (and so far az itself works for me (TM)):

diff --git a/PKGBUILD b/PKGBUILD
index 25759ba..f8e4bdb 100644
@@ -20,10 +20,7 @@ sha256sums=('2a3eae24e2e88f2895f685294f4927f2d11ab2ba41e249d9bb0812a1b2cfd9f6')
 build() {
   cd "$_name-$_name-$pkgver/src"

-  for d in azure-cli \
-               azure-cli-core \
-               azure-cli-nspkg \
-               azure-cli-command_modules-nspkg;
+  for d in azure-cli azure-cli-core
   do cd $d;
      python build;
      cd -;
@@ -33,15 +30,9 @@ build() {
 package() {
   cd "$_name-$_name-$pkgver/src"

-  for d in azure-cli \
-               azure-cli-core \
-               azure-cli-nspkg \
-               azure-cli-command_modules-nspkg;
+  for d in azure-cli azure-cli-core
   do cd $d;
      python install --root="$pkgdir" --optimize=1
      cd -;
-  rm "$pkgdir"/usr/lib/python3.?/site-packages/azure/
-  rm "$pkgdir"/usr/lib/python3.?/site-packages/azure/__pycache__/__init__.*

hoban commented on 2020-04-02 15:20 (UTC)

In case it's helpful to anyone else, I had trouble building this package until after running 'pip uninstall azure_cli_command_modules_nspkg' in a "direnv"-managed directory. There's probably something that can be done with e.g. to avoid this sort of issue: ... Copying azure_cli_command_modules_nspkg.egg-info to /home/hoban/.cache/yay/python-azure-cli/pkg/python-azure-cli/home/hoban/src/project/.direnv/python-3.8.2/lib/python3.8/site-packages/azure_cli_command_modules_nspkg-2.0.3-py3.8.egg-info running install_scripts /home/hoban/.cache/yay/python-azure-cli/src/azure-cli-azure-cli-2.3.1/src rm: cannot remove '/home/hoban/.cache/yay/python-azure-cli/pkg/python-azure-cli/usr/lib/python3.?/site-packages/azure/': No such file or directory ==> ERROR: A failure occurred in package(). Aborting... Error making: python-azure-cli

pallxk commented on 2020-04-02 05:40 (UTC)

@dctcheng Thanks for the feedback. 0.7.0rc for python-knack has been updated on AUR now.

dctcheng commented on 2020-04-01 15:08 (UTC)

Looks like 2.3.0 depends on a RC for python-knack

pallxk commented on 2020-01-19 03:08 (UTC)

@felis Thanks for you report and solution. Fixed.

commented on 2020-01-19 02:32 (UTC)

[felis@user-pc ~]$ az vm create The command failed with an unexpected error. Here is the traceback:

No module named 'antlr4' Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/knack/", line 206, in invoke cmd_result = self.invocation.execute(args) File "/usr/lib/python3.8/site-packages/azure/cli/core/commands/", line 528, in execute self.commands_loader.load_arguments(command) File "/usr/lib/python3.8/site-packages/azure/cli/core/", line 300, in load_arguments loader.load_arguments(command) # this adds entries to the argument registries File "/usr/lib/python3.8/site-packages/azure/cli/command_modules/vm/", line 31, in load_arguments from azure.cli.command_modules.vm._params import load_arguments File "/usr/lib/python3.8/site-packages/azure/cli/command_modules/vm/", line 31, in <module> from azure.cli.command_modules.monitor.actions import get_period_type File "/usr/lib/python3.8/site-packages/azure/cli/command_modules/monitor/", line 7, in <module> import antlr4 ModuleNotFoundError: No module named 'antlr4'

To open an issue, please run: 'az feedback'

Fixed it by installing python-antlr4 . Maybe add that as dependency?

badeball commented on 2020-01-10 12:28 (UTC)

Installed at 2020-01-10, but get the following error. Anyone familiar with it?

$ az --help
Traceback (most recent call last):
  File "/usr/lib/python3.8/", line 193, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.8/site-packages/azure/cli/", line 33, in <module>
    az_cli = get_default_cli()
  File "/usr/lib/python3.8/site-packages/azure/cli/core/", line 547, in get_default_cli
    from azure.cli.core.azlogging import AzCliLogging
  File "/usr/lib/python3.8/site-packages/azure/cli/core/", line 30, in <module>
  File "/usr/lib/python3.8/site-packages/azure/cli/core/commands/", line 29, in <module>
    from azure.cli.core.util import get_command_type_kwarg, read_file_content, get_arg_list, poller_classes
  File "/usr/lib/python3.8/site-packages/azure/cli/core/", line 19, in <module>
    from azure.common import AzureException
ModuleNotFoundError: No module named 'azure.common'

thof commented on 2019-12-21 14:40 (UTC)

I've seen that error too, plus it also complained about missing azure.cli module. I finally solved that reinstalling all azure-related packages, i.e. yay -Rs python-azure-cli && yay -S python-azure-cli. The important point is that I had to clean all existing builds so they could be built again on updated environment.

mwohlf commented on 2019-12-19 16:59 (UTC) (edited on 2019-12-19 17:22 (UTC) by mwohlf)

I see this error:

$ az --help
Traceback (most recent call last):
  File "/usr/lib/python3.8/", line 192, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.8/site-packages/azure/cli/", line 10, in <module>
    from knack.completion import ARGCOMPLETE_ENV_NAME
ModuleNotFoundError: No module named 'knack'


  $ pacman -Q python-knack
  python-knack 0.6.3-1

...hmmm, resolved by $ sudo pip install knack maybe my python install has some issues