À partir de ʻawsebcli 3.7.5`, une erreur se produit lors de l'installation sur 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
S'il est inférieur à «Python 2.7.9», HTTPS ne peut pas être passé car le paramètre du «module ssl» qui peut être utilisé avec «urllib3» est restreint. Probablement à cause de la correction liée à cela dans ʻaw sebcli 3.7.5`.
Et la «version Python par défaut» de Circleci est 2.7.6 (au 12 avril 2016)
Version ʻAwsebcli[Il y a aussi un moyen de le réparer](http://qiita.com/tknzk/items/36b04d337f772908d5c6), mais je pense personnellement qu'il vaut mieux élever python. Comme c'est un gros problème, je vais le faire correspondre avec
python 2.7.9` de aws lambda que j'utilise souvent récemment. (Sudo n'est plus nécessaire)
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