awscli stack traces when run

Bug #1326039 reported by Scott Moser
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
awscli (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

$ awscli
Traceback (most recent call last):
  File "/usr/bin/aws", line 23, in <module>
    sys.exit(main())
  File "/usr/bin/aws", line 19, in main
    return awscli.clidriver.main()
  File "/usr/share/awscli/awscli/clidriver.py", line 44, in main
    driver = create_clidriver()
  File "/usr/share/awscli/awscli/clidriver.py", line 53, in create_clidriver
    event_hooks=emitter)
  File "/usr/share/awscli/awscli/plugin.py", line 49, in load_plugins
    plugin.awscli_initialize(event_hooks)
  File "/usr/share/awscli/awscli/handlers.py", line 73, in awscli_initialize
    register_removals(event_handlers)
  File "/usr/share/awscli/awscli/customizations/removals.py", line 32, in register_removals
    'verify-email-address'])
  File "/usr/share/awscli/awscli/customizations/removals.py", line 45, in remove
    self._create_remover(remove_commands))
  File "/usr/lib/python3/dist-packages/botocore/hooks.py", line 64, in register
    self._verify_accept_kwargs(handler)
  File "/usr/lib/python3/dist-packages/botocore/hooks.py", line 84, in _verify_accept_kwargs
    argspec = inspect.getargspec(func)
  File "/usr/lib/python3.4/inspect.py", line 930, in getargspec
    raise ValueError("Function has keyword-only arguments or annotations"
ValueError: Function has keyword-only arguments or annotations, use getfullargspec() API which can support them

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: awscli 1.2.9-2
ProcVersionSignature: Ubuntu 3.15.0-5.10-generic 3.15.0-rc8
Uname: Linux 3.15.0-5-generic x86_64
ApportVersion: 2.14.3-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Jun 3 12:18:06 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2011-10-19 (958 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
PackageArchitecture: all
SourcePackage: awscli
UpgradeStatus: Upgraded to utopic on 2013-05-20 (379 days ago)

Revision history for this message
Scott Moser (smoser) wrote :
Kick In (kick-d)
Changed in awscli (Ubuntu):
status: New → Incomplete
Kick In (kick-d)
Changed in awscli (Ubuntu):
status: Incomplete → New
status: New → Fix Released
Revision history for this message
Kick In (kick-d) wrote :

This seems to have been fixed by an upgraded version of the awscli package in utopic release. In trusty the same version doesn't seem to have this bug.

Revision history for this message
Tessa (unit3) wrote :

I'm seeing this reappear on utopic with awscli (1.2.9-2):

⟫ aws configure
Traceback (most recent call last):
  File "/usr/bin/aws", line 23, in <module>
    sys.exit(main())
  File "/usr/bin/aws", line 19, in main
    return awscli.clidriver.main()
  File "/usr/share/awscli/awscli/clidriver.py", line 44, in main
    driver = create_clidriver()
  File "/usr/share/awscli/awscli/clidriver.py", line 53, in create_clidriver
    event_hooks=emitter)
  File "/usr/share/awscli/awscli/plugin.py", line 49, in load_plugins
    plugin.awscli_initialize(event_hooks)
  File "/usr/share/awscli/awscli/handlers.py", line 73, in awscli_initialize
    register_removals(event_handlers)
  File "/usr/share/awscli/awscli/customizations/removals.py", line 32, in register_removals
    'verify-email-address'])
  File "/usr/share/awscli/awscli/customizations/removals.py", line 45, in remove
    self._create_remover(remove_commands))
  File "/usr/lib/python3/dist-packages/botocore/hooks.py", line 64, in register
    self._verify_accept_kwargs(handler)
  File "/usr/lib/python3/dist-packages/botocore/hooks.py", line 84, in _verify_accept_kwargs
    argspec = inspect.getargspec(func)
  File "/usr/lib/python3.4/inspect.py", line 930, in getargspec
    raise ValueError("Function has keyword-only arguments or annotations"
ValueError: Function has keyword-only arguments or annotations, use getfullargspec() API which can support them

Revision history for this message
Robie Basak (racb) wrote :

Utopic ships 1.3.21-1. 1.2.9-2 was only shipped with Trusty. I cannot reproduce your issue on a fresh cloud image - neither on Trusty nor Utopic.

Revision history for this message
Tessa (unit3) wrote :

I wonder if this is a shaw mirror issue, since I'm definitely getting that version on utopic from their mirror:

⟫ apt-cache showpkg awscli
Package: awscli
Versions:
1.2.9-2 (/var/lib/apt/lists/ubuntu.arcticnetwork.ca_dists_utopic_universe_binary-amd64_Packages)
 Description Language:
                 File: /var/lib/apt/lists/ubuntu.arcticnetwork.ca_dists_utopic_universe_binary-amd64_Packages
                  MD5: aaf8e6b3ff4426c8a7b4d7d49df6ee53
 Description Language: en
                 File: /var/lib/apt/lists/ubuntu.arcticnetwork.ca_dists_utopic_universe_i18n_Translation-en
                  MD5: aaf8e6b3ff4426c8a7b4d7d49df6ee53

Reverse Depends:
Dependencies:
1.2.9-2 - python3 (0 (null)) python3-botocore (0 (null)) python3-docutils (0 (null)) python3-rsa (0 (null)) python3:any (2 3.3.2-2~) python3-six (0 (null)) python3-colorama (0 (null)) python3-bcdoc (0 (null))
Provides:
1.2.9-2 -
Reverse Provides:

Revision history for this message
Robie Basak (racb) wrote :

Sounds like you have the mirror is behind, from before Utopic was released. What does "apt-cache policy awscli" say?

I get:

$ rmadison awscli
 awscli | 1.2.9-2 | trusty/universe | source, all
 awscli | 1.3.21-1 | utopic/universe | source, all
 awscli | 1.7.0-1 | vivid/universe | source, all
$ chdist apt-cache utopic policy awscli
awscli:
  Installed: (none)
  Candidate: 1.3.21-1
  Version table:
     1.3.21-1 0
        500 http://archive.ubuntu.com/ubuntu/ utopic/universe amd64 Packages

(I'm using chdist since I'm not running a Utopic system)

Revision history for this message
Robie Basak (racb) wrote :

> Sounds like you have the mirror is behind

"Sounds like your mirror is behind" is what I meant to type there.

Revision history for this message
Tessa (unit3) wrote :

⟫ apt-cache policy awscli
awscli:
  Installed: (none)
  Candidate: 1.2.9-2
  Version table:
     1.2.9-2 0
        500 http://ubuntu.arcticnetwork.ca/ utopic/universe amd64 Packages

So that looks fine.

Added in ca.archive.ubuntu.com, and yeah:

395 upgraded, 19 newly installed, 2 to remove and 0 not upgraded.
Need to get 807 MB of archives.
After this operation, 765 MB of additional disk space will be used.

Definitely a mirror problem:

⟫ apt-cache showpkg awscli
Package: awscli
Versions:
1.3.21-1 (/var/lib/apt/lists/ca.archive.ubuntu.com_ubuntu_dists_utopic_universe_binary-amd64_Packages)
 Description Language:
                 File: /var/lib/apt/lists/ubuntu.arcticnetwork.ca_dists_utopic_universe_binary-amd64_Packages
                  MD5: aaf8e6b3ff4426c8a7b4d7d49df6ee53
 Description Language: en
                 File: /var/lib/apt/lists/ubuntu.arcticnetwork.ca_dists_utopic_universe_i18n_Translation-en
                  MD5: aaf8e6b3ff4426c8a7b4d7d49df6ee53

1.2.9-2 (/var/lib/apt/lists/ubuntu.arcticnetwork.ca_dists_utopic_universe_binary-amd64_Packages)
 Description Language:
                 File: /var/lib/apt/lists/ubuntu.arcticnetwork.ca_dists_utopic_universe_binary-amd64_Packages
                  MD5: aaf8e6b3ff4426c8a7b4d7d49df6ee53
 Description Language: en
                 File: /var/lib/apt/lists/ubuntu.arcticnetwork.ca_dists_utopic_universe_i18n_Translation-en
                  MD5: aaf8e6b3ff4426c8a7b4d7d49df6ee53

Reverse Depends:
Dependencies:
1.3.21-1 - python3 (0 (null)) python3-botocore (0 (null)) python3-rsa (0 (null)) python3-six (0 (null)) python3-colorama (0 (null)) python3-bcdoc (0 (null)) python3:any (2 3.3.2-2~) python3-docutils (0 (null))
1.2.9-2 - python3 (0 (null)) python3-botocore (0 (null)) python3-docutils (0 (null)) python3-rsa (0 (null)) python3:any (2 3.3.2-2~) python3-six (0 (null)) python3-colorama (0 (null)) python3-bcdoc (0 (null))
Provides:
1.3.21-1 -
1.2.9-2 -

Thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.