python/pip error on osx -


i've purchased new hard drive , installed clean copy of os x mavericks. installed python using homebrew , need create python virtual environment. when ever try run command using pip, error. haven't been able find solution online problem. reference appreciated. here error i'm getting.

error:root:code hash md5 not found. traceback (most recent call last):   file "/usr/local/cellar/python/2.7.8/frameworks/python.framework/versions/2.7/lib/python2.7/hashlib.py", line 139, in <module>     globals()[__func_name] = __get_hash(__func_name)   file "/usr/local/cellar/python/2.7.8/frameworks/python.framework/versions/2.7/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor     raise valueerror('unsupported hash type ' + name) valueerror: unsupported hash type md5 error:root:code hash sha1 not found. traceback (most recent call last):   file "/usr/local/cellar/python/2.7.8/frameworks/python.framework/versions/2.7/lib/python2.7/hashlib.py", line 139, in <module>     globals()[__func_name] = __get_hash(__func_name)   file "/usr/local/cellar/python/2.7.8/frameworks/python.framework/versions/2.7/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor     raise valueerror('unsupported hash type ' + name) valueerror: unsupported hash type sha1 error:root:code hash sha224 not found. traceback (most recent call last):   file "/usr/local/cellar/python/2.7.8/frameworks/python.framework/versions/2.7/lib/python2.7/hashlib.py", line 139, in <module>     globals()[__func_name] = __get_hash(__func_name)   file "/usr/local/cellar/python/2.7.8/frameworks/python.framework/versions/2.7/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor     raise valueerror('unsupported hash type ' + name) valueerror: unsupported hash type sha224 error:root:code hash sha256 not found. traceback (most recent call last):   file "/usr/local/cellar/python/2.7.8/frameworks/python.framework/versions/2.7/lib/python2.7/hashlib.py", line 139, in <module>     globals()[__func_name] = __get_hash(__func_name)   file "/usr/local/cellar/python/2.7.8/frameworks/python.framework/versions/2.7/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor     raise valueerror('unsupported hash type ' + name) valueerror: unsupported hash type sha256 error:root:code hash sha384 not found. traceback (most recent call last):   file "/usr/local/cellar/python/2.7.8/frameworks/python.framework/versions/2.7/lib/python2.7/hashlib.py", line 139, in <module>     globals()[__func_name] = __get_hash(__func_name)   file "/usr/local/cellar/python/2.7.8/frameworks/python.framework/versions/2.7/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor     raise valueerror('unsupported hash type ' + name) valueerror: unsupported hash type sha384 error:root:code hash sha512 not found. traceback (most recent call last):   file "/usr/local/cellar/python/2.7.8/frameworks/python.framework/versions/2.7/lib/python2.7/hashlib.py", line 139, in <module>     globals()[__func_name] = __get_hash(__func_name)   file "/usr/local/cellar/python/2.7.8/frameworks/python.framework/versions/2.7/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor     raise valueerror('unsupported hash type ' + name) valueerror: unsupported hash type sha512 traceback (most recent call last):   file "/usr/local/bin/pip", line 9, in <module>     load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()   file "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 356, in load_entry_point   file "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 2439, in load_entry_point   file "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 2155, in load   file "/usr/local/cellar/python/2.7.8/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/__init__.py", line 10, in <module>     pip.util import get_installed_distributions, get_prog   file "/usr/local/cellar/python/2.7.8/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/util.py", line 18, in <module>     pip._vendor.distlib import version   file "/usr/local/cellar/python/2.7.8/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/_vendor/distlib/version.py", line 14, in <module>     .compat import string_types   file "/usr/local/cellar/python/2.7.8/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/_vendor/distlib/compat.py", line 31, in <module>     urllib2 import (request, urlopen, urlerror, httperror, importerror: cannot import name httpshandler 

if need information me let me know, first time posting question here. thanks.

ok found out online these errors related openssl. had openssl installed. little more research , tried following , solved issue me. here's solution in case same error.

brew install openssl brew link openssl --force brew uninstall python brew install python --with-brewed-openssl 

hope helps.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -