Following on from the previous post, I downloaded the latest version of setuptools, which I thought then I could update crypto and the open ssl, the latest version was 39.1.0.
I checked my version which was an old one there are a couple of ways to test
easy_install-2.7 --version or python -m easy_install --version
I thought the upgrade had worked, but no it was still giving me the same issues, so then I googled around and tried some of the other suggestions, these didnt work.
The first suggested was the follwoing, this gave the following warnings etc
sudo curl https://bootstrap.pypa.io/get-pip.py | python matplotlib 1.3.1 requires nose, which is not installed. matplotlib 1.3.1 requires tornado, which is not installed. Installing collected packages: pip, wheel Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pip' Consider using the `--user` option or check the permissions.
So this is because on MacOS El Capitan you can't modify files directly do to tighter permissions controls, you can round this with the user flag, so now I ran
Macintosh-7:Desktop craigdba$ sudo curl https://bootstrap.pypa.io/get-pip.py | python - --user Installing collected packages: pip, wheel The script wheel is installed in '/Users/Library/Python/2.7/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Successfully installed pip-10.0.1 wheel-0.31.1 /Users/craigdba/Library/Python/2.7/bin/pip Usage: pip[options]
So now I had pip installed I thought I would try this way to get setup tools upgraded.
/Users/craigdba/Library/Python/2.7/bin/pip install --upgrade setuptools
All eas going weill until I hit the below
Could not install packages due to an EnvironmentError: [('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.py', '/private/var/folders/7h/cx1cc5cs193_fs_8gsg53jcw0000gn/T/pip-uninstall-dtx2sK/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.py', "[Errno 1] Operation not permitted: '/private/var/folders/7h/cx1cc5cs193_fs_8gsg53jcw0000gn/T/pip-uninstall-dtx2sK/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.py'"),
This is similar to before so thought I had better try the user flag again for the permissions issue, this worked!!!!!!
I got warnings but it upgraded
$ sudo /Users/craigdba/Library/Python/2.7/bin/pip install --upgrade setuptools --user The directory '/Users/craigdba/Library/Caches/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 '/Users/craigdba/Library/Caches/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 setuptools Installing collected packages: setuptools Successfully installed setuptools-39.1.0
Finally while I was on a role I updated cryptography as well, this worked as well
Macintosh-7:cryptography-2.2.2 craigdba$ sudo /Users/craigdba/Library/Python/2.7/bin/pip install --upgrade cryptography --user Collecting cryptography Collecting asn1crypto>=0.21.0 (from cryptography) Collecting pycparser (from cffi>=1.7; platform_python_implementation != "PyPy"->cryptography) Successfully installed asn1crypto-0.24.0 cffi-1.11.5 cryptography-2.2.2 enum34-1.1.6 ipaddress-1.0.22 pycparser-2.18
Once that was done, I manually done the opensll adn again that worked nice and smooth
Macintosh-7:pyOpenSSL-17.5.0 craigdba$ sudo python setup.py install running install running bdist_egg running egg_info writing requirements to src/pyOpenSSL.egg-info/requires.txt Loads and text and dependancies Finished processing dependencies for pyOpenSSL==17.5.0
So finally these were all upgraded and I am back to getting my alert to tuck the cash away
I am always interested in your thoughts so if you have any comments or feedback then please feel free to add any comments, or you can mail me here.