lamiastella

sudo pip install cryptography --force-reinstall

Sep 29th, 2016
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.82 KB | None | 0 0
  1. $ sudo pip install cryptography --force-reinstall
  2. 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.
  3. 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.
  4. Collecting cryptography
  5. /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: 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. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  6. SNIMissingWarning
  7. /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  8. InsecurePlatformWarning
  9. Downloading cryptography-1.5.2.tar.gz (400kB)
  10. 100% |████████████████████████████████| 409kB 3.0MB/s
  11. Collecting idna>=2.0 (from cryptography)
  12. Downloading idna-2.1-py2.py3-none-any.whl (54kB)
  13. 100% |████████████████████████████████| 61kB 12.3MB/s
  14. Requirement already satisfied (use --upgrade to upgrade): pyasn1>=0.1.8 in /usr/local/lib/python2.7/dist-packages (from cryptography)
  15. Requirement already satisfied (use --upgrade to upgrade): six>=1.4.1 in /usr/lib/python2.7/dist-packages (from cryptography)
  16. Collecting setuptools>=11.3 (from cryptography)
  17. Downloading setuptools-28.0.0-py2.py3-none-any.whl (467kB)
  18. 100% |████████████████████████████████| 471kB 2.8MB/s
  19. Collecting enum34 (from cryptography)
  20. Downloading enum34-1.1.6-py2-none-any.whl
  21. Collecting ipaddress (from cryptography)
  22. Downloading ipaddress-1.0.17-py2-none-any.whl
  23. Collecting cffi>=1.4.1 (from cryptography)
  24. Downloading cffi-1.8.3-cp27-cp27mu-manylinux1_x86_64.whl (386kB)
  25. 100% |████████████████████████████████| 389kB 3.4MB/s
  26. Collecting pycparser (from cffi>=1.4.1->cryptography)
  27. Downloading pycparser-2.14.tar.gz (223kB)
  28. 100% |████████████████████████████████| 225kB 5.8MB/s
  29. Installing collected packages: idna, setuptools, enum34, ipaddress, pycparser, cffi, cryptography
  30. Found existing installation: setuptools 3.3
  31. Uninstalling setuptools-3.3:
  32. Successfully uninstalled setuptools-3.3
  33. Running setup.py install for pycparser ... done
  34. Running setup.py install for cryptography ... error
  35. Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-oUvjlY/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ckZ4zV-record/install-record.txt --single-version-externally-managed --compile:
  36. running install
  37. running build
  38. running build_py
  39. creating build
  40. creating build/lib.linux-x86_64-2.7
  41. creating build/lib.linux-x86_64-2.7/cryptography
  42. copying src/cryptography/__about__.py -> build/lib.linux-x86_64-2.7/cryptography
  43. copying src/cryptography/fernet.py -> build/lib.linux-x86_64-2.7/cryptography
  44. copying src/cryptography/exceptions.py -> build/lib.linux-x86_64-2.7/cryptography
  45. copying src/cryptography/utils.py -> build/lib.linux-x86_64-2.7/cryptography
  46. copying src/cryptography/__init__.py -> build/lib.linux-x86_64-2.7/cryptography
  47. creating build/lib.linux-x86_64-2.7/cryptography/x509
  48. copying src/cryptography/x509/extensions.py -> build/lib.linux-x86_64-2.7/cryptography/x509
  49. copying src/cryptography/x509/name.py -> build/lib.linux-x86_64-2.7/cryptography/x509
  50. copying src/cryptography/x509/base.py -> build/lib.linux-x86_64-2.7/cryptography/x509
  51. copying src/cryptography/x509/oid.py -> build/lib.linux-x86_64-2.7/cryptography/x509
  52. copying src/cryptography/x509/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/x509
  53. copying src/cryptography/x509/general_name.py -> build/lib.linux-x86_64-2.7/cryptography/x509
  54. creating build/lib.linux-x86_64-2.7/cryptography/hazmat
  55. copying src/cryptography/hazmat/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat
  56. creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
  57. copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
  58. copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
  59. copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
  60. copying src/cryptography/hazmat/primitives/serialization.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
  61. copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
  62. copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
  63. copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
  64. copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
  65. creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
  66. copying src/cryptography/hazmat/backends/multibackend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
  67. copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
  68. copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
  69. creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings
  70. copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings
  71. creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
  72. copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
  73. copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
  74. copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
  75. copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
  76. creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
  77. copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
  78. copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
  79. copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
  80. copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
  81. creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
  82. copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
  83. copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
  84. copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
  85. copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
  86. copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
  87. copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
  88. copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
  89. creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
  90. copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
  91. copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
  92. copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
  93. copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
  94. copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
  95. copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
  96. creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/interfaces
  97. copying src/cryptography/hazmat/primitives/interfaces/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/interfaces
  98. creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
  99. copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
  100. copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
  101. copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
  102. copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
  103. copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
  104. copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
  105. copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
  106. copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
  107. copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
  108. copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
  109. copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
  110. copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
  111. copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
  112. creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
  113. copying src/cryptography/hazmat/backends/commoncrypto/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
  114. copying src/cryptography/hazmat/backends/commoncrypto/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
  115. copying src/cryptography/hazmat/backends/commoncrypto/backend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
  116. copying src/cryptography/hazmat/backends/commoncrypto/ciphers.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
  117. copying src/cryptography/hazmat/backends/commoncrypto/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
  118. creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
  119. copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
  120. copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
  121. copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
  122. creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
  123. copying src/cryptography/hazmat/bindings/commoncrypto/binding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
  124. copying src/cryptography/hazmat/bindings/commoncrypto/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
  125. running egg_info
  126. writing requirements to src/cryptography.egg-info/requires.txt
  127. writing src/cryptography.egg-info/PKG-INFO
  128. writing top-level names to src/cryptography.egg-info/top_level.txt
  129. writing dependency_links to src/cryptography.egg-info/dependency_links.txt
  130. writing entry points to src/cryptography.egg-info/entry_points.txt
  131. warning: manifest_maker: standard file '-c' not found
  132.  
  133. reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
  134. reading manifest template 'MANIFEST.in'
  135. no previously-included directories found matching 'docs/_build'
  136. warning: no previously-included files matching '*' found under directory 'vectors'
  137. writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
  138. running build_ext
  139. generating cffi module 'build/temp.linux-x86_64-2.7/_padding.c'
  140. creating build/temp.linux-x86_64-2.7
  141. generating cffi module 'build/temp.linux-x86_64-2.7/_constant_time.c'
  142. generating cffi module 'build/temp.linux-x86_64-2.7/_openssl.c'
  143. building '_openssl' extension
  144. creating build/temp.linux-x86_64-2.7/build
  145. creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7
  146. x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o
  147. build/temp.linux-x86_64-2.7/_openssl.c:12:24: fatal error: pyconfig.h: No such file or directory
  148. # include <pyconfig.h>
  149. ^
  150. compilation terminated.
  151. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  152.  
  153. ----------------------------------------
  154. Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-oUvjlY/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ckZ4zV-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-oUvjlY/cryptography/
  155. /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  156. InsecurePlatformWarning
Advertisement
Add Comment
Please, Sign In to add comment