Ab awsebcli 3.7.5
tritt bei der Installation auf CircleCI ein Fehler auf.
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
Wenn es kleiner als "Python 2.7.9" ist, kann HTTPS nicht übergeben werden, da die Einstellung von "ssl module", die mit "urllib3" verwendet werden kann, eingeschränkt ist. Wahrscheinlich aufgrund der diesbezüglichen Korrektur in "awsebcli 3.7.5".
Die Standard-Python-Version von Circleci ist 2.7.6 (Stand: 12. April 2016).
Es gibt auch eine Möglichkeit, die Version von awsebcli
zu korrigieren, aber ich persönlich denke, dass es besser ist, Python zu erhöhen. Da es eine große Sache ist, werde ich es mit "Python 2.7.9" von aws lambda abgleichen, das ich in letzter Zeit oft benutze. (Sudo wird nicht mehr benötigt)
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