Getting "ImportError: Impossible to Import Check_output Name" (git aws.push in EB CLI)

I installed and configured the AWS Elastic Beanstalk command-line tool on my Mac.

What I installed:

$ python --version
Python 2.7
$ ruby --version
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin10.8.0]
$ eb --version
AWS Elastic Beanstalk Command Line Interface v2.6.3

I configured EB correctly to use git with AWS

When I try to push commit on AWS, I get this error:

$ git aws.push
Traceback (most recent call last):
  File ".git/AWSDevTools/aws.elasticbeanstalk.push", line 21, in <module>
    from aws.dev_tools import * 
  File "/Applications/MAMP/htdocs/innbativel/.git/AWSDevTools/aws/dev_tools.py", line 3, in <module>
    from subprocess import check_output
ImportError: cannot import name check_output

Does anyone have an idea why and how to fix it?

+4
source share
1 answer

I found that my OSX comes with python 2.6 (which does not check_output), and this was contrary to python 2.7, which I installed for EB CLI.

, .git/AWSDevTools/aws.elasticbeanstalk.push python 2.7 :

#!/usr/bin/env python2.7
+4

All Articles