<div dir="ltr"><div><div><div><div><div>Hello,<br><br></div>I reproduce this after building the package, installing it and run simply `az`.<br><br></div>After tracking this, adapting the upstream code in azure.cli.core module from:<br><br></div><div>```python<br></div><div>class EmptyDefaultCompletionFinder(argcomplete.CompletionFinder):<br>    def __init__(self, *args, **kwargs):<br>        super(EmptyDefaultCompletionFinder, self).__init__(*args, default_completer=lambda _: (),<br>                                                           **kwargs)<br><br>```<br><br></div>to:<br><br>```python<br>class EmptyDefaultCompletionFinder(argcomplete.CompletionFinder):<br>    def __init__(self, *args, **kwargs):<br>        kwargs['default_completer'] = lambda _: ()<br>        super(EmptyDefaultCompletionFinder, self).__init__(*args, **kwargs)<br>```<br><br></div><div>fixes it.<br></div>Now running az, i obtain back the help message.<br><br></div><div>Now to figure out where i must adapt this.<br><br></div><div>After looking out some more, it seems upstream have fixed this already \o/<br><a href="https://github.com/Azure/azure-cli/blob/master/src/azure-cli-core/azure/cli/core/parser.py#L41">https://github.com/Azure/azure-cli/blob/master/src/azure-cli-core/azure/cli/core/parser.py#L41</a><br></div><div>Moving the default_completer in the caller of the function, which makes sense.<br><br></div><div>Ok, so this package needs updating :D<br></div><div><br></div>Cheers,<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 13, 2017 at 9:26 PM, Andy Hochhaus <span dir="ltr"><<a href="mailto:andy@hochhaus.us" target="_blank">andy@hochhaus.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Package: azure-cli<br>
Version: 0.1.0~b7-1<br>
Severity: important<br>
<br>
Dear Maintainer,<br>
<br>
   * What led up to the situation?<br>
<br>
After installing 'azure-cli', running the 'az' command fails with an error.<br>
<br>
   * What exactly did you do (or not do) that was effective (or<br>
     ineffective)?<br>
<br>
$ az<br>
Error loading command module 'storage'<br>
__init__() got multiple values for keyword argument 'default_completer'<br>
Traceback (most recent call last):<br>
  File "/usr/lib/python3/dist-<wbr>packages/azure/cli/main.py", line 35, in main<br>
    cmd_result = APPLICATION.execute(args)<br>
  File "/usr/lib/python3/dist-<wbr>packages/azure/cli/core/<wbr>application.py", line 84, in execute<br>
    self.parser.load_command_<wbr>table(command_table)<br>
  File "/usr/lib/python3/dist-<wbr>packages/azure/cli/core/<wbr>parser.py", line 91, in load_command_table<br>
    enable_autocomplete(self)<br>
  File "/usr/lib/python3/dist-<wbr>packages/azure/cli/core/<wbr>parser.py", line 34, in enable_autocomplete<br>
    argcomplete.autocomplete(<wbr>parser, validator=lambda c, p: c.lower().startswith(p.lower()<wbr>))<br>
  File "/usr/lib/python3/dist-<wbr>packages/argcomplete/__init__.<wbr>py", line 166, in __call__<br>
    default_completer=default_<wbr>completer)<br>
  File "/usr/lib/python3/dist-<wbr>packages/azure/cli/core/<wbr>parser.py", line 30, in __init__<br>
    **kwargs)<br>
TypeError: __init__() got multiple values for keyword argument 'default_completer'<br>
<br>
   * What was the outcome of this action?<br>
<br>
An error loading hte command module 'storage'.<br>
<br>
   * What outcome did you expect instead?<br>
<br>
The azure cli to start<br>
<br>
-- System Information:<br>
Debian Release: 9.0<br>
  APT prefers testing<br>
  APT policy: (500, 'testing')<br>
Architecture: amd64 (x86_64)<br>
<br>
Kernel: Linux 4.8.6-x86_64-linode78 (SMP w/1 CPU core)<br>
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)<br>
Shell: /bin/sh linked to /bin/dash<br>
Init: systemd (via /run/systemd/system)<br>
<br>
Versions of packages azure-cli depends on:<br>
ii  python3-adal                 0.4.4-1<br>
ii  python3-applicationinsights  0.10.0-2<br>
ii  python3-argcomplete          1.8.1-1<br>
ii  python3-azure                2.0.0~rc6+dfsg-2<br>
ii  python3-colorama             0.3.7-1<br>
ii  python3-jmespath             0.9.0-2<br>
ii  python3-msrest               0.4.4-1<br>
ii  python3-msrestazure          0.4.7-1<br>
ii  python3-pip                  9.0.1-2<br>
ii  python3-pygments             2.2.0+dfsg-1<br>
ii  python3-requests             2.12.4-1<br>
ii  python3-six                  1.10.0-3<br>
ii  python3-tabulate             0.7.7-1<br>
ii  python3-urllib3              1.19.1-1<br>
ii  python3-yaml                 3.12-1<br>
pn  python3:any                  <none><br>
<br>
azure-cli recommends no packages.<br>
<br>
azure-cli suggests no packages.<br>
<br>
-- no debconf information<br>
<br>
______________________________<wbr>_________________<br>
Pkg-azure-team mailing list<br>
<a href="mailto:Pkg-azure-team@lists.alioth.debian.org">Pkg-azure-team@lists.alioth.<wbr>debian.org</a><br>
<a href="https://lists.alioth.debian.org/mailman/listinfo/pkg-azure-team" rel="noreferrer" target="_blank">https://lists.alioth.debian.<wbr>org/mailman/listinfo/pkg-<wbr>azure-team</a><br>
</blockquote></div><br></div>