echoing-lock-18813
01/15/2021, 4:57 AM./pants build rapidfire::
/Users/aminghadersohi/.cache/pants/setup/bootstrap-Darwin-x86_64/1.10.0/lib/python2.7/site-packages/OpenSSL/crypto.py:12: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography import x509
timestamp: 2021-01-14T20:56:24.152463
Exception caught: (exceptions.UnicodeDecodeError) (backtrace omitted)
Exception message: 'ascii' codec can't decode byte 0xe2 in position 4: ordinal not in range(128)
happy-kitchen-89482
01/15/2021, 7:37 AM>>> import locale
>>> locale.getpreferredencoding()
echoing-lock-18813
01/15/2021, 7:00 PM~ python
WARNING: Python 2.7 is not recommended.
This version is included in macOS for compatibility with legacy software.
Future versions of macOS will not include Python 2.7.
Instead, it is recommended that you transition to using 'python3' from within Terminal.
Python 2.7.16 (default, Jun 5 2020, 22:59:21)
[GCC 4.2.1 Compatible Apple LLVM 11.0.3 (clang-1103.0.29.20) (-macos10.15-objc- on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.getpreferredencoding()
'UTF-8'
>>>
happy-kitchen-89482
01/15/2021, 10:33 PMechoing-lock-18813
01/15/2021, 11:43 PMhappy-kitchen-89482
01/16/2021, 12:49 AMpip install pyopenssl==17.3.0
and then in a repl do from cryptography import x509
$ path/to/interpreter/2.7.16/bin/pip install virtualenv
$ path/to/interpreter/2.7.16/bin/virtualenv /tmp/venv
$ source /tmp/venv/bin/activate
$ python2
Python 2.7.16 (default, May 19 2020, 16:23:05)
[GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from cryptography import x509
echoing-lock-18813
01/16/2021, 2:13 AM✘ ~/github/TinderBackend/palo master ± python -m pip --version
pip 20.3.3 from /Users/aminghadersohi/Library/Python/2.7/lib/python/site-packages/pip (python 2.7)
~/github/TinderBackend/palo master ± python -m pip install pyopenssl==17.3.0
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at <https://pip.pypa.io/en/latest/development/release-process/#python-2-support> pip 21.0 will remove support for this functionality.
Defaulting to user installation because normal site-packages is not writeable
Collecting pyopenssl==17.3.0
Using cached pyOpenSSL-17.3.0-py2.py3-none-any.whl (51 kB)
Requirement already satisfied: six>=1.5.2 in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from pyopenssl==17.3.0) (1.12.0)
Requirement already satisfied: cryptography>=1.9 in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from pyopenssl==17.3.0) (2.6.1)
Requirement already satisfied: asn1crypto>=0.21.0 in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from cryptography>=1.9->pyopenssl==17.3.0) (0.24.0)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from cryptography>=1.9->pyopenssl==17.3.0) (1.12.2)
Requirement already satisfied: enum34 in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from cryptography>=1.9->pyopenssl==17.3.0) (1.1.6)
Requirement already satisfied: ipaddress in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from cryptography>=1.9->pyopenssl==17.3.0) (1.0.22)
Requirement already satisfied: pycparser in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from cffi!=1.11.3,>=1.8->cryptography>=1.9->pyopenssl==17.3.0) (2.19)
Installing collected packages: pyopenssl
Successfully installed pyopenssl-17.3.0
~/github/TinderBackend/palo master ± python
WARNING: Python 2.7 is not recommended.
This version is included in macOS for compatibility with legacy software.
Future versions of macOS will not include Python 2.7.
Instead, it is recommended that you transition to using 'python3' from within Terminal.
Python 2.7.16 (default, Jun 5 2020, 22:59:21)
[GCC 4.2.1 Compatible Apple LLVM 11.0.3 (clang-1103.0.29.20) (-macos10.15-objc- on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from cryptography import x509
>>>
hundreds-father-404
01/16/2021, 4:22 PMhappy-kitchen-89482
01/17/2021, 7:58 AMechoing-lock-18813
01/19/2021, 8:46 PMhappy-kitchen-89482
01/20/2021, 1:57 AMechoing-lock-18813
01/21/2021, 6:26 PMhappy-kitchen-89482
01/22/2021, 2:37 AMechoing-lock-18813
01/22/2021, 9:38 PMhappy-kitchen-89482
01/22/2021, 11:59 PMechoing-lock-18813
01/23/2021, 3:06 AM