If you want to include awsebcli with CircleCI, specify the python version

problem

Starting with ʻawsebcli 3.7.5`, an error occurs when installing on CircleCI.

circle.yml


dependencies:
  pre:
    - sudo pip install awsebcli

circleci_error


$ sudo pip install awsebcli
The directory '/home/ubuntu/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/ubuntu/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting awsebcli
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning

Cause

InsecurePlatformWarning

If it is less than Python 2.7.9, HTTPS cannot be passed because the setting of ssl module that can be used with ʻurllib3 is restricted. Probably due to the correction related to this in ʻaw sebcli 3.7.5.

And the default Python version of Circleci is 2.7.6 (as of 2016/04/12)

Solution

ʻAwsebcliversion [There is also a way to fix it](http://qiita.com/tknzk/items/36b04d337f772908d5c6), but I personally think that it is better to raise python. Since it's a big deal, I will match it withpython 2.7.9` of aws lambda which I often use recently. (Sudo is no longer needed)

circle.yml


machine:
  python:
    version: 2.7.9
dependencies:
  pre:
    - pip install awsebcli

Relation

http://qiita.com/testnin2/items/97ddb749879415b23e18 http://qiita.com/tknzk/items/36b04d337f772908d5c6

Recommended Posts

If you want to include awsebcli with CircleCI, specify the python version
I want to specify another version of Python with pyvenv
Specify the Python executable to use with virtualenv
What you want to memorize with the basic "string manipulation" grammar of python
If you want to enter the virtual environment with jupyter, nb_conda_kernels is recommended
If you want to make a discord bot with python, let's use a framework
If you want to use Cython, also include python-dev
[Python] How to specify the download location with youtube-dl
I want to inherit to the back with python dataclass
Specify MinGW as the compiler to use with Python
Specify python version with virtualenv
Solution when you want to use cv_bridge with python3 (virtualenv)
I want to initialize if the value is empty (python)
[Python] If you suddenly want to create an inquiry form
[Python] I want to use the -h option with argparse
If you want your colleagues to use the same language
Nice to meet you with python
How to get the Python version
I want to debug with Python
If you want to use field names with hyphens when updating firestore data in python
If you want to become a data scientist, start with Kaggle
I want to know the weather with LINE bot feat.Heroku + Python
[September 2020 version] Explains the procedure to use Gmail API with Python
I want to output the beginning of the next month with Python
I want to know if you install Python on Mac ・ Iroha
If you want to assign csv export to a variable in python
[TensorFlow] If you want to run TensorBoard, install it with pip
When you want to adjust the axis scale interval with APLpy
I want to analyze logs with Python
I want to play with aws with python
The road to compiling to Python 3 with Thrift
If you want a singleton in python, think of the module as a singleton
18 beautiful Python terms you want to read aloud. R18 with example sentences
Python Note: When you want to know the attributes of an object
[Python] If you want to draw a scatter plot of multiple clusters
If you want to get multiple statistics with groupby in pandas v1
What to do if the server doesn't start with python manage.py runserver
If you want to count words in Python, it's convenient to use Counter.
Isn't Qt the strongest library if you want to easily output SVG?
Move the turtle to the place where you click the mouse with turtle in Python
What to do if you get a "Wrong Python Platform" warning when using Python with the NetBeans IDE
Even if the development language is changed to python3 in Cloud9, version 2 is displayed in python --version
Two document generation tools that you definitely want to use if you write python
AssertNumQueries is useful if you want to easily test N + 1 queries with django
How to specify the NIC to scan with amazon-dash
I want to use MATLAB feval with python
If you want to make a TODO application (distributed) now using only Python
The easiest way to synthesize speech with python
If you don't know how to draw the graph you want with matplotlib, it is convenient to look at the gallery.
Try to solve the man-machine chart with Python
What to do if you installed pyenv on Mac OS using Homebrew but the python version doesn't switch
I want to make a game with Python
If you want to create a Word Cloud.
When you want to update the chrome driver.
Say hello to the world with Python with IntelliJ
[OpenCV] When you want to check if it is read properly with imread
How to specify TLS version in python requests
How to specify attributes with Mock of python
Use PIL in Python to extract only the data you want from Exif
The easiest way to use OpenCV with python
[Improved version] Script to monitor CPU with Python