dask / dask-ec2

Start a cluster in EC2 for dask.distributed
106 stars 37 forks source link

pyopenssl problem #69

Closed stumitchell closed 7 years ago

stumitchell commented 7 years ago

when trying to install salt master I get this problem

The directory '/home/ubuntu/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disable
d. 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 disable
d. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.                      
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request h
as 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. You can upgrade to a newer version of Python to solve th
is. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.                             
  SNIMissingWarning                                                                                                                 
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLCo
ntext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fai
l. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/se
curity.html#insecureplatformwarning.                                                                                                
  InsecurePlatformWarning                                                                                                           
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-HkHZWW/cryptography/setup.py';f=getattr(tokeniz
e, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tm
p/pip-mWN456-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-HkH
ZWW/cryptography/                                                                                                                   
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLCo
ntext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fai
l. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/se
curity.html#insecureplatformwarning.                                                                                                
  InsecurePlatformWarning                                                                                                           
Couldn't install PyOpenSSL. Error is above (maybe try again)

seems to fixed if you do the following

sudo apt-get install libssl-dev libffi-dev python-dev -y

before you upgrade pyopenssl, it seems someone has removed an old built version from pypi