question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Runtime Failure on awscli 1.13+

See original GitHub issue

getting the following error when attempting to run awsudo on newer versions of awscli python libraries.

Latest working version:

awscli-1.12.2
botocore-1.8.2

Failures start in following:

awscli-1.13.0
botocore-1.8.3

Specific message / issue:

# awsudo -u profile_name env
Traceback (most recent call last):
  File "/root/.local/bin/awsudo", line 9, in <module>
    load_entry_point('awsudo==0.0.0', 'console_scripts', 'awsudo')()
  File "/root/.local/lib/python2.7/site-packages/awsudo/main.py", line 68, in main
    run(args, resolver.getEnvironment(profile))
  File "/root/.local/lib/python2.7/site-packages/awsudo/config.py", line 16, in getEnvironment
    session.emit('session-initialized', session=session)
  File "/usr/lib/python2.7/site-packages/botocore/session.py", line 719, in emit
    return self._events.emit(event_name, **kwargs)
  File "/usr/lib/python2.7/site-packages/botocore/hooks.py", line 227, in emit
    return self._emit(event_name, kwargs)
  File "/usr/lib/python2.7/site-packages/botocore/hooks.py", line 210, in _emit
    response = handler(**kwargs)
TypeError: attach_history_handler() takes exactly 2 arguments (1 given)

The ‘attach_history_handler()’ exists in the new history options of the aws-cli that started in that version.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ktilcucommented, Jul 4, 2018

@yanotoma @hikerspath Sorry for the huge delay. I finally merged @rizkidoank’s pull request. I think this should patch things up for the near term.

1reaction
ktilcucommented, Feb 6, 2018

@yanotoma @hikerspath We have a temporary fix in. Let me know if you have any problems with it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install, Update, and Uninstall the AWS CLI version 1 on ...
Install, update, and uninstall the AWS CLI version 1 using the MSI installer · Install, update, and uninstall the AWS CLI version 1...
Read more >
awscli · PyPI
This package provides a unified command line interface to Amazon Web Services. Jump to: Getting Started. Getting Help. More Resources ...
Read more >
Install aws cli in CI image (!2599) · Merge requests - GitLab
An error occurred while retrieving approval data for this merge request. Install aws cli in CI image.
Read more >
API error (400): OCI runtime create failed: container_linux.go ...
I am able to start the same container locally. I start the process from awscli with the following command: aws batch submit-job --job-name ......
Read more >
Package List — Spack 0.20.0.dev0 documentation
It creates control-flow models of each MPI process and, when a failure occurs, ... awscli¶. Homepage: https://pypi.org/project/awscli/. Spack package:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found