Package Details: python-azure-cli 2.1.0-1

Git Clone URL: https://aur.archlinux.org/python-azure-cli.git (read-only, click to copy)
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: 9
Popularity: 0.33
First Submitted: 2017-03-19 19:11
Last Updated: 2020-02-18 14:50

Latest Comments

1 2 3 4 Next › Last »

pallxk commented on 2020-01-19 03:08

@felis Thanks for you report and solution. Fixed.

felis commented on 2020-01-19 02:32

[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/cli.py", line 206, in invoke cmd_result = self.invocation.execute(args) File "/usr/lib/python3.8/site-packages/azure/cli/core/commands/init.py", line 528, in execute self.commands_loader.load_arguments(command) File "/usr/lib/python3.8/site-packages/azure/cli/core/init.py", 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/init.py", 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/_params.py", 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/actions.py", 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

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/runpy.py", line 193, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.8/site-packages/azure/cli/__main__.py", line 33, in <module>
    az_cli = get_default_cli()
  File "/usr/lib/python3.8/site-packages/azure/cli/core/__init__.py", line 547, in get_default_cli
    from azure.cli.core.azlogging import AzCliLogging
  File "/usr/lib/python3.8/site-packages/azure/cli/core/azlogging.py", line 30, in <module>
    from azure.cli.core.commands.events import EVENT_INVOKER_PRE_CMD_TBL_TRUNCATE
  File "/usr/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", 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/util.py", line 19, in <module>
    from azure.common import AzureException
ModuleNotFoundError: No module named 'azure.common'

thof commented on 2019-12-21 14:40

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

I see this error:

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

with:

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

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

pallxk commented on 2019-11-25 06:46

@enihcam, updated to 2.0.76 and patched for python3.8; Sorry for the long delay.

enihcam commented on 2019-11-16 02:47

Thank you Jammie.

I can see this is only one line change. Can we hotfix this for Archlinux first?

Jammie commented on 2019-11-15 10:23

@enihcam This is already fixed upstream [1] but is not due to be released until 26th November

[1] https://github.com/Azure/azure-cli/pull/10777

enihcam commented on 2019-11-15 05:43

$ az status Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 192, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.8/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/lib/python3.8/site-packages/azure/cli/main.py", line 33, in <module> az_cli = get_default_cli() File "/usr/lib/python3.8/site-packages/azure/cli/core/init.py", line 546, in get_default_cli return AzCli(cli_name='az', File "/usr/lib/python3.8/site-packages/azure/cli/core/init.py", line 55, in init SESSION.load(os.path.join(azure_folder, 'az.sess'), max_age=3600) File "/usr/lib/python3.8/site-packages/azure/cli/core/_session.py", line 46, in load if st.st_mtime + max_age < time.clock(): AttributeError: module 'time' has no attribute 'clock'

pallxk commented on 2019-09-27 01:49

@Daniel, merged the patch, thanks!