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
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)
ʻ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 with
python 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
http://qiita.com/testnin2/items/97ddb749879415b23e18 http://qiita.com/tknzk/items/36b04d337f772908d5c6
Recommended Posts