Package Details: python-azure-cli 2.0.52-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: optlink
Last Packager: optlink
Votes: 5
Popularity: 0.030259
First Submitted: 2017-03-19 19:11
Last Updated: 2019-01-01 18:57

Latest Comments

1 2 Next › Last »

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>

Error:

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

optlink commented on 2019-01-01 18:25

There was an API break between wheel 0.31 and 0.32. I am looking into a solution now.

optlink commented on 2018-12-12 20:21

Thanks for the info, I will look into this as soon as I have the chance.

badeball commented on 2018-12-11 13:54

Trying to install this again on different computer (as per 11.12.18) and receive the following error (full trace at http://ix.io/1vNN).

$ az --help

ModuleNotFoundError: No module named 'wheel'

After installing python-wheel and get the following error (full trace at http://ix.io/1vNO).

$ az --help

ModuleNotFoundError: No module named 'wheel.install'

Seems like wheel/install.py was removed in v0.32.0, specifically with 8949250 [1].

[1] https://github.com/pypa/wheel/commit/8949250

leblancfg commented on 2018-12-03 17:25

Hi optlink! I get the same error as Jammie, mentioned below.

rm: cannot remove '/tmp/yaourt-tmp-leblancfg/aur-python-azure-storage/pkg/python-azure-storage/usr/lib/python3.?/site-packages/azure/__init__.py': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
==> ERROR: Makepkg was unable to build python-azure-storage.

Perhaps related to the question mark in the file path?

badeball commented on 2018-11-05 07:55

In regards to my latest comments - it turns out that python-azure (one of the dependencies) is out-of-date (at time of writing).

badeball commented on 2018-10-22 10:05

I get the following error when trying to use the aks sub-command (full output at http://ix.io/1pKD). Is this familiar?

$ az aks --help

cannot import name 'ContainerServiceNetworkProfile' from 'azure.mgmt.containerservice.models' (/usr/lib/python3.7/site-packages/azure/mgmt/containerservice/models/init.py)

optlink commented on 2018-07-13 01:02

@jammie I am not able to reproduce that issue.

Jammie commented on 2018-07-12 19:40

rm: cannot remove '/home/snip/.cache/yay/python-azure-cli/pkg/python-azure-cli/usr/lib/python3.?/site-packages/azure/init.py': No such file or directory

==> ERROR: A failure occurred in package(). Aborting...

Error making: python-azure-cli

johnhamelink commented on 2018-04-13 15:05

I found I had to install python-yaml in order for the 'az' to work: https://gist.github.com/johnhamelink/798fa36071f34a1f1ef2a2e727445e21